/**
 * Žluté Stránky - Business Section
 * Universal CSS Stylesheet
 * Contains all common styles used across pages
 */

/* ====================================
   CSS VARIABLES & RESET
==================================== */
:root {
    /* Primary Colors */
    --color-yellow: #FFD700;
    --color-yellow-light: #FFF9E0;
    --color-yellow-dark: #E6C200;
    --color-orange: #FF9500;
    --color-black: #000000;
    --color-white: #FFFFFF;
    
    /* Accent Colors */
    --color-coral: #FF6B6B;
    --color-pink: #FF8ED4;
    --color-purple: #A855F7;
    --color-indigo: #6366F1;
    --color-blue: #3B82F6;
    --color-cyan: #06B6D4;
    --color-green: #10B981;
    
    /* Gray Scale */
    --color-gray-50: #F9FAFB;
    --color-gray-100: #F3F4F6;
    --color-gray-200: #E5E7EB;
    --color-gray-300: #D1D5DB;
    --color-gray-400: #9CA3AF;
    --color-gray-500: #6B7280;
    --color-gray-600: #4B5563;
    --color-gray-700: #374151;
    --color-gray-800: #1F2937;
    --color-gray-900: #111827;
    
    /* Status Colors */
    --color-success: #10B981;
    --color-success-light: #D1FAE5;
    --color-warning: #F59E0B;
    --color-warning-light: #FEF3C7;
    --color-error: #EF4444;
    --color-error-light: #FEE2E2;
    --color-info: #3B82F6;
    --color-info-light: #DBEAFE;
    
    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-2xl: 24px;
    --radius-full: 9999px;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
    --shadow-glow-yellow: 0 8px 32px rgba(255, 215, 0, 0.25);
    --shadow-glow-orange: 0 8px 32px rgba(255, 149, 0, 0.25);
    --shadow-glow-purple: 0 8px 32px rgba(168, 85, 247, 0.25);
    --shadow-glow-green: 0 8px 32px rgba(16, 185, 129, 0.25);
    
    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-base: 0.2s ease;
    --transition-slow: 0.3s ease;
    
    /* Layout */
    --header-height: 72px;
    --sidebar-width: 280px;
    --max-content-width: 1600px;
}

/* Reset */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter Tight', -apple-system, BlinkMacSystemFont, sans-serif;
    background: linear-gradient(135deg, #FFFEF5 0%, #FFF9E5 50%, #FFF5D6 100%);
    color: var(--color-gray-800);
    min-height: 100vh;
    line-height: 1.5;
    font-size: 0.9375rem;
}

/* ====================================
   HEADER
==================================== */
.header {
    background: var(--color-white);
    border-bottom: 1px solid var(--color-gray-200);
    position: sticky;
    top: 0;
    z-index: 100;
    height: var(--header-height);
}

.header-inner {
    max-width: var(--max-content-width);
    margin: 0 auto;
    padding: 0 1.5rem;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.header-logo {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    text-decoration: none;
}

.header-logo-icon {
    width: 40px;
    height: 40px;
    /* Tinted, like .offer-card-icon.
       Solid #FFD700 behind the 📒 was loud enough that the tile read before the
       glyph did. 30% rather than the card's 16%: this is the brand mark in the
       header, and it should still register as yellow at a glance — the goal is to
       stop it shouting, not to make it disappear.

       Literal line first as the fallback for browsers without color-mix; the
       token line overrides it everywhere else, so a palette change still flows
       through. */
    background: rgba(255, 215, 0, 0.3);
    background: color-mix(in srgb, var(--color-yellow) 30%, transparent);

    /* Keeps the tile's edge once the fill is translucent — without it the emoji
       floats rather than sitting in something. */
    border: 1px solid rgba(255, 215, 0, 0.55);
    border: 1px solid color-mix(in srgb, var(--color-yellow) 55%, transparent);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.header-logo-text {
    font-weight: 800;
    font-size: 1.125rem;
    color: var(--color-gray-800);
}

.header-breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--color-gray-500);
}

