
:root {
    --primary-color: #007aff;
    --primary-dark: #0051d5;
    --primary-light: rgba(0, 122, 255, 0.1);
    --secondary-color: #5856d6;
    --background: #f5f5f7;
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(0, 0, 0, 0.1);
    --text-primary: #1d1d1f;
    --text-secondary: rgba(0, 0, 0, 0.7);
    --text-tertiary: rgba(0, 0, 0, 0.5);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 12px 32px rgba(0, 0, 0, 0.15);
    --border-radius: 20px;
    --transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --transition-fast: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --ease-out-expo: cubic-bezier(0.19, 1, 0.22, 1);
    --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
    --touch-target: 44px;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--background);
    background-attachment: fixed;
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
    transition: opacity 0.3s ease;
}

body.loading {
    opacity: 0;
}

body.loaded {
    opacity: 1;
}

html {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    scroll-behavior: smooth;
    -webkit-tap-highlight-color: transparent;
}

* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

*:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
    border-radius: 4px;
}

.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: 240px;
    height: 100vh;
    background: var(--glass-bg);
    backdrop-filter: blur(40px) saturate(180%);
    -webkit-backdrop-filter: blur(40px) saturate(180%);
    border-right: 1px solid var(--glass-border);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    transition: transform 0.3s var(--ease-out-expo), width 0.3s var(--ease-out-expo);
    display: flex;
    flex-direction: column;
    will-change: transform;
}

.sidebar.collapsed {
    width: 70px;
}

.sidebar.collapsed .logo {
    opacity: 0;
    width: 0;
    overflow: hidden;
}

.sidebar.collapsed .sidebar-header {
    padding: 2rem 1rem 1.5rem 1rem;
    justify-content: center;
}

.sidebar.collapsed .sidebar-toggle {
    position: absolute;
    right: -16px;
    background: var(--glass-bg);
    backdrop-filter: blur(40px) saturate(180%);
    -webkit-backdrop-filter: blur(40px) saturate(180%);
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-md);
}

.sidebar.collapsed .sidebar-toggle i {
    transform: rotate(180deg);
}

.sidebar.collapsed .sidebar-nav {
    padding: 1rem 0.5rem;
    align-items: center;
}

.sidebar.collapsed .nav-item {
    justify-content: center;
    padding: 0.875rem;
    width: 48px;
    margin: 0 auto;
}

.sidebar.collapsed .nav-item span {
    display: none;
}

.sidebar.collapsed .nav-item::before {
    left: 50%;
    transform: translateX(-50%) scaleY(0);
    width: 100%;
    height: 4px;
    top: auto;
    bottom: 0;
}

.sidebar.collapsed .nav-item.active::before {
    transform: translateX(-50%) scaleY(1);
}

.sidebar.collapsed .nav-item:hover {
    transform: translateY(-2px);
}

.sidebar.collapsed .sidebar-version {
    padding: 1rem 0.5rem;
    font-size: 0.65rem;
    writing-mode: vertical-rl;
    text-orientation: mixed;
}

.sidebar-header {
    padding: 2rem 2rem 1.5rem 2rem;
    margin-bottom: 0;
    flex-shrink: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.sidebar-toggle {
    display: none;
    background: rgba(0, 0, 0, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-secondary);
    transition: var(--transition-fast);
    flex-shrink: 0;
}

.sidebar-toggle:hover {
    background: rgba(0, 0, 0, 0.08);
    color: var(--text-primary);
}

.sidebar-toggle:active {
    transform: scale(0.95);
}

@media (min-width: 1200px) {
    .sidebar-toggle {
        display: flex;
    }
}

@media (max-width: 1199px) {
    .sidebar-toggle {
        display: none !important;
    }
}

.logo {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: -0.5px;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1rem;
    padding-right: 0.75rem;
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-gutter: stable;
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 0, 0, 0.25) rgba(0, 0, 0, 0.05);
}

.sidebar-nav::-webkit-scrollbar {
    width: 8px;
}

.sidebar-nav::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 4px;
    margin: 0.5rem 0;
}

.sidebar-nav::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.25);
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.sidebar-nav::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.4);
}

.sidebar-version {
    padding: 1rem 2rem;
    border-top: 1px solid var(--glass-border);
    flex-shrink: 0;
    text-align: center;
    font-size: 0.75rem;
    color: var(--text-tertiary);
    font-weight: 500;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.875rem 1.25rem;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: 12px;
    transition: var(--transition-fast);
    position: relative;
    overflow: hidden;
    min-height: var(--touch-target);
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.nav-item:active {
    transform: scale(0.98);
}

.nav-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 4px;
    height: 100%;
    background: var(--primary-color);
    transform: scaleY(0);
    transition: var(--transition);
}

.nav-item:hover {
    background: rgba(0, 0, 0, 0.04);
    color: var(--text-primary);
    transform: translateX(4px);
}

.nav-item:focus-visible {
    background: rgba(0, 122, 255, 0.08);
    color: var(--primary-color);
}

.nav-item.active {
    background: rgba(0, 122, 255, 0.1);
    color: var(--primary-color);
}

.nav-item.active::before {
    transform: scaleY(1);
}

.nav-icon {
    width: 20px;
    font-size: 18px;
    text-align: center;
}

.nav-item span {
    font-weight: 500;
}

.main-content {
    margin-left: 240px;
    min-height: 100vh;
    padding: 2rem;
    transition: var(--transition);
    width: calc(100% - 240px);
    max-width: calc(100% - 240px);
    box-sizing: border-box;
}

.sidebar.collapsed ~ .main-content {
    margin-left: 70px;
    width: calc(100% - 70px) !important;
    max-width: calc(100% - 70px) !important;
}

.sidebar.collapsed ~ .main-content .dashboard-content {
    width: 100%;
    max-width: 100%;
}

.sidebar.collapsed ~ .main-content .top-bar,
.sidebar.collapsed ~ .main-content .breadcrumbs {
    width: 100%;
    max-width: 100%;
}

.sidebar.collapsed ~ .footer {
    margin-left: 70px;
    width: calc(100% - 70px);
    max-width: calc(100% - 70px);
}

.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    background: var(--glass-bg);
    backdrop-filter: blur(40px) saturate(180%);
    -webkit-backdrop-filter: blur(40px) saturate(180%);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius);
    padding: 1.25rem 2rem;
    box-shadow: var(--shadow-md);
}

.top-bar-left {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex: 1;
}

.top-bar-left .menu-toggle {
    flex-shrink: 0;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    padding: 0.75rem;
    border-radius: 8px;
    transition: var(--transition-fast);
    min-width: var(--touch-target);
    min-height: var(--touch-target);
    align-items: center;
    justify-content: center;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

@media (max-width: 1199px) {
    .menu-toggle {
        display: flex !important;
    }
}

@media (min-width: 1200px) {
    .menu-toggle {
        display: none !important;
    }
}

.menu-toggle:active {
    transform: scale(0.95);
    background: rgba(0, 0, 0, 0.06);
}

.menu-toggle:hover {
    background: rgba(0, 0, 0, 0.04);
}

.menu-toggle i {
    font-size: 20px;
}

.page-title {
    font-size: 1.75rem;
    font-weight: 700;
}

.breadcrumbs {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
    flex-wrap: wrap;
}

.breadcrumbs a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.breadcrumbs a:hover {
    color: var(--primary-color);
}

.breadcrumbs .breadcrumb-separator {
    color: var(--text-tertiary);
    margin: 0 0.25rem;
}

.breadcrumbs .breadcrumb-current {
    color: var(--text-primary);
    font-weight: 500;
}

.top-bar-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.search-box {
    position: relative;
    display: flex;
    align-items: center;
}

.search-icon {
    position: absolute;
    left: 1rem;
    font-size: 16px;
    color: var(--text-tertiary);
    pointer-events: none;
    z-index: 1;
}

.search-box input {
    background: rgba(0, 0, 0, 0.04);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 0.75rem 1rem 0.75rem 2.75rem;
    color: var(--text-primary);
    font-size: 0.9rem;
    width: 250px;
    transition: var(--transition-smooth);
    min-height: var(--touch-target);
}

.search-box input::placeholder {
    transition: opacity 0.2s ease;
}

.search-box input:focus::placeholder {
    opacity: 0.5;
}

.search-box input::placeholder {
    color: var(--text-tertiary);
}

.search-box input:focus {
    outline: none;
    border-color: var(--primary-color);
    background: rgba(0, 0, 0, 0.06);
    width: 300px;
    box-shadow: 0 0 0 4px rgba(0, 122, 255, 0.1), 0 4px 12px rgba(0, 122, 255, 0.15);
    transform: translateY(-1px);
}

.search-bar-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    padding: 0.75rem;
    border-radius: 8px;
    transition: var(--transition-fast);
    min-width: var(--touch-target);
    min-height: var(--touch-target);
    align-items: center;
    justify-content: center;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.search-bar-toggle:hover {
    background: rgba(0, 0, 0, 0.04);
}

.search-bar-toggle:active {
    transform: scale(0.95);
}

@media (max-width: 1199px) {
    .search-bar-toggle {
        display: flex !important;
    }
    
    .search-box {
        position: fixed;
        top: 80px;
        left: 0;
        right: 0;
        padding: 1rem;
        box-shadow: 0px 0px 15px 0px rgba(0, 0, 0, 0.1);
        background: var(--glass-bg);
        backdrop-filter: blur(40px) saturate(180%);
        -webkit-backdrop-filter: blur(40px) saturate(180%);
        z-index: 9999;
        transition: 0.3s;
        visibility: hidden;
        opacity: 0;
        transform: translateY(-10px);
        border-radius: 0;
    }
    
    .search-box.search-bar-show {
        visibility: visible;
        opacity: 1;
        transform: translateY(0);
    }
    
    .search-box input {
        width: 100% !important;
    }
    
    .search-box input:focus {
        width: 100% !important;
    }
}

.notification-btn {
    position: relative;
    background: rgba(0, 0, 0, 0.04);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 0.75rem;
    color: var(--text-primary);
    cursor: pointer;
    transition: var(--transition-fast);
    min-width: var(--touch-target);
    min-height: var(--touch-target);
    display: flex;
    align-items: center;
    justify-content: center;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.notification-btn:active {
    transform: scale(0.95);
    background: rgba(0, 0, 0, 0.08);
}

.notification-btn:hover {
    background: rgba(0, 0, 0, 0.06);
    transform: translateY(-1px);
}

.notification-btn:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.notification-btn i {
    font-size: 18px;
}

.notification-badge {
    position: absolute;
    top: 0;
    right: 0;
    background: #ef4444;
    color: white;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.2rem 0.4rem;
    border-radius: 10px;
    transform: translate(25%, -25%);
}

.profile-img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--glass-border);
    cursor: pointer;
    transition: var(--transition-smooth);
    min-width: var(--touch-target);
    min-height: var(--touch-target);
    object-fit: cover;
    touch-action: manipulation;
}

