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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    overflow-x: hidden;
}

.app-container {
    display: flex;
    min-height: 100vh;
}

/* Sidebar Styles */
.sidebar {
    width: 340px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 2px 0 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    height: 100vh;
    z-index: 100;
}

.sidebar.collapsed {
    width: 70px;
}

.sidebar-header {
    padding: 25px 20px;
    border-bottom: 2px solid #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.sidebar-title {
    font-size: 1.4rem;
    font-weight: 800;
    white-space: nowrap;
    overflow: hidden;
    transition: opacity 0.3s ease;
    position: relative;
    display: flex;
    align-items: center;
    text-decoration: none;
    color: white;
    gap: 8px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.sidebar-title::before {
    content: '🌸';
    font-size: 1.6rem;
    animation: rotate 3s ease-in-out infinite;
}

.sidebar-title::after {
    content: '🌺';
    font-size: 1.5rem;
    animation: rotate 3s ease-in-out infinite reverse;
    animation-delay: -1.5s;
}

@keyframes rotate {
    0%, 100% { transform: rotate(0deg); }
    50% { transform: rotate(20deg); }
}

.sidebar.collapsed .sidebar-title {
    opacity: 0;
    width: 0;
}

.toggle-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 35px;
    height: 35px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    flex-shrink: 0;
    line-height: 1.8;
}

.toggle-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

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

.nav-section {
    margin-bottom: 25px;
}

.nav-section-title {
    padding: 10px 20px;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    color: #9ca3af;
    letter-spacing: 0.5px;
    white-space: nowrap;
    overflow: hidden;
    transition: opacity 0.3s ease;
}

.sidebar.collapsed .nav-section-title {
    opacity: 0;
    height: 0;
    padding: 0;
}

/* navigation */
.nav-link-wrapper {
    position: relative;
}

.nav-link {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    color: #4b5563;
    text-decoration: none;
    transition: all 0.2s ease;
    position: relative;
    gap: 15px;
}

.nav-link:hover {
    background: linear-gradient(90deg, rgba(102, 126, 234, 0.1), transparent);
    color: #667eea;
}

.nav-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, #667eea, #764ba2);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.nav-link:hover::before {
    opacity: 1;
}

.nav-link.nav-link-active {
    background: linear-gradient(90deg, rgba(102, 126, 234, 0.15), transparent);
    color: #667eea;
    font-weight: 600;
}

.nav-link.nav-link-active::before {
    opacity: 1;
}

.nav-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 1.5rem;
    width: 30px;
    text-align: center;
    flex-shrink: 0;
}

.sidebar.collapsed .nav-icon {
    margin-left: 25%;
}

.nav-text {
    white-space: nowrap;
    overflow: hidden;
    transition: opacity 0.3s ease;
    font-size: 1rem;
    font-weight: 500;
}

.sidebar.collapsed .nav-text {
    opacity: 0;
    width: 0;
}

.sidebar.collapsed .nav-link {
    justify-content: center;
    padding: 12px 0;
}

/* External Links */
.nav-external {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    padding: 4px;
    border-radius: 4px;
    opacity: 1;
    transition: opacity 0.2s ease, background 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sidebar.collapsed .nav-external {
    display: none;
}

.nav-link:hover .nav-external {
    opacity: 1;
}

.nav-external:hover {
    background: rgba(102, 126, 234, 0.15);
}

/* Main Content Styles */
.main-content {
    flex: 1;
    padding: 50px;
    overflow-y: auto;
    margin-left: 320px;
    transition: margin-left 0.3s ease;
}

.sidebar.collapsed .main-content {
    margin-left: 70px;
}

.content-wrapper {
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 50px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    animation: fadeIn 0.6s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

    .sidebar.mobile-open {
        transform: translateX(0);
    }

    .sidebar.collapsed {
        transform: translateX(-100%);
    }

    .main-content {
        margin-left: 0;
        padding: 30px 20px;
    }

    .sidebar.collapsed ~ .main-content {
        margin-left: 0;
    }

    .content-wrapper {
        padding: 30px 25px;
    }

    h1 {
        font-size: 2rem;
    }

    .mobile-menu-btn {
        position: fixed;
        bottom: 20px;
        right: 20px;
        width: 60px;
        height: 60px;
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        border: none;
        border-radius: 50%;
        color: white;
        font-size: 1.5rem;
        cursor: pointer;
        box-shadow: 0 4px 20px rgba(102, 126, 234, 0.4);
        z-index: 99;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

@media (min-width: 769px) {
    .mobile-menu-btn {
        display: none;
    }
}

/* Language Switcher */
.lang-switcher {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    padding: 16px 20px;
    border-top: 1px solid #f0f0f0;
    background: rgba(102, 126, 234, 0.03);
}

.lang-btn {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 8px 14px;
    border: 2px solid transparent;
    border-radius: 10px;
    background: transparent;
    cursor: pointer;
    transition: all 0.25s ease;
    color: #9ca3af;
    font-weight: 600;
    font-size: 0.8rem;
    letter-spacing: 0.05em;
    position: relative;
}

.lang-btn .flag {
    font-size: 1.4rem;
    line-height: 1;
    filter: grayscale(60%) opacity(0.6);
    transition: filter 0.25s ease, transform 0.25s ease;
}

.lang-btn .lang-label {
    transition: color 0.25s ease;
}

.lang-btn:hover {
    color: #667eea;
    background: rgba(102, 126, 234, 0.08);
}

.lang-btn:hover .flag {
    filter: grayscale(0%) opacity(1);
    transform: scale(1.1);
}

.lang-btn.active {
    border-color: rgba(102, 126, 234, 0.35);
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.15);
}

.lang-btn.active .flag {
    filter: grayscale(0%) opacity(1);
    transform: scale(1.1);
}

.lang-divider {
    width: 1px;
    height: 24px;
    background: #e5e7eb;
    margin: 0 4px;
    flex-shrink: 0;
}

.lang-form {
    display: contents;
}

.sidebar.collapsed .lang-switcher {
    flex-direction: column;
    gap: 6px;
    padding: 12px 0;
}

.sidebar.collapsed .lang-btn {
    padding: 7px;
    justify-content: center;
}

.sidebar.collapsed .lang-label {
    display: none;
}

.sidebar.collapsed .lang-divider {
    width: 24px;
    height: 1px;
    margin: 0;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #667eea, #764ba2);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #5568d3;
}