.header-breadcrumb a {
    color: var(--color-gray-500);
    text-decoration: none;
    transition: var(--transition-fast);
}

.header-breadcrumb a:hover {
    color: var(--color-gray-800);
}

.header-breadcrumb-current {
    color: var(--color-gray-800);
    font-weight: 600;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.header-stats {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding-right: 1.5rem;
    border-right: 1px solid var(--color-gray-200);
}

.header-stat {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition-fast);
    text-decoration: none;
    color: inherit;
    position: relative;
}

.header-stat:hover {
    background: var(--color-yellow-light);
}

.header-stat.has-unread {
    background: rgba(239, 68, 68, 0.08);
}

.header-stat.has-unread:hover {
    background: rgba(239, 68, 68, 0.12);
}

.header-stat-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    background: var(--color-error);
    color: white;
    font-size: 0.6875rem;
    font-weight: 700;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulse-badge 2s ease-in-out infinite;
}

@keyframes pulse-badge {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.header-stat-icon {
    font-size: 1rem;
}

.header-stat-value {
    font-weight: 700;
    color: var(--color-gray-800);
}

.header-stat-label {
    color: var(--color-gray-500);
}

/* User Menu */
.header-user {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem;
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: var(--transition-fast);
    position: relative;
}

.header-user:hover {
    background: var(--color-gray-100);
}

.header-avatar {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--color-yellow), var(--color-orange));
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.875rem;
    color: var(--color-gray-800);
}

/* User Dropdown */
.user-dropdown {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    width: 240px;
    background: var(--color-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--color-gray-200);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition-base);
    z-index: 200;
    overflow: hidden;
}

.header-user.active .user-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-dropdown-header {
    padding: 1rem;
    border-bottom: 1px solid var(--color-gray-200);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.user-dropdown-avatar {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--color-yellow), var(--color-orange));
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
}

.user-dropdown-info {
    flex: 1;
    min-width: 0;
}

.user-dropdown-name {
    font-weight: 700;
    font-size: 0.9375rem;
    color: var(--color-gray-800);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-dropdown-email {
    font-size: 0.75rem;
    color: var(--color-gray-500);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-dropdown-menu {
    padding: 0.5rem 0;
}

.user-dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    color: var(--color-gray-700);
    text-decoration: none;
    transition: var(--transition-fast);
    cursor: pointer;
}

.user-dropdown-item:hover {
    background: var(--color-yellow-light);
    color: var(--color-gray-800);
}

.user-dropdown-item-icon {
    font-size: 1rem;
    width: 20px;
    text-align: center;
}

.user-dropdown-divider {
    height: 1px;
    background: var(--color-gray-200);
    margin: 0.5rem 0;
}

.user-dropdown-item.logout {
    color: var(--color-error);
}

.user-dropdown-item.logout:hover {
    background: var(--color-error-light);
}

/* Hamburger Button */
.header-hamburger {
    display: none;
    width: 40px;
    height: 40px;
    border: none;
    background: transparent;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: var(--radius-md);
    transition: var(--transition-fast);
}

.header-hamburger:hover {
    background: var(--color-gray-100);
}

.hamburger-icon {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 24px;
    height: 24px;
}

.hamburger-icon span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--color-gray-800);
    border-radius: 1px;
    transition: var(--transition-fast);
}

.header-hamburger.active .hamburger-icon span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.header-hamburger.active .hamburger-icon span:nth-child(2) {
    opacity: 0;
}

.header-hamburger.active .hamburger-icon span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Navigation */
.mobile-nav-overlay {
    display: none;
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-base);
}

.mobile-nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: var(--sidebar-width);
    height: calc(100vh - var(--header-height));
    background: var(--color-white);
    z-index: 100;
    transform: translateX(-100%);
    transition: var(--transition-base);
    overflow-y: auto;
    padding: 1.5rem;
    display: none;
    flex-direction: column;
    gap: 1.5rem;
}

.mobile-nav.active {
    transform: translateX(0);
}

