/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Coffee-inspired color palette */
    --background: #faf9f6;
    --foreground: #2c1a14;
    --card: #ffffff;
    --card-foreground: #2c1a14;
    --primary: #6b4423;
    --primary-foreground: #faf9f6;
    --secondary: #f5f5dc;
    --secondary-foreground: #2c1a14;
    --muted: #ede8e3;
    --muted-foreground: #5d4e37;
    --accent: #c9a86c;
    --destructive: #dc2626;
    --border: #e5ded5;
    --sidebar: #2c1a14;
    --sidebar-foreground: #faf9f6;
    --sidebar-accent: #3e2723;
    
    /* Custom coffee colors */
    --espresso: #2c1a14;
    --mocha: #6b4423;
    --gold: #c9a86c;
    --cream: #faf9f6;
    --latte: #ede8e3;
    
    --radius: 10px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: var(--background);
    color: var(--foreground);
    line-height: 1.6;
}

/* Mobile Header */
.mobile-header {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 64px;
    background-color: var(--sidebar);
    z-index: 50;
}

.mobile-header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    padding: 0 1rem;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-icon {
    background-color: var(--gold);
    color: var(--espresso);
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.logo-icon svg {
    width: 20px;
    height: 20px;
}

.logo-text {
    color: var(--sidebar-foreground);
    font-weight: 700;
    font-size: 16px;
}

.menu-button {
    background: none;
    border: none;
    color: var(--sidebar-foreground);
    font-size: 24px;
    cursor: pointer;
    padding: 8px;
}

/* Sidebar */
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: 256px;
    background-color: var(--sidebar);
    display: flex;
    flex-direction: column;
    z-index: 40;
}

.sidebar-content {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1.5rem;
    border-bottom: 1px solid var(--sidebar-accent);
}

.logo-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--sidebar-foreground);
}

.logo-subtitle {
    font-size: 12px;
    color: rgba(250, 249, 246, 0.6);
}

.sidebar-nav {
    flex: 1;
    padding: 1rem;
    overflow-y: auto;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.625rem 0.875rem;
    border-radius: var(--radius);
    color: rgba(250, 249, 246, 0.8);
    text-decoration: none;
    transition: all 0.2s;
    margin-bottom: 0.125rem;
    font-size: 0.875rem;
}

.nav-link svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.nav-link:hover {
    background-color: var(--sidebar-accent);
    color: var(--sidebar-foreground);
}

.nav-link.active {
    background-color: var(--sidebar-accent);
    color: var(--gold);
}

.nav-icon {
    font-size: 18px;
    flex-shrink: 0;
}

.icon-button svg {
    width: 20px;
    height: 20px;
}

.card-icon svg {
    width: 20px;
    height: 20px;
}

.action-icon svg {
    width: 24px;
    height: 24px;
}

.title-icon svg {
    width: 20px;
    height: 20px;
}

.view-all-link svg {
    width: 16px;
    height: 16px;
    display: inline-block;
    vertical-align: middle;
}

.icon-link svg {
    width: 20px;
    height: 20px;
}

.sidebar-admin {
    padding: 1rem;
    border-top: 1px solid var(--sidebar-accent);
}

/* Main Content */
.main-content {
    margin-left: 256px;
    min-height: 100vh;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem 2rem;
}

/* ============================================
   GLOBAL PAGE CONTAINER SYSTEM
   Tüm sayfalar için tutarlı genişlik
   ============================================ */

/* Liste sayfaları için (dashboard, index sayfaları) */
.dashboard-page,
.lost-items-page,
.training-page,
.training-view-page,
.kpi-index-page,
.kpi-detail-page,
.announcements-page,
.questions-page,
.tickets-page,
.notifications-page,
.faq-page,
.feedback-page,
.admin-page {
    /* Container'dan max-width alır */
}

/* Form/Edit sayfaları için (daha dar) */
.create-container,
.edit-container,
.create-training-page,
.edit-training-page,
.target-page,
.data-page,
.profile-page,
.form-page {
    /* Container'dan max-width alır */
}

/* Detay sayfaları için (orta genişlik) */
.lost-view-container,
.ann-view-container,
.ticket-view-page,
.training-detail-page {
    /* Container'dan max-width alır */
}

/* Page Header */
.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.page-title {
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--foreground);
}