.profile-img:active {
    transform: scale(0.95);
}

.profile-img:hover {
    border-color: var(--primary-color);
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 122, 255, 0.2);
}

.profile-img:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.stats-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.stat-card {
    background: var(--glass-bg);
    backdrop-filter: blur(40px) saturate(180%);
    -webkit-backdrop-filter: blur(40px) saturate(180%);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
    transition: var(--transition-smooth);
    will-change: transform;
    cursor: pointer;
}

.stat-card:active {
    transform: translateY(0) scale(0.98);
}

.stat-card:hover {
    transform: translateY(-4px) scale(1.01);
    box-shadow: var(--shadow-xl);
    border-color: rgba(0, 122, 255, 0.2);
}

.stat-card:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.stat-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.stat-card-header h3 {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-icon {
    font-size: 24px;
    color: var(--primary-color);
    opacity: 0.8;
}

.stat-card-body {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
}

.stat-change {
    font-size: 0.85rem;
    font-weight: 500;
}

.stat-change.positive {
    color: #10b981;
}

.stat-change.negative {
    color: #ef4444;
}

.charts-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.chart-card {
    background: var(--glass-bg);
    backdrop-filter: blur(40px) saturate(180%);
    -webkit-backdrop-filter: blur(40px) saturate(180%);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
    transition: var(--transition-smooth);
    will-change: transform;
}

.chart-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(0, 122, 255, 0.15);
}

.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.chart-header h3 {
    font-size: 1.1rem;
    font-weight: 600;
}

.chart-controls {
    display: flex;
    gap: 0.5rem;
}

.chart-btn {
    background: rgba(0, 0, 0, 0.04);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    padding: 0.5rem 1rem;
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-fast);
    min-height: var(--touch-target);
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.chart-btn:active {
    transform: scale(0.95);
}

.chart-btn:hover {
    background: rgba(0, 0, 0, 0.06);
    color: var(--text-primary);
    transform: translateY(-1px);
}

.chart-btn.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    box-shadow: 0 2px 8px rgba(0, 122, 255, 0.3);
}

.chart-btn:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.chart-body {
    position: relative;
    height: 300px;
}

.dashboard-content {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.additional-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.additional-cards:last-child {
    margin-bottom: 0;
}

.info-card {
    background: var(--glass-bg);
    backdrop-filter: blur(40px) saturate(180%);
    -webkit-backdrop-filter: blur(40px) saturate(180%);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
    transition: var(--transition-smooth);
    will-change: transform;
}

.info-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.card-header h3 {
    font-size: 1.1rem;
    font-weight: 600;
}

.view-all {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
}

.view-all:hover {
    text-decoration: underline;
}

.card-body {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.info-card .card-body {
    padding: 0;
}

.table-container,
.card-body.table-container {
    padding: 0 !important;
    overflow-x: auto;
}

.dashboard-content > section {
    margin-bottom: 1.5rem;
}

.dashboard-content > section:last-child {
    margin-bottom: 0;
}

.transaction-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.02);
    border-radius: 12px;
    transition: var(--transition-fast);
    cursor: pointer;
    min-height: var(--touch-target);
    touch-action: manipulation;
}

.transaction-item:active {
    transform: scale(0.98);
    background: rgba(0, 0, 0, 0.04);
}

.transaction-item:hover {
    background: rgba(0, 0, 0, 0.04);
    transform: translateX(4px);
}

.transaction-item:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.transaction-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.transaction-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.9rem;
}