/* ====================================
   LAYOUT
==================================== */
.layout,
.dashboard-layout {
    display: flex;
    min-height: calc(100vh - var(--header-height));
    max-width: var(--max-content-width);
    margin: 0 auto;
}

/* Sidebar */
.sidebar {
    width: var(--sidebar-width);
    background: var(--color-white);
    border-right: 1px solid var(--color-gray-200);
    height: calc(100vh - var(--header-height));
    position: sticky;
    top: var(--header-height);
    padding: 1.5rem 1rem;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.sidebar-profile {
    text-align: center;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--color-gray-200);
    margin-bottom: 1.25rem;
}

.sidebar-profile-avatar {
    width: 64px;
    height: 64px;
    background: var(--color-yellow-light);
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 0.75rem;
}

.sidebar-profile-name {
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.sidebar-profile-category {
    font-size: 0.8125rem;
    color: var(--color-gray-500);
}

/* Sidebar Level / XP Progress */
.sidebar-level {
    background: linear-gradient(135deg, #FFF8E1, #FFE9A0);
    border-radius: var(--radius-lg);
    padding: 1rem;
    margin-bottom: 1.25rem;
}

.sidebar-level-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.sidebar-level-title {
    font-size: 0.875rem;
    font-weight: 700;
}

.sidebar-level-badge {
    font-size: 0.6875rem;
    font-weight: 700;
    padding: 0.25rem 0.5rem;
    background: var(--color-yellow);
    border-radius: var(--radius-full);
}

.sidebar-level-progress {
    height: 8px;
    background: rgba(255,255,255,0.7);
    border-radius: var(--radius-full);
    overflow: hidden;
    margin-bottom: 0.375rem;
}

.sidebar-level-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--color-yellow), var(--color-orange));
    border-radius: var(--radius-full);
    transition: width 0.5s ease;
}

.sidebar-level-xp {
    font-size: 0.75rem;
    color: var(--color-gray-600);
    text-align: right;
}

/* Sidebar Navigation */
.sidebar-nav {
    flex: 1;
}

.sidebar-nav-section {
    margin-bottom: 1.5rem;
}

.sidebar-nav-section-title {
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-gray-400);
    padding: 0 0.75rem;
    margin-bottom: 0.5rem;
}

.sidebar-nav-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    border-radius: var(--radius-md);
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--color-gray-600);
    text-decoration: none;
    transition: var(--transition-base);
    position: relative;
}

.sidebar-nav-item:hover {
    background: var(--color-gray-50);
    color: var(--color-gray-800);
}

.sidebar-nav-item.active {
    background: linear-gradient(135deg, var(--color-yellow-light), #FFF3CD);
    color: var(--color-gray-800);
    font-weight: 700;
}

.sidebar-nav-item.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 24px;
    background: var(--color-yellow);
    border-radius: 0 var(--radius-full) var(--radius-full) 0;
}

.sidebar-nav-icon {
    font-size: 1.125rem;
    width: 24px;
    text-align: center;
}

.sidebar-nav-badge {
    margin-left: auto;
    padding: 0.125rem 0.5rem;
    background: var(--color-error);
    color: white;
    font-size: 0.6875rem;
    font-weight: 700;
    border-radius: var(--radius-full);
}

.sidebar-nav-badge.success {
    background: var(--color-success);
}

.sidebar-nav-badge.warning {
    background: var(--color-warning);
}

.sidebar-nav-badge.info {
    background: var(--color-blue);
}

/* Main Content */
.main-content {
    flex: 1;
    padding: 2rem;
    min-width: 0;
}

/* ====================================
   FOOTER
==================================== */
.footer {
    background: var(--color-white);
    border-top: 1px solid var(--color-gray-200);
    padding: 1.5rem;
    margin-top: auto;
}

