* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    color: #0a0a0a;
    overflow: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Background slider */
.background-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.bg-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 3s ease-in-out;
}

.bg-slide.active {
    opacity: 1;
}

/* Overlay for better text readability */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: 0;
}

/* Header */
.header {
    background-color: #ffca99;
    height: 80px;
    display: flex;
    align-items: center;
    position: relative;
    z-index: 1;
}

.header .header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-content a {
    text-decoration: none;
    font-family: Impact, Haettenschweiler, 'Arial Narrow Bold', sans-serif;
    font-size:  1.5rem;
    color: #333;
}


/* User panel */
.user-panel {
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-name {
    color: #0a0a0a;
    font-size: 1rem;
    font-weight: 400;
    max-width: 160px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.btn-logout {
    background: none;
    border: none;
    color: #0a0a0a;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.btn-logout:hover {
    opacity: 1;
}

.btn-register {
    padding: 10px 28px;
    background-color: #4f4f4f;
    color: #ffffff;
    border: none;
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 400;
    letter-spacing: 0.03em;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn-register:hover {
    background-color: #0a0a0a;
}

.logo {
    height: 50px;
    width: auto;
    padding-left: 75px;
}

.logo-small {
    height: 40px;
}

/* Sidebar menu (position set inside .main) */

.menu-item {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 256px;
    height: 64px;
    background-color: rgba(15, 15, 15, 0.75);
    color: #ffffff;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 400;
    letter-spacing: 0.05em;
    border-radius: 4px;
    border-left: 3px solid #ffca99;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    gap: 10px;
}

.menu-item:hover {
    background-color: #ffca99;
    color: #0a0a0a;
    border-color: #ffffff;
}

.menu-item-locked {
    position: relative;
}

.menu-item-locked .lock-icon {
    opacity: 0.7;
    flex-shrink: 0;
}

.menu-item-locked.unlocked .lock-icon {
    display: none;
}

/* Main content */
.main {
    flex: 1;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    padding-top: calc(40px + 20px); /* header height + 40px gap */
    position: relative;
    z-index: 1;
    overflow-y: auto;
    overflow-x: hidden;
    min-width: 800px;
    gap: 40px;
    padding-left: 40px;
    padding-right: 40px;
}

.sidebar-menu {
    position: static;
    top: auto;
    left: auto;
    transform: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 2;
    flex-shrink: 0;
}

.center-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    padding-bottom: 40px;
    flex: 1;
}

.main-title {
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 700;
    text-align: center;
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    letter-spacing: 0.05em;
    white-space: nowrap;
}

/* Notices carousel */
.notices-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 512px;
    max-width: 90vw;
}

.notices-carousel {
    position: relative;
    width: 512px;
    max-width: 90vw;
    height: 256px;
    overflow: hidden;
}

.notice-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.85);
    border-radius: 8px;
    padding: 20px 24px;
    display: flex;
    flex-direction: column;
    opacity: 0;
    transition: opacity 0.8s ease;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
    overflow-y: auto;
}

.notice-slide.active {
    opacity: 1;
}

.notice-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #0a0a0a;
    margin-bottom: 12px;
}

.notice-body {
    flex: 1;
    font-size: 0.95rem;
    color: #333;
    line-height: 1.5;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.notice-date {
    font-size: 0.85rem;
    color: #888;
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid #ddd;
}

/* Carousel indicators */
.carousel-indicators {
    display: flex;
    gap: 8px;
    margin-top: 16px;
    justify-content: center;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.4);
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
    padding: 0;
}

.carousel-dot.active {
    background-color: #ffca99;
}

.carousel-dot:hover {
    background-color: rgba(255, 255, 255, 0.7);
}

/* Footer */
.footer {
    background-color: #4f4f4f;
/*    padding: 15px 0; */
    height: 80px;
    display: flex;
    align-items: center;
    gap: 20px;
    position: relative;
    z-index: 1;
}

.footer-content {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 20px;
}

.email {
    color: #e0e0e0;
    text-decoration: none;
    font-size: 1rem;
    transition: opacity 0.3s ease;
}

.email:hover {
    opacity: 0.7;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
}

.modal.active {
    display: block;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
}

.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #f2f2f2;
    border-radius: 8px;
    padding: 40px 36px 36px;
    width: 400px;
    max-width: 90vw;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.modal-close {
    position: absolute;
    top: 12px;
    right: 16px;
    background: none;
    border: none;
    font-size: 1.8rem;
    color: #0a0a0a;
    cursor: pointer;
    line-height: 1;
    transition: opacity 0.3s ease;
}

.modal-close:hover {
    opacity: 0.6;
}

.modal-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0a0a0a;
    margin-bottom: 24px;
    text-align: center;
}

/* Modal tabs */
.modal-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 24px;
    border-bottom: 2px solid #ddd;
}

.modal-tab {
    flex: 1;
    padding: 10px 0;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 400;
    color: #888;
    cursor: pointer;
    transition: color 0.3s ease, border-color 0.3s ease;
}

.modal-tab:hover {
    color: #0a0a0a;
}

.modal-tab.active {
    color: #0a0a0a;
    font-weight: 700;
    border-bottom-color: #ffca99;
}

/* Forms in modal */
.modal-form {
    display: none;
    flex-direction: column;
    gap: 16px;
}

.modal-form.active {
    display: flex;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: 0.9rem;
    font-weight: 400;
    color: #0a0a0a;
}

.form-input {
    padding: 10px 14px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
    background: #ffffff;
    transition: border-color 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: #ffca99;
}

.btn-submit {
    margin-top: 8px;
    padding: 12px 24px;
    background-color: #ffca99;
    color: #0a0a0a;
    border: none;
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn-submit:hover {
    background-color: #e0b07a;
}

/* Modal confirm */
.modal-confirm .modal-content-small {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #f2f2f2;
    border-radius: 8px;
    padding: 32px 28px;
    width: 340px;
    max-width: 90vw;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    text-align: center;
}

.confirm-message {
    font-size: 1rem;
    color: #0a0a0a;
    margin-bottom: 24px;
    line-height: 1.5;
}

.confirm-buttons {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.btn-confirm {
    padding: 10px 32px;
    border: none;
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease, opacity 0.3s ease;
}

.btn-confirm-yes {
    background-color: #4f4f4f;
    color: #ffffff;
}

.btn-confirm-yes:hover {
    background-color: #0a0a0a;
}

.btn-confirm-no {
    background-color: #ddd;
    color: #0a0a0a;
}

.btn-confirm-no:hover {
    background-color: #ccc;
}

.btn-confirm-ok {
    background-color: #ffca99;
    color: #0a0a0a;
    font-weight: 700;
}

.btn-confirm-ok:hover {
    background-color: #e0b07a;
}

/* Page layout */
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