.transaction-name {
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.transaction-date {
    font-size: 0.85rem;
    color: var(--text-tertiary);
}

.transaction-amount {
    font-weight: 600;
    font-size: 1.1rem;
}

.transaction-amount.positive {
    color: #10b981;
}

.transaction-amount.negative {
    color: #ef4444;
}

.product-item {
    padding: 1rem;
    background: rgba(0, 0, 0, 0.02);
    border-radius: 12px;
}

.product-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.product-icon {
    font-size: 1.5rem;
}

.product-name {
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.product-sales {
    font-size: 0.85rem;
    color: var(--text-tertiary);
}

.product-progress {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.progress-bar {
    flex: 1;
    height: 8px;
    background: rgba(0, 0, 0, 0.06);
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 4px;
    transition: width 0.8s var(--ease-out-expo);
    position: relative;
    overflow: hidden;
}


@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

.progress-value {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    min-width: 40px;
    text-align: right;
}

@media (min-width: 1440px) {
    .main-content {
        padding: 2.5rem;
    }
    
    .sidebar {
        width: 260px;
    }
    
    .main-content {
        margin-left: 260px;
        width: calc(100% - 260px);
        box-sizing: border-box;
        max-width: calc(100% - 260px);
    }
    
    .footer {
        margin-left: 260px;
        width: calc(100% - 260px);
        box-sizing: border-box;
        max-width: calc(100% - 260px);
    }
    
    .dashboard-content {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
}

@media (min-width: 1200px) {
    .main-content,
    .footer {
        margin-left: 240px;
        width: calc(100% - 240px);
        max-width: calc(100% - 240px);
    }
    
    .sidebar.collapsed ~ .main-content,
    .sidebar.collapsed ~ .footer {
        margin-left: 70px;
        width: calc(100% - 70px);
        max-width: calc(100% - 70px);
    }
    
    .charts-section {
        grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    }
    
    .additional-cards {
        grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    }
}

@media (max-width: 1199px) and (min-width: 768px) {
    .main-content {
        padding: 1.5rem;
    }
    
    .stats-section {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .charts-section {
        grid-template-columns: 1fr;
    }
    
    .additional-cards {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
    
    .chart-body {
        height: 280px;
    }
    
    .top-bar {
        padding: 1.25rem 1.5rem;
    }
    
    .dashboard-content {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .footer-content {
        flex-wrap: wrap;
        gap: 1rem;
        justify-content: center;
    }
    
    .copyright {
        text-align: center;
        font-size: 0.85rem;
        line-height: 1.6;
        width: 100%;
        min-width: 0;
        flex: 1 1 100%;
    }
    
    .developer {
        text-align: center;
        font-size: 0.85rem;
        line-height: 1.6;
        justify-content: center;
        width: 100%;
        min-width: 0;
        flex: 1 1 100%;
        white-space: normal;
        flex-wrap: wrap;
    }
    
    .developer strong {
        display: inline;
    }
    
}

@media (max-width: 1199px) {
    .sidebar {
        left: -240px;
        transform: translateX(0);
        width: 240px;
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
        z-index: 1001;
        transition: left 0.3s var(--ease-out-expo);
    }
    
    .sidebar.open,
    .toggle-sidebar .sidebar {
        left: 0;
    }
    
    .main-content,
    .footer {
        margin-left: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
    }
}

@media (max-width: 767px) {
    body.sidebar-open {
        overflow: hidden;
        position: fixed;
        width: 100%;
    }
    
    body.sidebar-open::after {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(0, 0, 0, 0.5);
        backdrop-filter: blur(4px);
        -webkit-backdrop-filter: blur(4px);
        z-index: 1000;
        animation: fadeIn 0.3s var(--ease-out-expo);
    }
    
    .main-content {
        padding: 1rem;
        box-sizing: border-box;
    }
    
    .footer {
        padding: 1.5rem 1rem;
        box-sizing: border-box;
        position: relative;
    }
    
    .dashboard-content {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        padding: 0;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
        align-items: center;
        justify-content: center;
        width: 100%;
    }
    
    .copyright {
        width: 100%;
        text-align: center;
        word-wrap: break-word;
        overflow-wrap: break-word;
        word-break: break-word;
        line-height: 1.6;
        min-width: 0;
        padding: 0;
        box-sizing: border-box;
        font-size: 0.85rem;
    }
    
    .developer {
        width: 100%;
        justify-content: center;
        text-align: center;
        flex-wrap: wrap;
        word-wrap: break-word;
        overflow-wrap: break-word;
        word-break: break-word;
        line-height: 1.6;
        padding: 0;
        box-sizing: border-box;
        font-size: 0.85rem;
        gap: 0.4rem;
    }
    
    .developer strong {
        justify-content: center;
        width: 100%;
    }
    
    .developer a {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .top-bar {
        flex-direction: row;
        gap: 1rem;
        padding: 1rem;
        align-items: center;
    }
    
    .top-bar-left {
        display: flex;
        align-items: center;
        gap: 1rem;
        flex: 1;
    }
    
    .top-bar-right {
        flex-wrap: wrap;
        gap: 1rem;
        justify-content: flex-end;
        align-items: center;
    }
    
    .page-title {
        font-size: 1.5rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        flex: 1;
        min-width: 0;
    }
    
    .menu-toggle {
        flex-shrink: 0;
        order: -1;
    }
    
    .search-bar-toggle {
        order: 1;
    }
    
    .notification-btn,
    .user-profile {
        order: 2;
    }
    
    .charts-section {
        grid-template-columns: 1fr;
    }
    
    .additional-cards {
        grid-template-columns: 1fr;
    }
    
    .stats-section {
        grid-template-columns: 1fr;
    }
    
    .chart-body {
        height: 250px;
    }
    
    .chart-card,
    .info-card,
    .stat-card {
        padding: 1.25rem;
    }
    
    .page-title {
        font-size: 1.5rem;
    }
    
    .breadcrumbs {
        font-size: 0.85rem;
        margin-bottom: 1rem;
    }
    
    .breadcrumbs span {
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {
    .main-content {
        padding: 0.75rem;
        width: 100%;
        box-sizing: border-box;
    }
    
    .footer {
        width: 100%;
        box-sizing: border-box;
    }
    
    .top-bar {
        padding: 0.75rem;
        border-radius: 16px;
    }
    
    .page-title {
        font-size: 1.25rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .menu-toggle {
        flex-shrink: 0;
    }
    
    .breadcrumbs {
        font-size: 0.8rem;
    }
    
    .breadcrumbs .breadcrumb-separator {
        font-size: 0.7rem;
    }
    
    .stat-value {
        font-size: 1.5rem;
    }
    
    .chart-body {
        height: 200px;
    }
    
    .chart-card,
    .info-card,
    .stat-card {
        padding: 1rem;
        border-radius: 16px;
    }
    
    .sidebar-header {
        padding: 1.5rem 1.5rem 1rem 1.5rem;
    }
    
    .logo {
        font-size: 1.25rem;
    }
    
    .stat-card-header h3 {
        font-size: 0.75rem;
    }
    
    .sidebar-nav {
        padding: 0.75rem;
    }
    
    .nav-item {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }
    
    .notification-btn {
        padding: 0.5rem;
    }
    
    .profile-img {
        width: 32px;
        height: 32px;
    }
    
    .dashboard-content {
        padding: 0;
    }
    
    .top-bar-right {
        gap: 0.75rem;
    }
    
    .stats-section,
    .charts-section,
    .additional-cards {
        gap: 1rem;
        margin-bottom: 1rem;
    }
    
    .stats-section:last-child,
    .charts-section:last-child,
    .additional-cards:last-child {
        margin-bottom: 0;
    }
    
    .dashboard-content > section {
        margin-bottom: 1rem;
    }
    
    .dashboard-content > section:last-child {
        margin-bottom: 0;
    }
    
    .table-container {
        padding: 0.75rem !important;
    }
    
    .stats-section:last-child,
    .charts-section:last-child,
    .additional-cards:last-child {
        margin-bottom: 0;
    }
    
    .footer {
        padding: 1.25rem 1rem;
        box-sizing: border-box;
    }
    
    .footer-content {
        gap: 1rem;
        width: 100%;
        box-sizing: border-box;
        flex-direction: column;
        text-align: center;
    }
    
    .copyright {
        width: 100%;
        text-align: center;
        font-size: 0.8rem;
        line-height: 1.6;
        word-wrap: break-word;
        overflow-wrap: break-word;
        word-break: break-word;
        padding: 0;
        margin: 0;
    }
    
    .developer {
        width: 100%;
        justify-content: center;
        text-align: center;
        font-size: 0.8rem;
        line-height: 1.6;
        word-wrap: break-word;
        overflow-wrap: break-word;
        word-break: break-word;
        padding: 0;
        margin: 0;
        gap: 0.4rem;
    }
    
    .developer strong {
        justify-content: center;
        width: 100%;
        display: flex;
        flex-wrap: wrap;
        gap: 0.4rem;
    }
    
    .developer a {
        justify-content: center;
        flex-wrap: wrap;
        display: inline-flex;
        align-items: center;
        gap: 0.4rem;
    }
    
    .copyright {
        padding: 0 0.25rem;
        width: 100%;
        box-sizing: border-box;
        text-align: center;
        min-width: auto;
    }
    
    .developer {
        padding: 0 0.25rem;
        width: 100%;
        box-sizing: border-box;
        justify-content: center;
        flex-wrap: wrap;
        white-space: normal;
    }
}

@media (max-width: 360px) {
    .main-content {
        padding: 0.5rem;
        width: 100%;
        box-sizing: border-box;
    }
    
    .footer {
        width: 100%;
        box-sizing: border-box;
    }
    
    .top-bar {
        padding: 0.5rem;
    }
    
    .chart-card,
    .info-card,
    .stat-card {
        padding: 0.875rem;
    }
    
    .stat-value {
        font-size: 1.25rem;
    }
    
    .page-title {
        font-size: 1.1rem;
    }
    
    .footer {
        padding: 1rem 0.75rem;
        box-sizing: border-box;
    }
    
    .footer-content {
        gap: 0.875rem;
        width: 100%;
        box-sizing: border-box;
        flex-direction: column;
        text-align: center;
    }
    
    .copyright {
        width: 100%;
        text-align: center;
        font-size: 0.75rem;
        line-height: 1.7;
        word-wrap: break-word;
        overflow-wrap: break-word;
        word-break: break-word;
        padding: 0;
        margin: 0;
    }
    
    .developer {
        width: 100%;
        justify-content: center;
        text-align: center;
        font-size: 0.75rem;
        line-height: 1.7;
        word-wrap: break-word;
        overflow-wrap: break-word;
        word-break: break-word;
        padding: 0;
        margin: 0;
        gap: 0.35rem;
    }
    
    .developer strong {
        justify-content: center;
        width: 100%;
        display: flex;
        flex-wrap: wrap;
        gap: 0.35rem;
    }
    
    .developer a {
        justify-content: center;
        flex-wrap: wrap;
        display: inline-flex;
        align-items: center;
        gap: 0.35rem;
        font-size: 0.75rem;
    }
    
    .developer i {
        font-size: 0.7rem;
    }
}

.fade-in {
    animation: fadeIn 0.6s var(--ease-out-expo) backwards;
}

.slide-in-up {
    animation: slideInUp 0.6s var(--ease-out-expo) backwards;
}

.scale-in {
    animation: scaleIn 0.4s var(--ease-out-expo) backwards;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(0, 122, 255, 0.1);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.tooltip {
    position: relative;
}

.tooltip::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-8px);
    padding: 0.5rem 0.75rem;
    background: rgba(0, 0, 0, 0.9);
    color: white;
    font-size: 0.75rem;
    border-radius: 6px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    z-index: 10000;
}

.tooltip:hover::after {
    opacity: 1;
    transform: translateX(-50%) translateY(-4px);
}

button:disabled,
.button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

a {
    transition: var(--transition-fast);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

a:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
    border-radius: 2px;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
    background: transparent;
}

.data-table thead {
    background: rgba(0, 0, 0, 0.04);
}

.data-table thead th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid var(--glass-border);
}

.data-table tbody td {
    padding: 1rem;
    border-bottom: 1px solid var(--glass-border);
    color: var(--text-secondary);
}

.data-table tbody tr:last-child td {
    border-bottom: none;
}

.table-bordered {
    border: 1px solid var(--glass-border);
}

.table-bordered thead th,
.table-bordered tbody td {
    border: 1px solid var(--glass-border);
}

.table-striped tbody tr:nth-child(even) {
    background: rgba(0, 0, 0, 0.02);
}

.table-hover tbody tr {
    transition: var(--transition-fast);
    cursor: pointer;
}

.table-hover tbody tr:hover {
    background: rgba(0, 122, 255, 0.05);
    transform: translateX(2px);
}

.table-compact thead th,
.table-compact tbody td {
    padding: 0.5rem 0.75rem;
    font-size: 0.85rem;
}

.status-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-active {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.status-inactive {
    background: rgba(0, 0, 0, 0.1);
    color: var(--text-secondary);
}

.status-pending {
    background: rgba(255, 149, 0, 0.1);
    color: #ff9500;
}

.status-success {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.status-cancelled {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.table-action-btn {
    background: rgba(0, 0, 0, 0.04);
    border: 1px solid var(--glass-border);
    border-radius: 6px;
    padding: 0.5rem;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition-fast);
    margin: 0 0.25rem;
    min-width: 32px;
    min-height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    touch-action: manipulation;
}

.table-action-btn:hover {
    background: rgba(0, 122, 255, 0.1);
    color: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-1px);
}

.table-action-btn:active {
    transform: scale(0.95);
}

.table-action-btn:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.table-image {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    object-fit: cover;
    border: 1px solid var(--glass-border);
}

@media (max-width: 1199px) {
    .data-table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        width: 100%;
    }
    
    .data-table thead {
        display: none;
    }
    
    .data-table tbody,
    .data-table tr {
        display: block;
    }
    
    .data-table tr {
        margin-bottom: 1rem;
        border: 1px solid var(--glass-border);
        border-radius: 12px;
        padding: 1rem;
        background: var(--glass-bg);
        box-shadow: var(--shadow-sm);
    }
    
    .data-table td {
        display: block;
        text-align: right;
        padding: 0.75rem 0;
        border: none;
        position: relative;
        padding-left: 50%;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }
    
    .table-container {
        padding: 1rem !important;
    }
    
    .data-table td:last-child {
        border-bottom: none;
    }
    
    .data-table td::before {
        content: attr(data-label);
        position: absolute;
        left: 0;
        width: 45%;
        text-align: left;
        font-weight: 600;
        color: var(--text-primary);
        font-size: 0.85rem;
    }
    
    .data-table td:has(.table-action-btn)::before {
        content: 'Actions';
    }
    
    .data-table td:has(.table-action-btn) {
        text-align: left;
        padding-left: 0;
    }
    
    .data-table td:has(.table-action-btn)::before {
        display: none;
    }
    
    .table-action-btn {
        margin: 0.25rem;
    }
    
    .table-image {
        width: 40px;
        height: 40px;
    }
}

@media (min-width: 1200px) {
    .data-table {
        display: table;
    }
    
    .data-table thead {
        display: table-header-group;
    }
    
    .data-table tbody {
        display: table-row-group;
    }
    
    .data-table tr {
        display: table-row;
    }
    
    .data-table td {
        display: table-cell;
        text-align: left;
        padding: 1rem;
    }
    
    .data-table td::before {
        display: none;
    }
}

@media (max-width: 1199px) {
    .additional-cards[style*="grid-template-columns: 350px 1fr"],
    .additional-cards[style*="grid-template-columns: 300px 1fr"] {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }
    
    .additional-cards[style*="grid-template-columns: 350px 1fr"] > .info-card:last-child {
        display: none;
    }
    
    .additional-cards[style*="grid-template-columns: 350px 1fr"] > .info-card:last-child.chat-active {
        display: flex !important;
    }
    
    .additional-cards[style*="grid-template-columns: 350px 1fr"] > .info-card:first-child.chat-hidden {
        display: none !important;
    }
}

@media (max-width: 1199px) {
    .additional-cards[style*="grid-template-columns: 350px 1fr"] {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }
}

@media (max-width: 1199px) {
    .additional-cards[style*="grid-template-columns: 300px 1fr"] {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }
    
    div[style*="grid-template-columns: repeat(7, 1fr)"] {
        grid-template-columns: repeat(7, 1fr) !important;
        gap: 0.25rem !important;
    }
}

@media (max-width: 767px) {
    .additional-cards[style*="grid-template-columns: 350px 1fr"] > .info-card:first-child {
        max-height: none !important;
    }
    
    .additional-cards[style*="grid-template-columns: 350px 1fr"] > .info-card:last-child {
        min-height: calc(100vh - 200px);
    }
    
    .additional-cards[style*="grid-template-columns: 350px 1fr"] .card-body div[style*="max-width: 70%"] {
        max-width: 85% !important;
    }
    
    .additional-cards[style*="grid-template-columns: 350px 1fr"] > .info-card:last-child > div:last-child {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .additional-cards[style*="grid-template-columns: 350px 1fr"] > .info-card:last-child > div:last-child input {
        min-width: 0;
        flex: 1 1 100%;
        order: 2;
    }
    
    .additional-cards[style*="grid-template-columns: 350px 1fr"] > .info-card:last-child > div:last-child button:first-child {
        order: 1;
    }
    
    .additional-cards[style*="grid-template-columns: 350px 1fr"] > .info-card:last-child > div:last-child button:last-child {
        order: 3;
        flex: 1 1 100%;
        width: 100%;
    }
}

textarea {
    resize: vertical;
    min-height: 100px;
    font-family: inherit;
    transition: var(--transition-smooth);
}

textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background: rgba(0, 0, 0, 0.06);
    box-shadow: 0 0 0 4px rgba(0, 122, 255, 0.1);
}

select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23000' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    padding-right: 2.5rem;
}

input[type="checkbox"],
input[type="radio"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--primary-color);
}

.card-hover {
    transition: var(--transition-smooth);
}

.card-hover:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.responsive-img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.text-truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.text-center {
    text-align: center;
}

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.p-1 { padding: 0.5rem; }
.p-2 { padding: 1rem; }
.p-3 { padding: 1.5rem; }

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

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

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

.stat-card,
.chart-card,
.info-card {
    animation: slideInUp 0.6s var(--ease-out-expo) backwards;
}

.stat-card:nth-child(1) { animation-delay: 0.05s; }
.stat-card:nth-child(2) { animation-delay: 0.1s; }
.stat-card:nth-child(3) { animation-delay: 0.15s; }
.stat-card:nth-child(4) { animation-delay: 0.2s; }

.chart-card:nth-child(1) { animation-delay: 0.1s; }
.chart-card:nth-child(2) { animation-delay: 0.15s; }

.info-card:nth-child(1) { animation-delay: 0.1s; }
.info-card:nth-child(2) { animation-delay: 0.15s; }
.info-card:nth-child(3) { animation-delay: 0.2s; }

.skeleton {
    background: linear-gradient(
        90deg,
        rgba(0, 0, 0, 0.06) 25%,
        rgba(0, 0, 0, 0.1) 50%,
        rgba(0, 0, 0, 0.06) 75%
    );
    background-size: 200% 100%;
    animation: loading 1.5s ease-in-out infinite;
    border-radius: 8px;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

.footer {
    margin-left: 280px;
    padding: 1.5rem 2rem;
    background: var(--glass-bg);
    backdrop-filter: blur(40px) saturate(180%);
    -webkit-backdrop-filter: blur(40px) saturate(180%);
    border-top: 1px solid var(--glass-border);
    transition: var(--transition);
    width: calc(100% - 280px);
    max-width: calc(100% - 280px);
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--glass-border), transparent);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 100%;
    padding: 0;
    flex-wrap: wrap;
    gap: 2rem;
    width: 100%;
    box-sizing: border-box;
    margin: 0 auto;
}

.copyright {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin: 0;
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
    line-height: 1.5;
    flex: 0 1 auto;
    min-width: 0;
}

.developer {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin: 0;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: nowrap;
    word-wrap: normal;
    overflow-wrap: normal;
    word-break: normal;
    line-height: 1.5;
    flex-shrink: 0;
    white-space: nowrap;
}

.developer strong {
    display: inline;
    font-weight: 600;
    color: var(--text-primary);
}

.developer a {
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    white-space: nowrap !important;
    text-decoration: none !important;
    transition: var(--transition-fast) !important;
    color: var(--text-primary) !important;
    font-weight: 600;
    margin-left: 0 !important;
}

.developer a:hover {
    color: var(--primary-color) !important;
}

.developer a:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
    border-radius: 4px;
}

.developer a i.fa-linkedin {
    margin-left: 0 !important;
    font-size: 0.9rem !important;
}

.developer i.fa-heart {
    color: #ff2d55;
    font-size: 0.9rem;
    animation: heartbeat 1.5s ease-in-out infinite;
    margin: 0 0.25rem;
}

.developer i.fa-linkedin {
    font-size: 0.9rem !important;
    transition: var(--transition-fast);
    color: var(--text-secondary);
    margin-left: 0 !important;
}

.developer a:hover i.fa-linkedin {
    transform: scale(1.15);
    color: var(--primary-color) !important;
}

@keyframes heartbeat {
    0%, 100% {
        transform: scale(1);
    }
    10%, 30% {
        transform: scale(1.1);
    }
    20%, 40% {
        transform: scale(1);
    }
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.02);
}

::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.3);
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    transition: opacity 0.3s var(--ease-out-expo);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.modal[aria-hidden="true"] {
    pointer-events: none;
}

.modal.modal-show {
    opacity: 1;
}

.modal-content {
    background: var(--glass-bg);
    backdrop-filter: blur(40px) saturate(180%);
    -webkit-backdrop-filter: blur(40px) saturate(180%);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-xl);
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.9) translateY(20px);
    transition: transform 0.3s var(--ease-out-expo), opacity 0.3s var(--ease-out-expo);
    opacity: 0;
    will-change: transform, opacity;
}

.modal.modal-show .modal-content {
    transform: scale(1) translateY(0);
    opacity: 1;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid var(--glass-border);
}

.modal-header h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
}