.footer-inner {
    max-width: var(--max-content-width);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-copyright {
    font-size: 0.875rem;
    color: var(--color-gray-500);
}

.footer-links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.footer-link {
    font-size: 0.875rem;
    color: var(--color-gray-600);
    text-decoration: none;
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.footer-link:hover {
    color: var(--color-gray-800);
}

.footer-link-icon {
    font-size: 1rem;
}

/* ====================================
   PAGE HEADER
==================================== */
.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
}

.page-title-section,
.page-title-wrap {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.page-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--color-yellow), var(--color-orange));
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    box-shadow: 0 4px 15px rgba(234, 179, 8, 0.3);
    flex-shrink: 0;
}

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

.page-subtitle {
    font-size: 0.9375rem;
    color: var(--color-gray-500);
}

.page-actions {
    display: flex;
    gap: 0.75rem;
}

/* ====================================
   BUTTONS
==================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    font-size: 0.9375rem;
    font-weight: 700;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: var(--transition-base);
    font-family: inherit;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-yellow), var(--color-orange));
    color: var(--color-gray-900);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--color-orange), #B45309);
}

.btn-secondary {
    background: var(--color-white);
    color: var(--color-gray-700);
    border: 1px solid var(--color-gray-300);
}

.btn-secondary:hover {
    border-color: var(--color-yellow);
    background: var(--color-yellow-light);
}

.btn-success {
    background: linear-gradient(135deg, var(--color-green), #059669);
    color: var(--color-white);
}

.btn-success:hover {
    background: linear-gradient(135deg, #059669, #047857);
}

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

.btn-danger:hover {
    background: #DC2626;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.8125rem;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1rem;
}

/* ====================================
   CARDS
==================================== */
.card {
    background: var(--color-white);
    border-radius: var(--radius-xl);
    border: 1px solid var(--color-gray-200);
    overflow: hidden;
}

.card-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--color-gray-200);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.card-title {
    font-size: 1rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.card-body {
    padding: 1.5rem;
}

.card-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--color-gray-200);
    background: var(--color-gray-50);
}

/* Sidebar Cards */
.sidebar-card {
    background: var(--color-white);
    border-radius: var(--radius-xl);
    border: 1px solid var(--color-gray-200);
    padding: 1.25rem;
}

.sidebar-card-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9375rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

/* ====================================
   FORMS
==================================== */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--color-gray-700);
}

.form-label-hint {
    font-weight: 400;
    color: var(--color-gray-400);
}

.form-input {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid var(--color-gray-200);
    border-radius: var(--radius-md);
    font-size: 0.9375rem;
    font-family: inherit;
    transition: var(--transition-fast);
    background: var(--color-white);
}

.form-input:focus {
    outline: none;
    border-color: var(--color-yellow);
    box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.15);
}

.form-input::placeholder {
    color: var(--color-gray-400);
}

.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%236B7280'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1rem;
    padding-right: 2.5rem;
    cursor: pointer;
}

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

.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.form-error {
    color: var(--color-error);
    font-size: 0.8125rem;
    margin-top: 0.375rem;
}

/* ====================================
   FLASH MESSAGES
==================================== */
.flash-messages {
    margin-bottom: 1.5rem;
}

.flash-message {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    border-radius: var(--radius-md);
    margin-bottom: 0.75rem;
    font-size: 0.9375rem;
}

.flash-success {
    background: var(--color-success-light);
    color: #065F46;
    border: 1px solid var(--color-success);
}

.flash-error {
    background: var(--color-error-light);
    color: #991B1B;
    border: 1px solid var(--color-error);
}

.flash-warning {
    background: var(--color-warning-light);
    color: #92400E;
    border: 1px solid var(--color-warning);
}

.flash-info {
    background: var(--color-info-light);
    color: #1E40AF;
    border: 1px solid var(--color-info);
}

.flash-icon {
    font-size: 1.125rem;
}

.flash-text {
    flex: 1;
}

.flash-close {
    background: none;
    border: none;
    font-size: 1.25rem;
    cursor: pointer;
    opacity: 0.5;
    transition: var(--transition-fast);
}

.flash-close:hover {
    opacity: 1;
}