.page-subtitle {
    color: var(--muted-foreground);
    margin-top: 0.25rem;
}

.header-actions {
    display: flex;
    gap: 0.75rem;
}

.icon-button {
    position: relative;
    width: 40px;
    height: 40px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background-color: var(--card);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    transition: all 0.2s;
}

.icon-button:hover {
    background-color: var(--muted);
}

.notification-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background-color: var(--destructive);
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    font-size: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

/* Target Card */
.target-card {
    background: linear-gradient(135deg, var(--card) 0%, var(--secondary) 100%);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.card-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--foreground);
}

.card-icon {
    background-color: rgba(201, 168, 108, 0.2);
    padding: 0.5rem;
    border-radius: var(--radius);
    font-size: 20px;
}

.card-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.target-amounts {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.amount-label {
    font-size: 0.875rem;
    color: var(--muted-foreground);
}

.amount-value {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--foreground);
}

.currency {
    font-size: 1.125rem;
}

.target-amount {
    text-align: right;
}

.amount-value-small {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--muted-foreground);
}

.progress-section {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.progress-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
}

.progress-status {
    font-weight: 500;
}

.progress-status.excellent {
    color: #059669;
}

.progress-percentage {
    font-weight: 700;
    color: var(--foreground);
}

.progress-bar {
    height: 12px;
    background-color: var(--muted);
    border-radius: 999px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background-color: #059669;
    border-radius: 999px;
    transition: width 0.5s ease;
}

.remaining-text {
    font-size: 0.875rem;
    color: var(--muted-foreground);
}

/* Section */
.section {
    margin-bottom: 1.5rem;
}

.section-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--foreground);
    margin-bottom: 1rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    border-radius: var(--radius);
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn:active {
    transform: translateY(0);
}

.btn-primary {
    background-color: var(--mocha);
    color: var(--primary-foreground);
}

.btn-primary:hover {
    background-color: var(--espresso);
}

.btn-secondary {
    background-color: var(--muted);
    color: var(--foreground);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background-color: var(--latte);
}

.btn svg {
    width: 18px;
    height: 18px;
}

/* Form Elements */
.form-input,
.form-select {
    width: 100%;
    padding: 0.625rem 0.875rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 0.875rem;
    background-color: var(--card);
    color: var(--foreground);
    transition: border-color 0.2s;
}

.form-input:focus,
.form-select:focus {
    outline: none;
    border-color: var(--mocha);
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    font-size: 0.875rem;
    color: var(--foreground);
}

.form-group {
    margin-bottom: 1rem;
}

/* Alerts */
.alert {
    padding: 1rem 1.25rem;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.875rem;
}

.alert svg {
    flex-shrink: 0;
}

.alert-success {
    background-color: #d1fae5;
    color: #065f46;
    border: 1px solid #059669;
}

.alert-error {
    background-color: #fee2e2;
    color: #991b1b;
    border: 1px solid #dc2626;
}

.alert-warning {
    background-color: #fef3c7;
    color: #92400e;
    border: 1px solid #f59e0b;
}

/* Badge */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.625rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
}

.badge-mocha {
    background-color: rgba(107, 68, 35, 0.1);
    color: var(--mocha);
}

/* Quick Actions */
.quick-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.action-card {
    padding: 1.25rem;
    border-radius: var(--radius);
    text-decoration: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.2s;
    cursor: pointer;
}

.action-card:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.action-card:active {
    transform: scale(0.98);
}

.action-mocha {
    background-color: var(--mocha);
    color: var(--primary-foreground);
}

.action-gold {
    background-color: var(--gold);
    color: var(--espresso);
}

.action-espresso {
    background-color: var(--espresso);
    color: var(--primary-foreground);
}

.action-icon {
    background-color: rgba(0, 0, 0, 0.1);
    width: 48px;
    height: 48px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.action-title {
    font-size: 1.125rem;
    font-weight: 600;
}

.action-desc {
    font-size: 0.875rem;
    opacity: 0.8;
}

/* Grid */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

/* Card */
.card {
    background-color: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.card-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border);
}

.card-title-small {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--foreground);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.title-icon {
    font-size: 20px;
}

.view-all-link {
    color: var(--mocha);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: opacity 0.2s;
}