.modal-close {
    background: rgba(0, 0, 0, 0.04);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    padding: 0.5rem;
    color: var(--text-primary);
    cursor: pointer;
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
    width: var(--touch-target);
    height: var(--touch-target);
    min-width: var(--touch-target);
    min-height: var(--touch-target);
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.modal-close:active {
    transform: scale(0.9);
    background: rgba(0, 0, 0, 0.08);
}

.modal-close:hover {
    background: rgba(0, 0, 0, 0.08);
    transform: rotate(90deg);
}

.modal-close:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.modal-body {
    padding: 1.5rem;
    color: var(--text-primary);
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    padding: 1.5rem;
    border-top: 1px solid var(--glass-border);
}

.modal-content::-webkit-scrollbar {
    width: 6px;
}

.modal-content::-webkit-scrollbar-track {
    background: transparent;
}

.modal-content::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 3px;
}

.auth-page {
    background: var(--background);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.auth-container {
    width: 100%;
    max-width: 450px;
}

.auth-card {
    background: var(--glass-bg);
    backdrop-filter: blur(40px) saturate(180%);
    -webkit-backdrop-filter: blur(40px) saturate(180%);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius);
    padding: 3rem;
    box-shadow: var(--shadow-lg);
}

.auth-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.auth-form .form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    position: relative;
}

