/* Layout Styles */

/* App Container */
.app-container {
    display: flex;
    min-height: 100vh;
    background: #f7f9fc;
}

/* Sidebar */
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: 240px;
    height: 100vh;
    background: white;
    display: flex;
    flex-direction: column;
    box-shadow: 2px 0 8px rgba(0, 0, 0, 0.05);
    z-index: 1000;
    transition: transform 0.3s ease;
}

.sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    border-bottom: 1px solid #e6e9ef;
    height: 70px;
}

.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    font-size: 18px;
    color: #212a34;
    text-decoration: none;
}

.sidebar-logo svg {
    flex-shrink: 0;
}

.sidebar-title {
    font-style: italic;
}

.sidebar-toggle {
    width: 32px;
    height: 32px;
    display: none;
    align-items: center;
    justify-content: center;
    color: #6e7884;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.sidebar-toggle:hover {
    background: #f7f9fc;
    color: #212a34;
}

/* Navigation */
.sidebar-nav {
    flex: 1;
    overflow-y: auto;
    padding: 20px 0;
}

.nav-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 0 12px;
}

.nav-item {
    border-radius: 8px;
    transition: all 0.2s ease;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: #6e7884;
    font-size: 14px;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.2s ease;
    text-decoration: none;
}

.nav-link:hover {
    background: #f7f9fc;
    color: #212a34;
}

.nav-item.active .nav-link {
    background: #1e88e5;
    color: white;
}

.nav-icon {
    flex-shrink: 0;
    opacity: 0.8;
}

.nav-item.active .nav-icon {
    opacity: 1;
}

.nav-text {
    font-style: italic;
}

/* Sidebar Footer */
.sidebar-footer {
    padding: 20px;
    border-top: 1px solid #e6e9ef;
}

.version-info {
    text-align: center;
    margin-bottom: 12px;
    padding: 12px 0;
}

.version-label {
    font-size: 12px;
    font-weight: 600;
    color: #8a94a6;
    margin-bottom: 4px;
}

.version-number {
    font-size: 11px;
    color: #8a94a6;
    opacity: 0.8;
}

.logout-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 10px;
    background: transparent;
    color: #6e7884;
    font-size: 14px;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.logout-btn:hover {
    background: #f7f9fc;
    color: #212a34;
}

.logout-btn span {
    font-style: italic;
}

/* Main Content */
.main-content {
    flex: 1;
    margin-left: 240px;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Top Header */
.top-header {
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 30px;
    background: white;
    border-bottom: 1px solid #e6e9ef;
    gap: 20px;
    min-height: 70px;
}

.header-left {
    display: flex;
    align-items: center;
    min-width: 200px;
}

.page-title {
    font-size: 20px;
    font-weight: 600;
    color: #212a34;
    font-style: italic;
    margin: 0;
}

.header-center {
    flex: 1;
    max-width: 500px;
}

.search-box {
    position: relative;
    width: 100%;
}

.search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #bfc8cf;
    pointer-events: none;
}

.search-input {
    width: 100%;
    padding: 10px 16px 10px 44px;
    background: #f7f9fc;
    border: 1px solid transparent;
    border-radius: 10px;
    font-size: 14px;
    color: #212a34;
    transition: all 0.2s ease;
}

.search-input:focus {
    background: white;
    border-color: #1e88e5;
    box-shadow: 0 0 0 3px rgba(30, 136, 229, 0.1);
}

.search-input::placeholder {
    color: #bfc8cf;
    font-style: italic;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Date Time */
.date-time {
    display: flex;
    align-items: center;
    gap: 12px;
}

.date-text {
    font-size: 11px;
    font-weight: 600;
    color: #6e7884;
    line-height: 1.4;
    text-align: right;
    font-style: italic;
}

.time-text {
    font-size: 20px;
    font-weight: 700;
    color: #356197;
    font-style: italic;
}

/* Language Selector */
.language-selector {
    position: relative;
}

.lang-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: transparent;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #356197;
    transition: all 0.2s ease;
}

.lang-btn:hover {
    background: #f7f9fc;
}

.lang-btn img {
    border-radius: 3px;
}

.lang-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 160px;
    background: white;
    border: 1px solid #e6e9ef;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 6px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
}

.lang-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-option {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 10px 12px;
    background: transparent;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    color: #212a34;
    text-align: left;
    transition: all 0.2s ease;
}

.lang-option:hover {
    background: #f7f9fc;
}

.lang-option.active {
    background: #e3f2fd;
    color: #1e88e5;
    font-weight: 600;
}

.lang-option img {
    border-radius: 3px;
}

/* User Menu */
.user-menu {
    position: relative;
}

.user-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    background: transparent;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #356197;
    transition: all 0.2s ease;
}

.user-btn:hover {
    background: #f7f9fc;
}

.user-avatar {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e3f2fd;
    border-radius: 50%;
    color: #1e88e5;
}

.user-btn span {
    font-style: italic;
}

/* Page Content */
.page-content {
    flex: 1;
    padding: 30px;
}

/* Responsive */
@media (max-width: 1024px) {
    .sidebar {
        transform: translateX(-100%);
    }

    .sidebar.active {
        transform: translateX(0);
    }

    .sidebar-toggle {
        display: flex;
    }

    .main-content {
        margin-left: 0;
    }

    .top-header {
        padding: 12px 20px;
    }

    .header-center {
        display: none;
    }

    .date-time {
        display: none;
    }
}

@media (max-width: 768px) {
    .page-content {
        padding: 20px 16px;
    }

    .page-title {
        font-size: 18px;
    }

    .header-right {
        gap: 12px;
    }

    .time-text {
        font-size: 16px;
    }
}