.view-all-link:hover {
    opacity: 0.8;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.badge {
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 500;
}

.badge-mocha {
    background-color: rgba(107, 68, 35, 0.1);
    color: var(--mocha);
}

.badge-processing {
    background-color: #dbeafe;
    color: #1e40af;
    border: 1px solid #bfdbfe;
}

.badge-open {
    background-color: #fef3c7;
    color: #92400e;
    border: 1px solid #fde68a;
}

.icon-link {
    color: var(--mocha);
    text-decoration: none;
    font-size: 1.25rem;
    transition: opacity 0.2s;
}

.icon-link:hover {
    opacity: 0.8;
}

/* Announcement Item */
.announcement-item {
    padding: 1rem;
    background-color: rgba(245, 245, 220, 0.5);
    border-radius: var(--radius);
    margin-bottom: 0.75rem;
    text-decoration: none;
    display: block;
    transition: background-color 0.2s;
    border-left: 4px solid transparent;
}

.announcement-item:hover {
    background-color: var(--secondary);
}

.announcement-item.priority-high {
    border-left-color: var(--destructive);
}

.announcement-item.priority-medium {
    border-left-color: #f59e0b;
}

.announcement-item.priority-normal {
    border-left-color: var(--muted);
}

.announcement-title {
    font-weight: 500;
    color: var(--foreground);
    margin-bottom: 0.25rem;
}

.announcement-desc {
    font-size: 0.875rem;
    color: var(--muted-foreground);
    margin-bottom: 0.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.announcement-time {
    font-size: 0.75rem;
    color: var(--muted-foreground);
}

/* Ticket Item */
.ticket-item {
    padding: 1rem;
    background-color: rgba(245, 245, 220, 0.5);
    border-radius: var(--radius);
    margin-bottom: 0.75rem;
    text-decoration: none;
    display: block;
    transition: background-color 0.2s;
}

.ticket-item:hover {
    background-color: var(--secondary);
}

.ticket-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.ticket-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.ticket-id {
    font-size: 0.75rem;
    font-family: monospace;
    color: var(--muted-foreground);
}

.ticket-title {
    font-weight: 500;
    color: var(--foreground);
}

.ticket-time {
    font-size: 0.75rem;
    color: var(--muted-foreground);
}

/* Mobile Bottom Navigation */
.mobile-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 64px;
    background-color: var(--sidebar);
    border-top: 1px solid var(--sidebar-accent);
    z-index: 50;
}

.mobile-nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    text-decoration: none;
    color: rgba(250, 249, 246, 0.6);
    transition: color 0.2s;
}

.mobile-nav-item svg {
    width: 20px;
    height: 20px;
}

.mobile-nav-item.active {
    color: var(--gold);
}

.mobile-nav-icon {
    font-size: 20px;
}

.menu-button svg {
    width: 24px;
    height: 24px;
}

.mobile-nav-label {
    font-size: 10px;
    font-weight: 500;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s;
    }
    
    .sidebar.open {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
        padding-top: 64px;
        padding-bottom: 64px;
    }
    
    .mobile-header {
        display: block;
    }
    
    .mobile-nav {
        display: flex;
    }
    
    .header-actions .icon-button:last-child {
        display: none;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }
    
    .page-title {
        font-size: 1.5rem;
    }
    
    .amount-value {
        font-size: 1.75rem;
    }
    
    .quick-actions {
        grid-template-columns: 1fr;
    }
    
    .grid-2 {
        grid-template-columns: 1fr;
    }
}


/* Notification Dropdown Styles */
#notificationBell:hover {
    background: var(--mocha) !important;
    color: white !important;
}

#notificationBell:hover i {
    color: white !important;
}

.notification-dropdown-item {
    display: block;
    padding: 1rem;
    border-bottom: 1px solid var(--border);
    text-decoration: none;
    color: var(--foreground);
    transition: background 0.2s;
}

.notification-dropdown-item:hover {
    background: var(--muted);
}

.notification-dropdown-item:last-child {
    border-bottom: none;
}

/* Notification Badge Animation */
@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

#notificationBadge {
    animation: pulse 2s infinite;
}

/* Urgent Badge Animation */
@keyframes pulse-urgent {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.85;
        transform: scale(1.05);
    }
}

.badge-urgent {
    background: #dc2626 !important;
    color: white !important;
    animation: pulse-urgent 1.5s infinite;
}