.auth-form .form-group label {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.auth-form .form-group label i {
    color: var(--primary-color);
}

.auth-form .form-group input {
    width: 100%;
    padding: 0.875rem 1rem;
    padding-right: 3rem;
    background: rgba(0, 0, 0, 0.04);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 0.95rem;
    transition: var(--transition-smooth);
    box-sizing: border-box;
    min-height: var(--touch-target);
}

.auth-form .form-group input:invalid:not(:placeholder-shown) {
    border-color: #ef4444;
    background: rgba(239, 68, 68, 0.05);
}

.auth-form .form-group input:valid:not(:placeholder-shown) {
    border-color: #10b981;
}

.auth-form .form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    background: rgba(0, 0, 0, 0.06);
    box-shadow: 0 0 0 4px rgba(0, 122, 255, 0.1), 0 4px 12px rgba(0, 122, 255, 0.1);
    transform: translateY(-1px);
}

.password-toggle {
    position: absolute;
    right: 1rem;
    top: 65%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-tertiary);
    cursor: pointer;
    padding: 0.5rem;
    transition: var(--transition-fast);
    z-index: 1;
    min-width: var(--touch-target);
    min-height: var(--touch-target);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.password-toggle:active {
    transform: translateY(-50%) scale(0.9);
    background: rgba(0, 0, 0, 0.05);
}

.password-toggle:hover {
    color: var(--text-primary);
    background: rgba(0, 0, 0, 0.04);
}

.password-toggle:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.auth-submit-btn {
    width: 100%;
    padding: 1rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 0.5rem;
    min-height: var(--touch-target);
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    position: relative;
    overflow: hidden;
}

.auth-submit-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.auth-submit-btn:active::before {
    width: 300px;
    height: 300px;
}

.auth-submit-btn:active {
    transform: scale(0.98);
}

.auth-submit-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 122, 255, 0.4);
}

.auth-submit-btn:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
    box-shadow: 0 0 0 4px rgba(0, 122, 255, 0.2);
}

.auth-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.auth-submit-btn i {
    transition: transform 0.3s ease;
}

.auth-submit-btn:hover i {
    transform: translateX(4px);
}

.auth-header .auth-logo {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.auth-header .auth-subtitle {
    color: var(--text-secondary);
    margin: 0;
}

.input-with-toggle {
    position: relative;
}

.auth-row-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.auth-checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.auth-checkbox-label.auth-checkbox-label-top {
    align-items: flex-start;
    gap: 0.75rem;
}

.auth-checkbox {
    cursor: pointer;
}

.auth-checkbox.auth-checkbox-offset {
    margin-top: 0.25rem;
}

.auth-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.auth-link.auth-link-small {
    font-size: 0.9rem;
}

.auth-section-spacer {
    margin-bottom: 1.5rem;
}

.auth-divider {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--glass-border);
}

.auth-divider-text {
    color: var(--text-secondary);
    margin: 0 0 1rem 0;
}

.auth-security-note {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--glass-border);
}

.auth-security-note p {
    text-align: center;
    color: var(--text-tertiary);
    font-size: 0.85rem;
    margin: 0;
}

.calendar-action-btn {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
}

.calendar-layout {
    grid-template-columns: 300px 1fr;
    gap: 1.5rem;
}

.calendar-filter-section {
    margin-bottom: 1.5rem;
}

.calendar-section-title {
    margin: 0 0 1rem 0;
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.calendar-btn-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.calendar-filter-btn {
    padding: 0.75rem;
    background: rgba(0, 0, 0, 0.04);
    color: var(--text-primary);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    text-align: left;
    cursor: pointer;
}

.calendar-filter-btn.is-active {
    background: var(--primary-color);
    color: #fff;
    border: none;
    font-weight: 500;
}

.calendar-legend-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.calendar-legend-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.calendar-legend-dot {
    width: 12px;
    height: 12px;
    border-radius: 3px;
}

.calendar-legend-label {
    font-size: 0.9rem;
    color: var(--text-primary);
}

.profile-layout {
    grid-template-columns: 350px 1fr;
    gap: 1.5rem;
}

.profile-card {
    text-align: center;
    padding: 2rem;
}

.profile-avatar-lg {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 4px solid var(--glass-border);
    margin-bottom: 1.5rem;
}

.profile-name {
    margin: 0 0 0.5rem 0;
    color: var(--text-primary);
}

.profile-email {
    margin: 0 0 1.5rem 0;
    color: var(--text-secondary);
}

.btn-primary-block {
    width: 100%;
    padding: 0.875rem;
    background: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    margin-bottom: 1rem;
}

.icon-btn-row {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
}

.icon-btn {
    padding: 0.75rem;
    background: rgba(0, 0, 0, 0.04);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    cursor: pointer;
    color: var(--text-primary);
}

.profile-section-gap {
    margin-top: 1.5rem;
}

.profile-stat-row {
    padding: 1rem;
    background: rgba(0, 0, 0, 0.02);
    border-radius: 12px;
    margin-bottom: 0.75rem;
}

.profile-stat-row:last-child {
    margin-bottom: 0;
}

.profile-stat-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.profile-stat-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.profile-stat-value {
    font-size: 1.25rem;
    color: var(--text-primary);
}

.profile-edit-btn {
    padding: 0.5rem 1rem;
    background: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.85rem;
}

.profile-about-text {
    margin: 0 0 1.5rem 0;
    color: var(--text-secondary);
    line-height: 1.6;
}

.profile-meta-list {
    display: grid;
    gap: 1rem;
}

.profile-meta-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.profile-meta-icon {
    color: var(--primary-color);
    width: 20px;
}

.profile-meta-title {
    margin: 0;
    font-weight: 500;
    color: var(--text-primary);
}

.profile-meta-subtitle {
    margin: 0;
    font-size: 0.85rem;
    color: var(--text-tertiary);
}

.activity-avatar-primary { background: #007aff; }
.activity-avatar-success { background: #10b981; }
.activity-avatar-warning { background: #ff9500; }

.activity-avatar-icon {
    color: #fff;
    font-size: 0.8rem;
}

.chart-btn-ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    transform: scale(0);
    animation: chart-btn-ripple 0.6s ease-out;
    pointer-events: none;
    width: 20px;
    height: 20px;
    left: 50%;
    top: 50%;
    margin-left: -10px;
    margin-top: -10px;
}

@keyframes chart-btn-ripple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

.scroll-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--primary-color);
    color: #fff;
    border: none;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 122, 255, 0.3);
    z-index: 999;
    transition: var(--transition-fast);
}

.scroll-to-top:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 122, 255, 0.4);
}

.scroll-to-top.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 1023px) {
    .auth-container {
        max-width: 500px;
    }
}

@media (max-width: 767px) {
    .auth-page {
        padding: 1rem;
    }
    
    .auth-card {
        padding: 2rem 1.5rem;
        border-radius: 16px;
    }
    
    .auth-header .auth-logo {
        font-size: 1.75rem;
    }
    
    .auth-header p {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .auth-card {
        padding: 1.5rem 1rem;
        border-radius: 16px;
    }
    
    .auth-header {
        margin-bottom: 2rem;
    }
    
    .auth-header .auth-logo {
        font-size: 1.5rem;
        margin-bottom: 0.75rem;
    }
    
    .auth-form .form-group label {
        font-size: 0.85rem;
    }
    
    .auth-form .form-group input {
        padding: 0.75rem 0.875rem;
        padding-right: 2.5rem;
        font-size: 0.9rem;
    }
    
    .auth-submit-btn {
        padding: 0.875rem;
        font-size: 0.95rem;
    }
}

@media (max-width: 1023px) {
    .modal-content {
        max-width: 600px;
    }
}

@media (max-width: 767px) {
    .modal {
        padding: 0.5rem;
    }
    
    .modal-content {
        max-width: 100%;
        margin: 0;
        border-radius: 16px;
        max-height: 95vh;
    }
    
    .modal-header,
    .modal-body,
    .modal-footer {
        padding: 1.25rem;
    }
    
    .modal-header h3 {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .modal {
        padding: 0.25rem;
    }
    
    .modal-content {
        border-radius: 12px;
        max-height: 98vh;
    }
    
    .modal-header,
    .modal-body,
    .modal-footer {
        padding: 1rem;
    }
    
    .modal-header h3 {
        font-size: 1rem;
    }
    
    .modal-footer {
        flex-direction: column;
    }
    
    .modal-footer button {
        width: 100%;
    }
}

/* Forms Components */

.form-section {
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.form-label.required::after {
    content: ' *';
    color: #ef4444;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--glass-bg);
    backdrop-filter: blur(40px) saturate(180%);
    -webkit-backdrop-filter: blur(40px) saturate(180%);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius);
    color: var(--text-primary);
    font-size: 0.95rem;
    transition: var(--transition);
    font-family: inherit;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.form-input:disabled,
.form-select:disabled,
.form-textarea:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

.form-help {
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.form-error {
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: #ef4444;
}

.form-input.error,
.form-select.error,
.form-textarea.error {
    border-color: #ef4444;
}

.form-input.success,
.form-select.success,
.form-textarea.success {
    border-color: #10b981;
}

.checkbox-group,
.radio-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.checkbox-item,
.radio-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.checkbox-item input[type="checkbox"],
.radio-item input[type="radio"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--primary-color);
}

.checkbox-item label,
.radio-item label {
    cursor: pointer;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.input-group {
    display: flex;
    align-items: stretch;
}

.input-group-prepend,
.input-group-append {
    display: flex;
    align-items: center;
    padding: 0 1rem;
    background: rgba(0, 0, 0, 0.04);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius);
    color: var(--text-secondary);
}

.input-group-prepend {
    border-right: none;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.input-group-append {
    border-left: none;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

.input-group .form-input {
    border-radius: 0;
}

.input-group .form-input:first-child {
    border-top-left-radius: var(--border-radius);
    border-bottom-left-radius: var(--border-radius);
}

.input-group .form-input:last-child {
    border-top-right-radius: var(--border-radius);
    border-bottom-right-radius: var(--border-radius);
}

.input-group .form-input:not(:first-child):not(:last-child) {
    border-left: none;
    border-right: none;
}

.file-upload {
    position: relative;
    display: inline-block;
    width: 100%;
}

.file-upload input[type="file"] {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.file-upload-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: var(--glass-bg);
    backdrop-filter: blur(40px) saturate(180%);
    -webkit-backdrop-filter: blur(40px) saturate(180%);
    border: 2px dashed var(--glass-border);
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
}

.file-upload-label:hover {
    border-color: var(--primary-color);
    background: rgba(99, 102, 241, 0.05);
}

.file-upload-label i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.range-group {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.range-input {
    flex: 1;
    height: 8px;
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.1);
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

.range-input::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary-color);
    cursor: pointer;
}

.range-input::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary-color);
    cursor: pointer;
    border: none;
}

.range-value {
    min-width: 50px;
    text-align: center;
    font-weight: 600;
    color: var(--primary-color);
}

.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.2);
    transition: var(--transition);
    border-radius: 26px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: var(--transition);
    border-radius: 50%;
}