/* ====================================
   MODALS
==================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-base);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: var(--color-white);
    border-radius: var(--radius-2xl);
    width: 90%;
    max-width: 700px;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transform: translateY(20px);
    transition: var(--transition-base);
}

/* Form inside modal needs flex behavior */
.modal > form {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    overflow: hidden;
}

.modal-overlay.active .modal {
    transform: translateY(0);
}

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

.modal-title {
    font-size: 1.25rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.modal-close {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    border: none;
    background: var(--color-gray-100);
    cursor: pointer;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
}

.modal-close:hover {
    background: var(--color-gray-200);
}

.modal-body {
    padding: 2rem;
    overflow-y: auto;
    flex: 1;
    min-height: 0;
}

.modal-footer {
    padding: 1.5rem 2rem;
    border-top: 1px solid var(--color-gray-200);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

/* ====================================
   TOAST NOTIFICATIONS
==================================== */
.toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: var(--color-gray-800);
    color: var(--color-white);
    padding: 1rem 1.5rem;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    box-shadow: var(--shadow-lg);
    transform: translateY(100px);
    opacity: 0;
    transition: var(--transition-base);
    z-index: 1001;
}

.toast.show {
    transform: translateY(0);
    opacity: 1;
}

.toast-icon {
    font-size: 1.25rem;
}

.toast-message {
    font-size: 0.9375rem;
    font-weight: 500;
}

/* ====================================
   CONFETTI
==================================== */
.confetti {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1002;
    overflow: hidden;
}

.confetti-piece {
    position: absolute;
    width: 10px;
    height: 10px;
    animation: confetti-fall 3s linear forwards;
}

@keyframes confetti-fall {
    0% {
        opacity: 1;
        transform: translateY(-100px) rotate(0deg);
    }
    100% {
        opacity: 0;
        transform: translateY(100vh) rotate(720deg);
    }
}

/* ====================================
   BADGES & TAGS
==================================== */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.625rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
}

.badge-success {
    background: var(--color-success-light);
    color: var(--color-success);
}

.badge-warning {
    background: var(--color-warning-light);
    color: var(--color-warning);
}

.badge-error {
    background: var(--color-error-light);
    color: var(--color-error);
}

.badge-info {
    background: var(--color-info-light);
    color: var(--color-info);
}

/* ====================================
   TABLES
==================================== */
.table {
    width: 100%;
    border-collapse: collapse;
}

.table th,
.table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--color-gray-200);
}

.table th {
    font-weight: 600;
    color: var(--color-gray-600);
    font-size: 0.8125rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.table tbody tr:hover {
    background: var(--color-gray-50);
}

/* ====================================
   UTILITIES
==================================== */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-muted { color: var(--color-gray-500); }
.text-success { color: var(--color-success); }
.text-error { color: var(--color-error); }
.text-warning { color: var(--color-warning); }

.font-bold { font-weight: 700; }
.font-medium { font-weight: 500; }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.d-flex { display: flex; }
.d-none { display: none; }
.d-block { display: block; }

.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }

/* ====================================
   ANIMATIONS
==================================== */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

/* ====================================
   RESPONSIVE
==================================== */
@media (max-width: 1200px) {
    .sidebar {
        display: none;
    }
    
    .header-hamburger {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .mobile-nav-overlay {
        display: block;
    }

    .mobile-nav {
        display: flex;
    }
}

@media (max-width: 768px) {
    .header-stats {
        display: none;
    }

    .header-breadcrumb {
        display: none;
    }
    
    .page-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .main-content {
        padding: 1.5rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }

    .footer-inner {
        flex-direction: column;
        text-align: center;
    }

    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
    }

    .toast {
        left: 1rem;
        right: 1rem;
        bottom: 1rem;
    }
}

@media (max-width: 480px) {
    .page-icon {
        width: 48px;
        height: 48px;
        font-size: 1.5rem;
    }
    
    .page-title {
        font-size: 1.5rem;
    }
    
    .btn {
        padding: 0.625rem 1rem;
        font-size: 0.875rem;
    }
}