/* Badge base styles */
.badge {
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.badge-success { background: #d1fae5; color: #065f46; }
.badge-warning { background: #fef3c7; color: #92400e; }
.badge-danger { background: #fee2e2; color: #991b1b; }
.badge-default { background: var(--muted); color: var(--muted-foreground); }


/* ============================================
   GLOBAL PAGE DESIGN SYSTEM
   Tüm sayfalar için tutarlı tasarım şablonu
   Kahve/Mocha tonlarında
   ============================================ */

/* Page Header - Tüm sayfalar için */
.page-header-modern {
    background: linear-gradient(135deg, var(--mocha) 0%, var(--espresso) 100%);
    border-radius: var(--radius);
    padding: 2rem;
    margin-bottom: 1.5rem;
    color: white;
}

.page-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.page-header-title {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.page-header-title h1 {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
}

.page-header-title h1 i {
    width: 28px;
    height: 28px;
}

.page-header-title p {
    opacity: 0.85;
    font-size: 0.9375rem;
    margin: 0;
}

.page-header-actions {
    display: flex;
    gap: 0.75rem;
}

/* Primary Button - Kahve tonları */
.btn-modern {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 0.875rem;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-modern i {
    width: 18px;
    height: 18px;
}

.btn-modern-primary {
    background: var(--gold);
    color: var(--espresso);
}

.btn-modern-primary:hover {
    background: #d4b577;
    transform: translateY(-2px);
}

.btn-modern-secondary {
    background: rgba(255,255,255,0.15);
    color: white;
}

.btn-modern-secondary:hover {
    background: rgba(255,255,255,0.25);
}

.btn-modern-outline {
    background: transparent;
    color: var(--mocha);
    border: 1px solid var(--mocha);
}

.btn-modern-outline:hover {
    background: var(--mocha);
    color: white;
}

/* Stats Cards - Tutarlı tasarım */
.stats-grid-modern {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.stat-card-modern {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    border-left: 4px solid var(--gold);
    transition: all 0.2s;
}

.stat-card-modern:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.stat-card-modern.accent-mocha { border-left-color: var(--mocha); }
.stat-card-modern.accent-gold { border-left-color: var(--gold); }
.stat-card-modern.accent-green { border-left-color: #059669; }
.stat-card-modern.accent-amber { border-left-color: #f59e0b; }

.stat-icon-modern {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--latte);
}

.stat-icon-modern i {
    width: 24px;
    height: 24px;
    color: var(--mocha);
}

.stat-card-modern.accent-green .stat-icon-modern { background: #d1fae5; }
.stat-card-modern.accent-green .stat-icon-modern i { color: #059669; }
.stat-card-modern.accent-amber .stat-icon-modern { background: #fef3c7; }
.stat-card-modern.accent-amber .stat-icon-modern i { color: #d97706; }

.stat-info-modern {
    display: flex;
    flex-direction: column;
}

.stat-value-modern {
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1;
    color: var(--foreground);
}

.stat-label-modern {
    font-size: 0.8125rem;
    color: var(--muted-foreground);
    margin-top: 0.25rem;
}

/* Filter Tabs - Pill style */
.filter-tabs-modern {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.filter-tab-modern {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 999px;
    text-decoration: none;
    color: var(--muted-foreground);
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s;
}

.filter-tab-modern i {
    width: 16px;
    height: 16px;
}

.filter-tab-modern:hover {
    border-color: var(--mocha);
    color: var(--mocha);
}

.filter-tab-modern.active {
    background: var(--mocha);
    border-color: var(--mocha);
    color: white;
}

.filter-tab-count {
    background: rgba(255,255,255,0.2);
    padding: 0.125rem 0.5rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
}

.filter-tab-modern:not(.active) .filter-tab-count {
    background: var(--muted);
    color: var(--foreground);
}

/* Filter Section */
.filter-section-modern {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem;
    margin-bottom: 1.5rem;
}

.filter-row-modern {
    display: flex;
    align-items: flex-end;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.filter-item-modern {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    min-width: 180px;
}

.filter-label-modern {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--muted-foreground);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.filter-label-modern i {
    width: 14px;
    height: 14px;
}

.filter-select-modern {
    padding: 0.625rem 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--background);
    font-size: 0.875rem;
    cursor: pointer;
    transition: border-color 0.2s;
}

.filter-select-modern:hover,
.filter-select-modern:focus {
    border-color: var(--mocha);
    outline: none;
}

.filter-result-modern {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-left: auto;
}

.result-count-modern {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--muted-foreground);
    padding: 0.625rem 1rem;
    background: var(--muted);
    border-radius: var(--radius);
}

.result-count-modern i {
    width: 16px;
    height: 16px;
}

.result-count-modern strong {
    color: var(--foreground);
}

.btn-clear-modern {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.625rem 1rem;
    background: #fee2e2;
    color: #991b1b;
    text-decoration: none;
    border-radius: var(--radius);
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s;
}

.btn-clear-modern:hover {
    background: #fecaca;
}

.btn-clear-modern i {
    width: 16px;
    height: 16px;
}

/* Card Grid */
.card-grid-modern {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
}

.card-grid-modern.cols-3 {
    grid-template-columns: repeat(3, 1fr);
}

.card-grid-modern.cols-2 {
    grid-template-columns: repeat(2, 1fr);
}

/* Item Card */
.item-card-modern {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all 0.2s;
}

.item-card-modern:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.12);
}

.item-card-image {
    position: relative;
    height: 180px;
    background: var(--muted);
}

.item-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.item-card-image.no-image {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--muted) 0%, var(--border) 100%);
}

.item-card-image.no-image i {
    width: 48px;
    height: 48px;
    color: var(--muted-foreground);
    opacity: 0.3;
}

.item-card-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 0.375rem 0.75rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
}

.item-card-badge.waiting { background: #fef3c7; color: #92400e; }
.item-card-badge.success { background: #d1fae5; color: #065f46; }
.item-card-badge.default { background: var(--muted); color: var(--muted-foreground); }

.item-card-content {
    padding: 1.25rem;
}

.item-card-type {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: var(--latte);
    color: var(--mocha);
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.item-card-title {
    font-size: 0.9375rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 0.75rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.item-card-meta {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
    margin-bottom: 1rem;
}

.item-card-meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8125rem;
    color: var(--muted-foreground);
}

.item-card-meta-item i {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

.item-card-actions {
    display: flex;
    gap: 0.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

.btn-card-view {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    padding: 0.5rem;
    background: var(--muted);
    color: var(--foreground);
    text-decoration: none;
    border-radius: var(--radius);
    font-size: 0.8125rem;
    transition: all 0.2s;
}

.btn-card-view:hover {
    background: var(--border);
}

.btn-card-view i {
    width: 16px;
    height: 16px;
}

.btn-card-action {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 0.75rem;
    background: var(--mocha);
    color: white;
    text-decoration: none;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.2s;
}

.btn-card-action:hover {
    background: var(--espresso);
}

.btn-card-action i {
    width: 14px;
    height: 14px;
}

.btn-card-success {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    padding: 0.5rem;
    background: #059669;
    color: white;
    border: none;
    border-radius: var(--radius);
    font-size: 0.8125rem;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-card-success:hover {
    background: #047857;
}

.btn-card-success i {
    width: 16px;
    height: 16px;
}

/* Empty State */
.empty-state-modern {
    grid-column: 1 / -1;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 4rem 2rem;
    text-align: center;
}

.empty-state-modern i {
    width: 64px;
    height: 64px;
    color: var(--muted-foreground);
    opacity: 0.3;
    margin-bottom: 1.5rem;
}

.empty-state-modern h3 {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
    color: var(--foreground);
}

.empty-state-modern p {
    color: var(--muted-foreground);
    margin-bottom: 1.5rem;
}

/* Responsive */
@media (max-width: 1200px) {
    .card-grid-modern { grid-template-columns: repeat(3, 1fr); }
    .stats-grid-modern { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 900px) {
    .card-grid-modern { grid-template-columns: repeat(2, 1fr); }
    .stats-grid-modern { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
    .card-grid-modern { grid-template-columns: 1fr; }
    .stats-grid-modern { grid-template-columns: 1fr; }
    .page-header-content { flex-direction: column; gap: 1rem; align-items: stretch; }
    .page-header-actions { justify-content: center; }
    .filter-tabs-modern { flex-direction: column; }
    .filter-row-modern { flex-direction: column; align-items: stretch; }
    .filter-result-modern { margin-left: 0; justify-content: space-between; }
}