input:checked + .slider {
    background-color: var(--primary-color);
}

input:checked + .slider:before {
    transform: translateX(24px);
}

.switch-group {
    display: flex;
    align-items: center;
    gap: 1rem;
}

@media (max-width: 767px) {
    .form-row {
        grid-template-columns: 1fr;
    }

    .form-actions {
        flex-direction: column;
    }
}

/* Buttons Components */

.button-section {
    margin-bottom: 2rem;
}

.button-group {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
    margin-bottom: 1.5rem;
}

.button-group-title {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.btn {
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    font-size: 0.95rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-decoration: none;
    font-family: inherit;
    position: relative;
    overflow: hidden;
}

.btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.btn-secondary {
    background: var(--glass-bg);
    backdrop-filter: blur(40px) saturate(180%);
    -webkit-backdrop-filter: blur(40px) saturate(180%);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
}

.btn-secondary:hover {
    background: rgba(0, 0, 0, 0.06);
    transform: translateY(-2px);
}

.btn-success,
.btn-danger,
.btn-warning,
.btn-info {
    color: white;
}

.btn-success {
    background: #10b981;
}

.btn-success:hover {
    background: #059669;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.btn-danger {
    background: #ef4444;
}

.btn-danger:hover {
    background: #dc2626;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.btn-warning {
    background: #f59e0b;
}

.btn-warning:hover {
    background: #d97706;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.btn-info {
    background: #3b82f6;
}

.btn-info:hover {
    background: #2563eb;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.btn-outline-primary,
.btn-outline-secondary,
.btn-outline-success,
.btn-outline-danger {
    background: transparent;
    border: 2px solid;
}

.btn-outline-primary {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.btn-outline-primary:hover {
    background: var(--primary-color);
    color: white;
}

.btn-outline-secondary {
    border-color: var(--glass-border);
    color: var(--text-primary);
}

.btn-outline-secondary:hover {
    background: rgba(0, 0, 0, 0.04);
}

.btn-outline-success {
    border-color: #10b981;
    color: #10b981;
}

.btn-outline-success:hover {
    background: #10b981;
    color: white;
}

.btn-outline-danger {
    border-color: #ef4444;
    color: #ef4444;
}

.btn-outline-danger:hover {
    background: #ef4444;
    color: white;
}

.btn-ghost,
.btn-ghost-primary {
    background: transparent;
    border: none;
}

.btn-ghost {
    color: var(--text-primary);
}

.btn-ghost:hover {
    background: rgba(0, 0, 0, 0.04);
}

.btn-ghost-primary {
    color: var(--primary-color);
}

.btn-ghost-primary:hover {
    background: rgba(99, 102, 241, 0.1);
}

.btn-sm { padding: 0.5rem 1rem; font-size: 0.85rem; }
.btn-lg { padding: 1rem 2rem; font-size: 1.1rem; }
.btn-xl { padding: 1.25rem 2.5rem; font-size: 1.2rem; }

.btn-icon {
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-icon-sm { width: 32px; height: 32px; font-size: 0.85rem; }
.btn-icon-lg { width: 48px; height: 48px; font-size: 1.2rem; }

.btn-loading {
    position: relative;
    color: transparent;
}

.btn-loading::after {
    content: "";
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin-left: -8px;
    margin-top: -8px;
    border: 2px solid currentColor;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 0.6s linear infinite;
}

.btn-fab {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    padding: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 1000;
}

.btn-fab:hover {
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
    transform: translateY(-2px) scale(1.05);
}

.btn-group {
    display: inline-flex;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.btn-group,
.btn-split {
    display: inline-flex;
    border-radius: var(--border-radius);
    overflow: hidden;
}

.btn-group {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.btn-group .btn,
.btn-split .btn {
    border-radius: 0;
    margin: 0;
}

.btn-group .btn {
    border-right: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-group .btn:first-child {
    border-top-left-radius: var(--border-radius);
    border-bottom-left-radius: var(--border-radius);
}

.btn-group .btn:last-child {
    border-top-right-radius: var(--border-radius);
    border-bottom-right-radius: var(--border-radius);
    border-right: none;
}

.btn-group .btn:hover {
    transform: none;
}

.btn-split .btn:first-child {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    border-right: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-split .btn:last-child {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    padding: 0.75rem 0.5rem;
}

.btn-ripple {
    position: relative;
    overflow: hidden;
}

.btn-ripple::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-ripple:active::before {
    width: 300px;
    height: 300px;
}

.btn-block {
    width: 100%;
    display: block;
}

.btn-badge {
    position: relative;
}

.btn-badge::after {
    content: attr(data-badge);
    position: absolute;
    top: -8px;
    right: -8px;
    background: #ef4444;
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.2rem 0.4rem;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
}

.btn-facebook,
.btn-twitter,
.btn-google,
.btn-github {
    color: white;
}

.btn-facebook { background: #1877f2; }
.btn-facebook:hover { background: #166fe5; }
.btn-twitter { background: #1da1f2; }
.btn-twitter:hover { background: #1a91da; }
.btn-google { background: #ea4335; }
.btn-google:hover { background: #d33b2c; }
.btn-github { background: #24292e; }
.btn-github:hover { background: #1a1e22; }

@media (max-width: 767px) {
    .button-group {
        flex-direction: column;
        align-items: stretch;
    }

    .button-group .btn {
        width: 100%;
    }

    .btn-fab {
        bottom: 1rem;
        right: 1rem;
    }
}

/* Landing Page Styles */

.landing-hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 2rem;
    background: linear-gradient(135deg, #f5f5f7 0%, #e8e8ed 100%);
}

.landing-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 122, 255, 0.05) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 1200px;
    width: 100%;
}

.hero-title {
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    line-height: 1.1;
    letter-spacing: -0.02em;
    animation: fadeInUp 0.8s ease-out;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 3vw, 1.5rem);
    color: var(--text-secondary);
    margin-bottom: 3rem;
    line-height: 1.6;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeInUp 1s ease-out;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 4rem;
    animation: fadeInUp 1.2s ease-out;
}

.hero-cta .btn-primary,
.hero-cta .btn-secondary,
.cta-buttons .btn-primary,
.cta-buttons .btn-secondary {
    padding: 1rem 2.5rem;
    border-radius: 16px;
    font-size: 1.05rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.hero-cta .btn-primary,
.cta-buttons .btn-primary {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 6px 24px rgba(0, 122, 255, 0.35);
}

.hero-cta .btn-primary::before,
.cta-buttons .btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.hero-cta .btn-primary:hover::before,
.cta-buttons .btn-primary:hover::before {
    left: 100%;
}

.hero-cta .btn-primary:hover,
.cta-buttons .btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 32px rgba(0, 122, 255, 0.45);
}

.hero-cta .btn-primary:active,
.cta-buttons .btn-primary:active {
    transform: translateY(-1px) scale(1);
}

.hero-cta .btn-secondary,
.cta-buttons .btn-secondary {
    background: var(--glass-bg);
    backdrop-filter: blur(40px) saturate(180%);
    -webkit-backdrop-filter: blur(40px) saturate(180%);
    border: 2px solid var(--glass-border);
    color: var(--text-primary);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.hero-cta .btn-secondary:hover,
.cta-buttons .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(0, 0, 0, 0.15);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.12);
}

.hero-cta .btn-secondary:active,
.cta-buttons .btn-secondary:active {
    transform: translateY(-1px) scale(1);
}

.hero-cta .btn-primary i,
.hero-cta .btn-secondary i,
.cta-buttons .btn-primary i,
.cta-buttons .btn-secondary i {
    font-size: 1.1rem;
    transition: transform 0.3s ease;
}

.hero-cta .btn-primary:hover i,
.cta-buttons .btn-primary:hover i {
    transform: translateX(3px);
}

.hero-cta .btn-secondary:hover i,
.cta-buttons .btn-secondary:hover i {
    transform: scale(1.1);
}

.hero-preview {
    position: relative;
    margin-top: 4rem;
    animation: fadeInUp 1.4s ease-out;
}

.preview-image {
    width: 100%;
    max-width: 1200px;
    height: auto;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--glass-border);
    background: var(--glass-bg);
    backdrop-filter: blur(40px) saturate(180%);
    -webkit-backdrop-filter: blur(40px) saturate(180%);
    padding: 2rem;
    box-sizing: border-box;
}

.features-section {
    padding: 6rem 2rem;
    background: var(--background);
}

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

.section-title {
    text-align: center;
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 4rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.feature-card {
    background: var(--glass-bg);
    backdrop-filter: blur(40px) saturate(180%);
    -webkit-backdrop-filter: blur(40px) saturate(180%);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(0, 0, 0, 0.15);
}

.feature-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    background: rgba(0, 122, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.feature-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.feature-description {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.advantages-section {
    padding: 6rem 2rem;
    background: linear-gradient(135deg, rgba(0, 122, 255, 0.02) 0%, rgba(88, 86, 214, 0.02) 100%);
}

.advantages-list {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.advantage-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 1.5rem;
    background: var(--glass-bg);
    backdrop-filter: blur(40px) saturate(180%);
    -webkit-backdrop-filter: blur(40px) saturate(180%);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.advantage-item:hover {
    transform: translateX(8px);
    box-shadow: var(--shadow-md);
}

.advantage-check {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1rem;
}

.advantage-text {
    flex: 1;
}

.advantage-text strong {
    display: block;
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.advantage-text p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

.cta-section {
    padding: 6rem 2rem;
    background: var(--background);
    text-align: center;
}

.cta-content {
    max-width: 700px;
    margin: 0 auto;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2rem;
}


.github-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
    margin-top: 2rem;
}

.github-link:hover {
    color: var(--primary-color);
}

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

@media (max-width: 767px) {
    .landing-hero {
        padding: 1.5rem;
        min-height: auto;
        padding-top: 4rem;
    }

    .hero-cta {
        flex-direction: column;
        align-items: stretch;
    }

    .features-section, .advantages-section, .cta-section {
        padding: 4rem 1.5rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .preview-image {
        padding: 1rem;
    }
}

/* Progress Bars Components */

.progress-section {
    margin-bottom: 2rem;
}

.progress-item {
    margin-bottom: 1.5rem;
}

.progress-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
    color: var(--text-primary);
    font-weight: 500;
}

.progress-value {
    font-weight: 600;
    color: var(--text-secondary);
}

.progress-bar {
    width: 100%;
    height: 12px;
    background: rgba(0, 0, 0, 0.08);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.progress-fill {
    height: 100%;
    background: var(--primary-color);
    border-radius: 10px;
    transition: width 0.6s ease;
    position: relative;
    overflow: hidden;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 2s infinite;
}

.progress-bar-sm { height: 8px; }
.progress-bar-lg { height: 16px; }
.progress-bar-xl { height: 20px; }

.progress-success .progress-fill { background: #10b981; }
.progress-warning .progress-fill { background: #f59e0b; }
.progress-danger .progress-fill { background: #ef4444; }
.progress-info .progress-fill { background: #3b82f6; }

.progress-striped .progress-fill {
    background-image: linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);
    background-size: 1rem 1rem;
    animation: progress-stripes 1s linear infinite;
}

@keyframes progress-stripes {
    0% { background-position: 0 0; }
    100% { background-position: 1rem 0; }
}

.progress-animated .progress-fill {
    animation: progress-animate 2s ease-in-out infinite;
}

@keyframes progress-animate {
    0%, 100% { transform: scaleX(1); }
    50% { transform: scaleX(1.02); }
}

.progress-circular {
    width: 120px;
    height: 120px;
    position: relative;
    display: inline-block;
}

.progress-circular svg {
    transform: rotate(-90deg);
}

.progress-circular-circle {
    fill: none;
    stroke-width: 8;
    stroke-linecap: round;
    transition: stroke-dashoffset 0.6s ease;
}

.progress-circular-bg {
    stroke: rgba(0, 0, 0, 0.08);
}

.progress-circular-fill {
    stroke: var(--primary-color);
    stroke-dasharray: 283;
    stroke-dashoffset: 283;
}

.progress-circular-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.progress-stacked {
    display: flex;
    height: 12px;
    border-radius: 10px;
    overflow: hidden;
}

.progress-stacked-item {
    height: 100%;
    transition: width 0.6s ease;
}

.progress-label-inline {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
}

.progress-label-inline .progress-bar {
    flex: 1;
}

@media (max-width: 767px) {
    .progress-circular {
        width: 100px;
        height: 100px;
    }

    .progress-circular-text {
        font-size: 1.2rem;
    }
}

/* Utility Classes */

.single-column {
    grid-template-columns: 1fr !important;
}

.logo-link {
    text-decoration: none;
    color: inherit;
}

.rating-display {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.rating-star {
    color: #ffc107;
    font-size: 0.85rem;
}

.rating-value {
    font-size: 0.9rem;
}

.progress-bar-full {
    width: 100%;
}

.progress-fill-85 { width: 85%; }
.progress-fill-60 { width: 60%; }
.progress-fill-40 { width: 40%; }

.text-success { color: #10b981; }
.text-danger { color: #ef4444; }

.filter-controls {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.filter-select {
    background: rgba(0, 0, 0, 0.04);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    padding: 0.5rem 1rem;
    color: var(--text-primary);
    font-size: 0.9rem;
    cursor: pointer;
}

.filter-btn {
    padding: 0.5rem 1rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
}

.modal-trigger-card {
    cursor: pointer;
    text-align: left;
}

.modal-trigger-text {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin: 0;
}

.modal-button-grid {
    display: grid;
    gap: 1rem;
}

.modal-button-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.modal-feature-item {
    padding: 1rem;
    background: rgba(0, 0, 0, 0.02);
    border-radius: 12px;
}

.modal-feature-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.modal-feature-icon {
    color: #10b981;
}

.modal-feature-title {
    color: var(--text-primary);
}

.modal-feature-desc {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.modal-btn-primary {
    padding: 1rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    text-align: left;
}

.modal-btn-outline-primary {
    padding: 1rem;
    background: rgba(0, 122, 255, 0.1);
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    text-align: left;
}

.modal-btn-outline-danger {
    padding: 1rem;
    background: rgba(255, 45, 85, 0.1);
    color: #ff2d55;
    border: 1px solid #ff2d55;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    text-align: left;
}

.modal-btn-outline-success {
    padding: 1rem;
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
    border: 1px solid #10b981;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    text-align: left;
}

.modal-btn-outline-purple {
    padding: 1rem;
    background: rgba(139, 92, 246, 0.1);
    color: #5856d6;
    border: 1px solid #5856d6;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    text-align: left;
}

.modal-footer-btn {
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
}

.modal-footer-btn-secondary {
    background: rgba(0, 0, 0, 0.04);
    color: var(--text-primary);
    border: 1px solid var(--glass-border);
}

.modal-footer-btn-primary {
    background: var(--primary-color);
    color: white;
    border: none;
}

.text-center {
    text-align: center;
    padding: 1rem 0;
}

.progress-text {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.developer-link {
    color: var(--text-primary);
    text-decoration: none;
    transition: var(--transition);
}

.developer-link-icon {
    margin-left: 0.5rem;
    font-size: 0.85rem;
}

.modal-content-center {
    text-align: center;
    padding: 1rem 0;
}

.modal-icon-large {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.modal-title-large {
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.modal-text-secondary {
    color: var(--text-secondary);
}

.modal-icon-warning {
    font-size: 3rem;
    color: #ff9500;
    margin-bottom: 1rem;
}

.modal-icon-success {
    font-size: 3rem;
    color: #10b981;
    margin-bottom: 1rem;
}

.modal-content-medium {
    max-width: 500px;
}

.modal-content-large {
    max-width: 800px;
}

.modal-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.modal-form-label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
}

.modal-form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    background: rgba(0, 0, 0, 0.04);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.modal-form-textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    background: rgba(0, 0, 0, 0.04);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 0.95rem;
    resize: vertical;
    font-family: inherit;
}

.modal-form-select {
    width: 100%;
    padding: 0.75rem 1rem;
    background: rgba(0, 0, 0, 0.04);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.modal-content-section {
    background: rgba(0, 0, 0, 0.02);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1rem;
}

.modal-content-section:last-child {
    margin-bottom: 0;
}

.modal-content-section-title {
    margin: 0 0 0.75rem 0;
    color: var(--text-primary);
}

.modal-content-section-text {
    margin: 0;
    color: var(--text-secondary);
    line-height: 1.6;
}

.modal-footer-btn-full {
    width: 100%;
}

.modal-text-with-margin {
    margin-bottom: 1rem;
}

.pos-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1rem;
    padding: 0.5rem;
}

.pos-product-card {
    background: rgba(0, 0, 0, 0.02);
    border-radius: 12px;
    padding: 1rem;
    transition: var(--transition);
    border: 1px solid var(--glass-border);
    display: flex;
    flex-direction: column;
    cursor: pointer;
}

.pos-product-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
}

.pos-product-image {
    width: 100%;
    height: 140px;
    border-radius: 8px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.04);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pos-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pos-product-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.pos-product-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    line-height: 1.3;
}

.pos-product-price {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0;
}

.pos-add-btn {
    width: 100%;
    padding: 0.5rem;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.pos-cart-items {
    min-height: 300px;
    max-height: 400px;
    overflow-y: auto;
    margin-bottom: 1rem;
}

.pos-cart-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 1rem;
    text-align: center;
    color: var(--text-secondary);
}

.pos-cart-empty i {
    font-size: 3rem;
    color: var(--text-tertiary);
    margin-bottom: 1rem;
    opacity: 0.5;
}

.pos-cart-empty p {
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
    color: var(--text-primary);
}

.pos-cart-empty span {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.pos-cart-summary {
    border-top: 1px solid var(--glass-border);
    padding-top: 1rem;
    margin-bottom: 1rem;
}

.pos-cart-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.pos-cart-total {
    border-top: 1px solid var(--glass-border);
    padding-top: 0.75rem;
    margin-top: 0.5rem;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
}

.pos-cart-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.pos-checkout-btn,
.pos-payment-btn {
    width: 100%;
    padding: 0.875rem;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

@media (max-width: 1199px) {
    .additional-cards[style*="grid-template-columns: 1fr 400px"] {
        grid-template-columns: 1fr !important;
    }
}

.pos-layout {
    grid-template-columns: 1fr 400px;
    gap: 1.5rem;
    margin-bottom: 0 !important;
    align-items: start;
}

.dashboard-content > section.pos-layout {
    margin-bottom: 0 !important;
}

.pos-layout > .info-card:first-child {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.pos-layout > .info-card:first-child > .card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

@media (max-width: 1199px) {
    .pos-layout {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 767px) {
    .pos-products-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 0.75rem;
    }

    .pos-product-image {
        height: 120px;
    }

    .pos-product-name {
        font-size: 0.85rem;
    }

    .pos-product-price {
        font-size: 0.9rem;
    }
}

.preview-img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    display: block;
}

.preview-caption {
    text-align: center;
    margin-top: 1rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
    opacity: 0.7;
}

.quick-action-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
}

.quick-action-btn {
    padding: 1.25rem;
    border-radius: 12px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    border: none;
}

.quick-action-btn-primary {
    background: rgba(0, 122, 255, 0.1);
    border: 1px solid rgba(0, 122, 255, 0.2);
}

.quick-action-btn-primary i {
    font-size: 1.5rem;
    color: #007aff;
}

.quick-action-btn-purple {
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.2);
}

.quick-action-btn-purple i {
    font-size: 1.5rem;
    color: #5856d6;
}

.quick-action-btn-success {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.quick-action-btn-success i {
    font-size: 1.5rem;
    color: #10b981;
}

.quick-action-btn-danger {
    background: rgba(255, 45, 85, 0.1);
    border: 1px solid rgba(255, 45, 85, 0.2);
}

.quick-action-btn-danger i {
    font-size: 1.5rem;
    color: #ff2d55;
}

.quick-action-label {
    font-size: 0.85rem;
    color: var(--text-primary);
    font-weight: 500;
}

.progress-fill-68 { width: 68%; }
.progress-fill-45 { width: 45%; }
.progress-fill-32 { width: 32%; }
.progress-fill-90 { width: 90%; }
.progress-fill-75 { width: 75%; }
.progress-fill-50 { width: 50%; }
.progress-fill-25 { width: 25%; }
.progress-fill-10 { width: 10%; }
.progress-fill-95 { width: 95%; }
.progress-fill-80 { width: 80%; }
.progress-fill-70 { width: 70%; }
.progress-fill-55 { width: 55%; }
.progress-fill-30 { width: 30%; }
.progress-fill-20 { width: 20%; }
.progress-fill-15 { width: 15%; }
.progress-fill-5 { width: 5%; }

.transaction-avatar-primary { background: #007aff; }
.transaction-avatar-success { background: #10b981; }
.transaction-avatar-warning { background: #ff9500; }
.transaction-avatar-purple { background: #af52de; }

.transaction-avatar-icon {
    color: white;
    font-size: 0.8rem;
}

.system-status-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.02);
    border-radius: 12px;
    margin-bottom: 0.75rem;
}

.system-status-item:last-child {
    margin-bottom: 0;
}

.system-status-info {
    flex: 1;
}

.system-status-title {
    margin: 0 0 0.25rem 0;
    font-weight: 500;
    color: var(--text-primary);
}

.system-status-desc {
    margin: 0;
    font-size: 0.85rem;
    color: var(--text-tertiary);
}

.system-status-badge {
    padding: 0.25rem 0.75rem;
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 500;
}

.landing-footer {
    margin-left: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
}

/* BLOG STYLES */
.blog-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
}

.blog-post-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-post-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.blog-post-image {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.blog-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.blog-post-card:hover .blog-post-image img {
    transform: scale(1.05);
}

.blog-post-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.375rem 0.75rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
}

.blog-post-badge.blog-post-published {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
}

.blog-post-badge.blog-post-draft {
    background: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
}

.blog-post-content {
    padding: 1.25rem;
}

.blog-post-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 0.75rem;
    font-size: 0.85rem;
    color: var(--text-tertiary);
}

.blog-post-category {
    color: var(--primary-color);
    font-weight: 500;
}

.blog-post-title {
    margin: 0 0 0.5rem 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.4;
}

.blog-post-excerpt {
    margin: 0 0 1rem 0;
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.blog-post-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid var(--glass-border);
}

.blog-post-stats {
    display: flex;
    gap: 1rem;
    font-size: 0.85rem;
    color: var(--text-tertiary);
}

.blog-post-stats span {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.blog-post-actions {
    display: flex;
    gap: 0.5rem;
}

/* HELP/FAQ STYLES */
.help-categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
}

.help-category-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 1.5rem;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.help-category-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.help-category-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 12px;
    color: var(--primary-color);
    font-size: 1.5rem;
}

.help-category-title {
    margin: 0 0 0.5rem 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.help-category-desc {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.faq-accordion {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.faq-item {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    overflow: hidden;
}

.faq-question {
    width: 100%;
    padding: 1.25rem;
    background: transparent;
    border: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    text-align: left;
    transition: background 0.3s ease;
}

.faq-question:hover {
    background: rgba(0, 0, 0, 0.02);
}

.faq-question span {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-primary);
}

.faq-icon {
    transition: transform 0.3s ease;
    color: var(--text-tertiary);
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

.faq-answer p {
    padding: 0 1.25rem 1.25rem;
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.help-contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.help-contact-item {
    display: flex;
    gap: 1.25rem;
    padding: 1.25rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
}

.help-contact-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 12px;
    color: var(--primary-color);
    font-size: 1.25rem;
    flex-shrink: 0;
}

.help-contact-details {
    flex: 1;
}

.help-contact-details h4 {
    margin: 0 0 0.5rem 0;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.help-contact-details p {
    margin: 0 0 0.25rem 0;
    font-size: 0.95rem;
    color: var(--text-primary);
}

.help-contact-details span {
    font-size: 0.85rem;
    color: var(--text-tertiary);
}

/* TASKS STYLES */
.task-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.task-item {
    display: flex;
    gap: 1rem;
    padding: 1.25rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.task-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.task-item.task-completed {
    opacity: 0.7;
}

.task-item.task-completed .task-title {
    text-decoration: line-through;
}

.task-checkbox {
    flex-shrink: 0;
}

.task-checkbox input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: var(--primary-color);
}

.task-content {
    flex: 1;
}

.task-title {
    margin: 0 0 0.5rem 0;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.task-description {
    margin: 0 0 0.75rem 0;
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.task-meta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    font-size: 0.85rem;
    color: var(--text-tertiary);
}

.task-priority {
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
}

.task-priority-high {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.task-priority-medium {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
}

.task-priority-low {
    background: rgba(59, 130, 246, 0.1);
    color: var(--primary-color);
}

.task-date,
.task-assignee {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.task-actions {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
}

.kanban-board {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    overflow-x: auto;
    padding-bottom: 1rem;
}

.kanban-column {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 1rem;
    min-width: 250px;
}

.kanban-column-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--glass-border);
}

.kanban-column-header h4 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.kanban-count {
    padding: 0.25rem 0.75rem;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.kanban-cards {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.kanban-card {
    background: rgba(0, 0, 0, 0.02);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    padding: 1rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.kanban-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.kanban-card-done {
    opacity: 0.7;
}

.kanban-card-title {
    margin: 0 0 0.5rem 0;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
}

.kanban-card-desc {
    margin: 0 0 0.75rem 0;
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

.kanban-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.kanban-assignee {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    font-size: 0.75rem;
    font-weight: 600;
}

/* EXPENSES STYLES */
.expense-categories-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.expense-category-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.expense-category-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.expense-category-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.expense-category-icon.expense-category-office {
    background: rgba(59, 130, 246, 0.1);
    color: var(--primary-color);
}

.expense-category-icon.expense-category-travel {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
}

.expense-category-icon.expense-category-utilities {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.expense-category-icon.expense-category-marketing {
    background: rgba(139, 92, 246, 0.1);
    color: #8b5cf6;
}

.expense-category-icon.expense-category-equipment {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.expense-category-info {
    flex: 1;
}

.expense-category-name {
    margin: 0 0 0.25rem 0;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.expense-category-amount {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
}

.expense-category-percentage {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-tertiary);
}

/* INVOICES STYLES */
.invoice-summary-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.invoice-summary-item {
    padding: 1.25rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
}

.invoice-summary-label {
    font-size: 0.85rem;
    color: var(--text-tertiary);
    margin-bottom: 0.5rem;
}

.invoice-summary-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.invoice-summary-chart {
    height: 200px;
    margin-top: 1rem;
}

@media (max-width: 768px) {
    .blog-posts-grid {
        grid-template-columns: 1fr;
    }

    .help-categories-grid {
        grid-template-columns: 1fr;
    }

    .kanban-board {
        grid-template-columns: 1fr;
    }

    .invoice-summary-stats {
        grid-template-columns: 1fr;
    }

    .task-item {
        flex-direction: column;
    }

    .task-actions {
        align-self: flex-end;
    }
}