/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Modern Color Scheme - Green/Teal Theme */
    --primary-color: #10b981;
    --primary-hover: #059669;
    --primary-light: #d1fae5;
    --primary-bg: #ecfdf5;

    --success-color: #10b981;
    --success-bg: #ecfdf5;
    --warning-color: #f59e0b;
    --warning-bg: #fffbeb;
    --error-color: #ef4444;
    --error-bg: #fef2f2;
    --info-color: #3b82f6;
    --info-bg: #eff6ff;

    /* Neutral Grays - Softer palette */
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: #0f172a;

    /* Surface Colors */
    --background: #f8fafc;
    --surface: #ffffff;
    --surface-secondary: var(--gray-50);
    --surface-tertiary: var(--gray-100);
    --surface-hover: #f1f5f9;

    /* Text Colors */
    --text-primary: var(--gray-900);
    --text-secondary: var(--gray-600);
    --text-tertiary: var(--gray-500);
    --text-quaternary: var(--gray-400);
    --text-muted: var(--gray-400);

    /* Border Colors */
    --border-primary: var(--gray-200);
    --border-secondary: var(--gray-100);

    /* Shadows - More subtle */
    --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.03);
    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.08), 0 1px 2px 0 rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04);

    /* Radius */
    --radius-sm: 4px;
    --radius: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;

    /* Layout */
    --sidebar-width: 280px;
    --header-height: 80px;

    /* Typography */
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
    background: var(--background);
    color: var(--text-primary);
    line-height: 1.6;
    font-size: 14px;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Modern scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--surface-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--gray-300);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gray-400);
}

/* Dashboard Layout */
.dashboard-container {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: var(--sidebar-width);
    background: var(--surface);
    border-right: 1px solid var(--border-primary);
    position: fixed;
    height: 100vh;
    left: 0;
    top: 0;
    overflow-y: auto;
    z-index: 1000;
    padding: 24px 0;
}

.sidebar-header {
    padding: 0 24px 32px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 20px;
    font-weight: var(--font-weight-bold);
    color: var(--text-primary);
}

.logo-img {
    width: 32px;
    height: 32px;
    object-fit: contain;
    border-radius: var(--radius);
}

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

.sidebar-menu-label {
    padding: 0 24px 12px;
    font-size: 11px;
    font-weight: var(--font-weight-semibold);
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sidebar-nav {
    padding: 0 12px 24px;
}

.sidebar-section {
    margin-top: 32px;
}

.sidebar-section .nav-list {
    padding: 0 12px;
}

.nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    margin: 2px 0;
    color: var(--text-secondary);
    cursor: pointer;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    font-size: 14px;
    font-weight: var(--font-weight-medium);
    border-radius: var(--radius-md);
    transition: all 0.2s ease;
    position: relative;
}

.nav-item:hover {
    background: var(--surface-secondary);
    color: var(--text-primary);
}

.nav-item.active {
    background: var(--primary-color);
    color: white;
    font-weight: var(--font-weight-semibold);
}

.nav-item i {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

.nav-badge {
    background: var(--primary-color);
    color: white;
    font-size: 11px;
    font-weight: var(--font-weight-semibold);
    padding: 2px 6px;
    border-radius: 10px;
    margin-left: auto;
}

.nav-item.active .nav-badge {
    background: rgba(255, 255, 255, 0.2);
}

/* Main Content */
.main-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    min-height: 100vh;
    filter: none !important;
    background: var(--surface-secondary);
}

.content-header {
    background: var(--surface);
    border-bottom: 1px solid var(--border-primary);
    padding: 0 32px;
    height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(8px);
}

.header-left h1 {
    font-size: 28px;
    font-weight: var(--font-weight-semibold);
    color: var(--text-primary);
    margin: 0 0 4px 0;
    line-height: 1.2;
}

.header-subtitle {
    font-size: 16px;
    color: var(--text-tertiary);
    font-weight: var(--font-weight-medium);
    margin: 0;
}

.header-actions {
    display: flex;
    gap: 24px;
    align-items: center;
}

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

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

.header-search {
    width: 280px;
    padding: 12px 16px 12px 40px;
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-md);
    font-size: 14px;
    background: var(--surface-secondary);
    transition: all 0.2s ease;
}

.header-search:focus {
    outline: none;
    border-color: var(--primary-color);
    background: var(--surface);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.search-shortcut {
    position: absolute;
    right: 12px;
    font-size: 12px;
    color: var(--text-quaternary);
    background: var(--surface-tertiary);
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: var(--font-weight-medium);
}

.header-notifications {
    display: flex;
    gap: 8px;
}

.notification-btn {
    width: 40px;
    height: 40px;
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-md);
    background: var(--surface);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.notification-btn:hover {
    background: var(--surface-secondary);
    color: var(--text-primary);
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s ease;
}

.user-profile:hover {
    background: var(--surface-secondary);
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.user-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.user-name {
    font-size: 14px;
    font-weight: var(--font-weight-semibold);
    color: var(--text-primary);
    line-height: 1.2;
}

.user-email {
    font-size: 12px;
    color: var(--text-tertiary);
    line-height: 1.2;
}

.header-stats {
    display: flex;
    gap: 24px;
    padding-right: 16px;
    border-right: 1px solid var(--border-secondary);
}

.header-stat {
    text-align: right;
}

.stat-value {
    display: block;
    font-size: 18px;
    font-weight: var(--font-weight-semibold);
    color: var(--text-primary);
    line-height: 1.2;
}

.stat-label {
    font-size: 12px;
    color: var(--text-tertiary);
    font-weight: var(--font-weight-medium);
    margin-top: 2px;
}

/* Content Sections */
.content-section {
    display: none;
    padding: 32px;
    filter: none !important;
}

.content-section.active {
    display: block;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

.stat-card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: 24px;
    border: 1px solid var(--border-primary);
    box-shadow: var(--shadow-sm);
    position: relative;
    transition: all 0.2s ease;
}

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

.stat-card.primary {
    background: var(--primary-color);
    color: white;
    border: none;
}

.stat-card.light {
    background: var(--surface);
    color: var(--text-primary);
}

.stat-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.stat-info h3 {
    font-size: 36px;
    font-weight: var(--font-weight-bold);
    margin-bottom: 8px;
    line-height: 1;
}

.stat-card.primary .stat-info h3 {
    color: white;
}

.stat-info p {
    font-size: 16px;
    font-weight: var(--font-weight-medium);
    margin-bottom: 8px;
    color: inherit;
}

.stat-card.primary .stat-info p {
    color: rgba(255, 255, 255, 0.9);
}

.stat-change {
    font-size: 12px;
    font-weight: var(--font-weight-medium);
    display: flex;
    align-items: center;
    gap: 4px;
}

.stat-change.positive {
    color: rgba(255, 255, 255, 0.8);
}

.stat-change.neutral {
    color: var(--text-tertiary);
}

.stat-card .stat-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
}

.stat-card.light .stat-icon {
    background: var(--surface-secondary);
    color: var(--text-tertiary);
}

/* Section Headers */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 0;
}

.section-header h2 {
    font-size: 20px;
    font-weight: var(--font-weight-semibold);
    color: var(--text-primary);
    margin: 0;
}

.search-filter {
    display: flex;
    gap: 12px;
    align-items: center;
}

.search-input {
    padding: 8px 12px;
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-md);
    font-size: 14px;
    width: 240px;
    background: var(--surface);
    font-weight: var(--font-weight-medium);
    transition: all 0.15s ease;
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.12);
}

.search-input::placeholder {
    color: var(--text-quaternary);
    font-weight: var(--font-weight-medium);
}

.filter-select {
    padding: 8px 12px;
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-md);
    font-size: 14px;
    background: var(--surface);
    cursor: pointer;
    font-weight: var(--font-weight-medium);
    min-width: 120px;
    transition: all 0.15s ease;
}

.filter-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.12);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border: 1px solid transparent;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: var(--font-weight-semibold);
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
    line-height: 1.4;
    white-space: nowrap;
}

.btn.primary {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    box-shadow: var(--shadow-sm);
}

.btn.primary:hover {
    background: var(--primary-hover);
    border-color: var(--primary-hover);
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}

.btn.secondary {
    background: var(--surface);
    color: var(--text-secondary);
    border-color: var(--border-primary);
    box-shadow: var(--shadow-sm);
}

.btn.secondary:hover {
    background: var(--surface-secondary);
    color: var(--text-primary);
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}

.btn.success {
    background: var(--success-color);
    color: white;
    border-color: var(--success-color);
    box-shadow: var(--shadow-sm);
}

.btn.warning {
    background: var(--warning-color);
    color: white;
    border-color: var(--warning-color);
    box-shadow: var(--shadow-sm);
}

.btn.error {
    background: var(--error-color);
    color: white;
    border-color: var(--error-color);
    box-shadow: var(--shadow-sm);
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.btn i {
    font-size: 14px;
}



/* Tables */
.table-container {
    background: var(--surface);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-primary);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table thead {
    background: var(--surface-secondary);
}

.data-table th {
    padding: 12px 16px;
    text-align: left;
    font-size: 12px;
    font-weight: var(--font-weight-semibold);
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid var(--border-primary);
}

.data-table td {
    padding: 16px;
    border-bottom: 1px solid var(--border-secondary);
    vertical-align: middle;
    font-size: 14px;
    font-weight: var(--font-weight-medium);
    color: var(--text-primary);
}

.data-table tbody tr:hover {
    background: var(--surface-secondary);
}

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

/* Modern table: sticky header + zebra rows */
.table-container { overflow: auto; }
.data-table thead { position: sticky; top: 0; z-index: 5; background: var(--surface); }
.data-table tbody tr:nth-child(even) { background: var(--surface-secondary); }


/* ID Column - Short UUID */
.user-id {
    font-family: 'SF Mono', 'Monaco', 'Consolas', monospace;
    font-size: 12px;
    color: var(--text-tertiary);
    background: var(--surface-tertiary);
    padding: 4px 8px;
    border-radius: var(--radius-sm);
    display: inline-block;
    max-width: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: var(--font-weight-medium);
}

/* Email Column */
.user-email {
    font-weight: var(--font-weight-medium);
    color: var(--text-primary);
    font-size: 14px;
}

/* Type Badge */
.user-type-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 8px;
    border-radius: var(--radius);
    font-size: 12px;
    font-weight: var(--font-weight-semibold);
    text-transform: capitalize;
}

.user-type-badge.driver {
    background: var(--info-bg);
    color: var(--info-color);
}

.user-type-badge.shop {
    background: var(--success-bg);
    color: var(--success-color);
}

/* Date */
.date-text {
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: var(--font-weight-medium);
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 8px;
    align-items: center;
}

.action-btn {
    width: 32px;
    height: 32px;
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 14px;
    background: var(--surface);
    color: var(--text-secondary);
    transition: all 0.15s ease;
}

.action-btn:hover {
    background: var(--surface-secondary);
    color: var(--text-primary);
}

.action-btn.edit:hover {
    background: var(--info-bg);
    color: var(--info-color);
    border-color: var(--info-color);
}

.action-btn.password:hover {
    background: var(--warning-bg);
    color: var(--warning-color);
    border-color: var(--warning-color);
}

.action-btn.delete:hover {
    background: var(--error-bg);
    color: var(--error-color);
    border-color: var(--error-color);
}

/* Shop Cards Grid */
.shop-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

.shop-card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-primary);
    padding: 24px;
    box-shadow: var(--shadow-sm);
}

.shop-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
}

.shop-info h3 {
    font-size: 18px;
    font-weight: var(--font-weight-semibold);
    color: var(--text-primary);
    margin-bottom: 4px;
    line-height: 1.3;
}

.shop-info p {
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: var(--font-weight-medium);
}

.shop-status {
    display: inline-flex;
    align-items: center;
    padding: 4px 8px;
    border-radius: var(--radius);
    font-size: 12px;
    font-weight: var(--font-weight-semibold);
    text-transform: capitalize;
}

.shop-status.active {
    background: var(--success-bg);
    color: var(--success-color);
}

.shop-status.inactive {
    background: var(--error-bg);
    color: var(--error-color);
}

.shop-status.pending {
    background: var(--warning-bg);
    color: var(--warning-color);
}

.shop-details {
    margin-bottom: 20px;
}

.shop-detail {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid var(--border-secondary);
}

.shop-detail:last-child {
    border-bottom: none;
}

.shop-detail-label {
    color: var(--text-tertiary);
    font-size: 12px;
    font-weight: var(--font-weight-semibold);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.shop-detail-value {
    color: var(--text-primary);
    font-size: 14px;
    font-weight: var(--font-weight-medium);
}

.shop-actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}

/* Info Modal Styles */
.info-item {
    margin-bottom: 12px;
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
}

.info-item:last-child {
    border-bottom: none;
}

.info-item strong {
    color: var(--text-primary);
    font-weight: 600;
}

/* Dashboard Grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 24px;
    margin-bottom: 32px;
}

/* Analytics Section */
.analytics-section {
    background: var(--surface);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-primary);
    padding: 24px;
    box-shadow: var(--shadow-sm);
}

.analytics-section .section-header h3 {
    font-size: 18px;
    font-weight: var(--font-weight-semibold);
    color: var(--text-primary);
    margin-bottom: 24px;
}

.chart-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.chart-bars {
    display: flex;
    align-items: end;
    gap: 12px;
    height: 120px;
}

.chart-bar {
    width: 32px;
    background: var(--surface-tertiary);
    border-radius: 4px 4px 0 0;
    transition: all 0.3s ease;
}

.chart-bar.active {
    background: var(--primary-color);
}

.chart-labels {
    display: flex;
    gap: 12px;
}

.chart-labels span {
    width: 32px;
    text-align: center;
    font-size: 12px;
    color: var(--text-tertiary);
    font-weight: var(--font-weight-medium);
}

/* Reminders Section */
.reminders-section {
    background: var(--surface);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-primary);
    padding: 24px;
    box-shadow: var(--shadow-sm);
}

.reminders-section .section-header h3 {
    font-size: 18px;
    font-weight: var(--font-weight-semibold);
    color: var(--text-primary);
    margin-bottom: 24px;
}

.reminder-card {
    background: var(--surface-secondary);
    border-radius: var(--radius-md);
    padding: 20px;
    border: 1px solid var(--border-secondary);
}

.reminder-card h4 {
    font-size: 16px;
    font-weight: var(--font-weight-semibold);
    color: var(--text-primary);
    margin-bottom: 8px;
}

.reminder-time {
    font-size: 14px;
    color: var(--text-tertiary);
    margin-bottom: 16px;
}

.btn.small {
    padding: 8px 16px;
    font-size: 13px;
}

/* Projects Section */
.projects-section {
    background: var(--surface);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-primary);
    padding: 24px;
    box-shadow: var(--shadow-sm);
}

.projects-section .section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.projects-section .section-header h3 {
    font-size: 18px;
    font-weight: var(--font-weight-semibold);
    color: var(--text-primary);
}

.btn-icon {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: none;
    border: none;
    color: var(--text-tertiary);
    font-size: 12px;
    font-weight: var(--font-weight-medium);
    cursor: pointer;
    border-radius: var(--radius);
    transition: all 0.2s ease;
}

.btn-icon:hover {
    background: var(--surface-secondary);
    color: var(--text-primary);
}

.project-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.project-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
}

.project-icon {
    width: 32px;
    height: 32px;
    border-radius: var(--radius);
    background: var(--surface-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-tertiary);
    font-size: 14px;
}

.project-info h4 {
    font-size: 14px;
    font-weight: var(--font-weight-medium);
    color: var(--text-primary);
    margin-bottom: 2px;
}

.project-info p {
    font-size: 12px;
    color: var(--text-tertiary);
}

/* Recent Users and Shops */
.recent-users,
.recent-shops {
    background: var(--surface);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-primary);
    padding: 24px;
    box-shadow: var(--shadow-sm);
}

.view-all {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 14px;
    font-weight: var(--font-weight-medium);
    padding: 4px 8px;
    border-radius: var(--radius);
    transition: all 0.15s ease;
}

.view-all:hover {
    background: var(--primary-bg);
    text-decoration: none;
}

.list-container {
    margin-top: 16px;
}

.list-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-secondary);
}

.list-item:last-child {
    border-bottom: none;
}

.item-avatar {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    background: var(--primary-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 16px;
    font-weight: var(--font-weight-semibold);
}

.item-info h4 {
    font-size: 14px;
    font-weight: var(--font-weight-medium);
    color: var(--text-primary);
    margin: 0 0 2px 0;
    line-height: 1.3;
}

.item-info p {
    font-size: 12px;
    color: var(--text-tertiary);
    margin: 0;
    font-weight: var(--font-weight-medium);
}

.item-content h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.item-content p {
    font-size: 12px;
    color: var(--text-secondary);
}

.team-collaboration .section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.team-collaboration .section-header h3 {
    font-size: 18px;
    font-weight: var(--font-weight-semibold);
    color: var(--text-primary);
}

.team-members {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.team-member {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-secondary);
}

.team-member:last-child {
    border-bottom: none;
}

.member-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.member-info {
    flex: 1;
}

.member-info h4 {
    font-size: 14px;
    font-weight: var(--font-weight-semibold);
    color: var(--text-primary);
    margin-bottom: 4px;
}

.member-info p {
    font-size: 12px;
    color: var(--text-tertiary);
}

.project-link {
    color: var(--primary-color);
    font-weight: var(--font-weight-medium);
}

.member-status {
    padding: 4px 8px;
    border-radius: var(--radius);
    font-size: 11px;
    font-weight: var(--font-weight-semibold);
    text-transform: capitalize;
}

.member-status.completed {
    background: var(--success-bg);
    color: var(--success-color);
}

.member-status.in-progress {
    background: var(--info-bg);
    color: var(--info-color);
}

.member-status.pending {
    background: var(--warning-bg);
    color: var(--warning-color);
}

/* Project Progress */
.project-progress {
    background: var(--surface);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-primary);
    padding: 24px;
    box-shadow: var(--shadow-sm);
}

.project-progress .section-header h3 {
    font-size: 18px;
    font-weight: var(--font-weight-semibold);
    color: var(--text-primary);
    margin-bottom: 24px;
}

.progress-circle {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.circle-progress {
    position: relative;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: conic-gradient(var(--primary-color) 0deg 147.6deg, var(--surface-tertiary) 147.6deg 360deg);
    display: flex;
    align-items: center;
    justify-content: center;
}

.circle-inner {
    width: 80px;
    height: 80px;
    background: var(--surface);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.progress-text {
    font-size: 24px;
    font-weight: var(--font-weight-bold);
    color: var(--text-primary);
}

.progress-label {
    font-size: 10px;
    color: var(--text-tertiary);
    text-align: center;
}

.progress-legend {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--text-secondary);
}

.legend-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.legend-dot.completed {
    background: var(--primary-color);
}

.legend-dot.in-progress {
    background: var(--info-color);
}

.legend-dot.pending {
    background: var(--surface-tertiary);
}

/* Time Tracker */
.time-tracker {
    background: linear-gradient(135deg, var(--gray-800), var(--gray-900));
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    color: white;
}

.time-tracker .section-header h3 {
    font-size: 18px;
    font-weight: var(--font-weight-semibold);
    color: white;
    margin-bottom: 24px;
}

.timer-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.timer-time {
    font-size: 32px;
    font-weight: var(--font-weight-bold);
    color: white;
    font-family: 'SF Mono', 'Monaco', 'Consolas', monospace;
}

.timer-controls {
    display: flex;
    gap: 12px;
}

.timer-btn {
    width: 40px;
    height: 40px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.timer-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
}

.timer-btn.stop {
    background: #ef4444;
    border-color: #ef4444;
}

.timer-btn.stop:hover {
    background: #dc2626;
    border-color: #dc2626;
}

/* Mobile App Section */
.mobile-app-section {
    margin-top: 32px;
}

.mobile-app-card {
    background: linear-gradient(135deg, var(--primary-color), #059669);
    border-radius: var(--radius-lg);
    padding: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: white;
    box-shadow: var(--shadow-md);
}

.app-content h3 {
    font-size: 20px;
    font-weight: var(--font-weight-semibold);
    margin-bottom: 8px;
}

.app-content p {
    font-size: 14px;
    margin-bottom: 16px;
    opacity: 0.9;
}

.app-content .btn {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    backdrop-filter: blur(10px);
}

.app-content .btn:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
}

.app-icon {
    font-size: 48px;
    opacity: 0.3;
}

/* Additional modern styling improvements */
.section-header h3 {
    font-size: 16px;
    font-weight: var(--font-weight-semibold);
    color: var(--text-primary);
    margin: 0;
}

/* Smooth transitions for all interactive elements */
* {
    transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

/* Focus states for accessibility */
button:focus,
input:focus,
select:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Loading states */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid var(--primary-color);
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Improved hover effects */
.stat-card:hover,
.analytics-section:hover,
.reminders-section:hover,
.projects-section:hover,
.team-collaboration:hover,
.project-progress:hover {
    box-shadow: var(--shadow-lg);
}

/* Better spacing for content sections */
.content-section {
    padding: 32px;
    min-height: calc(100vh - var(--header-height));
}

/* Announcements Styles */
.announcements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 24px;
    margin-top: 24px;
}

.announcement-card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: 24px;
    border: 1px solid var(--border-primary);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    position: relative;
}

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

.announcement-card.high {
    border-left: 4px solid #dc2626;
}

.announcement-card.medium {
    border-left: 4px solid #f59e0b;
}

.announcement-card.low {
    border-left: 4px solid #10b981;
}

.announcement-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
}

.announcement-title {
    font-size: 18px;
    font-weight: var(--font-weight-semibold);
    color: var(--text-primary);
    margin: 0;
    line-height: 1.4;
}

.announcement-actions {
    display: flex;
    gap: 8px;
}

.announcement-content {
    margin-top: 12px;
}

.announcement-message {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 16px;
}

.announcement-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    border-top: 1px solid var(--border-secondary);
}

.announcement-date {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--text-tertiary);
    font-weight: var(--font-weight-medium);
}

.announcement-importance {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 8px;
    border-radius: var(--radius);
    font-size: 11px;
    font-weight: var(--font-weight-semibold);
    text-transform: uppercase;
}

.announcement-importance.high {
    background: rgba(220, 38, 38, 0.1);
    color: #dc2626;
}

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

.announcement-importance.low {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

/* Announcements Empty State */
.announcements-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 80px 40px;
    color: var(--text-secondary);
}

.announcements-empty i {
    font-size: 64px;
    margin-bottom: 24px;
    color: var(--text-muted);
}

.announcements-empty h3 {
    margin: 0 0 12px 0;
    font-size: 24px;
    color: var(--text-primary);
    font-weight: 600;
}

.announcements-empty p {
    margin: 0 0 32px 0;
    font-size: 16px;
    line-height: 1.5;
}

/* Announcements Mobile Responsive */
@media (max-width: 768px) {
    .announcements-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .announcement-card {
        padding: 20px;
    }

    .announcement-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}

.section-header h3 {
    font-size: 16px;
    font-weight: var(--font-weight-semibold);
    color: var(--text-primary);
    margin: 0;
}

.view-all {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 14px;
    font-weight: var(--font-weight-medium);
    padding: 4px 8px;
    border-radius: var(--radius);
    transition: all 0.15s ease;
}

.view-all:hover {
    background: var(--primary-bg);
    text-decoration: none;
}

.list-container {
    margin-top: 16px;
}

.list-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-secondary);
}

.list-item:last-child {
    border-bottom: none;
}

.item-avatar {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    background: var(--primary-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 16px;
    font-weight: var(--font-weight-semibold);
}

.item-info h4 {
    font-size: 14px;
    font-weight: var(--font-weight-medium);
    color: var(--text-primary);
    margin: 0 0 2px 0;
    line-height: 1.3;
}

.item-info p {
    font-size: 12px;
    color: var(--text-tertiary);
    margin: 0;
    font-weight: var(--font-weight-medium);
}

.item-content h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.item-content p {
    font-size: 12px;
    color: var(--text-secondary);
}

/* Modal and Overlay */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

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

.modal {
    background: var(--surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal {
    transform: scale(1);
}

/* Larger layout for Team Management modal */
.team-modal {
    max-width: 960px;
    width: 95%;
}
@media (min-width: 1200px) {
    .team-modal { max-width: 1100px; }
}
.team-modal .modal-body {
    padding: 16px 24px;
}
.team-modal .btn.btn-sm {
    padding: 6px 10px;
    font-size: 12px;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 24px 16px;
    border-bottom: 1px solid var(--border-secondary);
    margin-bottom: 0;
}

.modal-header h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}

.modal-header h3 i {
    color: var(--primary-color);
    font-size: 16px;
}

.modal-body {
    padding: 0 24px 24px;
}


/* Announcement modal form labels */
.modal .form-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
    font-size: 14px;
}
.modal .form-group label i {
    color: var(--primary-color);
    width: 16px;
}

/* Modal close button */
.modal-close {
    background: transparent;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
}
.modal-close:hover {
    background: var(--primary-bg);
    color: var(--text-primary);
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
}

.form-group small {
    display: block;
    margin-top: 4px;
    color: var(--text-muted);
    font-size: 12px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 14px;
    transition: border-color 0.2s ease;
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

.form-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

/* Remove any backdrop-filter or blur from other elements */
.dashboard-container.modal-open {
    /* Remove any blur effects when modal is open */
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.toast {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: var(--surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    border-left: 4px solid var(--success-color);
    min-width: 300px;
    animation: slideInRight 0.3s ease;
}

.toast.error {
    border-left-color: var(--error-color);
}

.toast.warning {
    border-left-color: var(--warning-color);
}

.toast.info {
    border-left-color: var(--info-color);
}

.toast-icon {
    color: var(--success-color);
    font-size: 16px;
}

.toast.error .toast-icon {
    color: var(--error-color);
}

.toast.warning .toast-icon {
    color: var(--warning-color);
}

.toast.info .toast-icon {
    color: var(--info-color);
}

.toast-message {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
}

/* Animations */
@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Responsive */
@media (max-width: 1200px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }

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

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

    .content-header {
        padding: 16px 20px;
        flex-direction: column;
        gap: 16px;
        height: auto;
    }

    .header-actions {
        flex-direction: column;
        gap: 16px;
        width: 100%;
    }

    .search-container {
        width: 100%;
    }

    .header-search {
        width: 100%;
    }

    .header-notifications,
    .user-profile,
    .header-buttons {
        justify-content: center;
    }

    .content-section {
        padding: 20px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .section-header {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
    }

    .search-filter {
        flex-direction: column;
        gap: 8px;
    }

    .search-input {
        width: 100%;
    }

    .table-container {
        overflow-x: auto;
    }

    .data-table {
        min-width: 600px;
    }

    .mobile-app-card {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    .timer-time {
        font-size: 24px;
    }

    .circle-progress {
        width: 100px;
        height: 100px;
    }

    .circle-inner {
        width: 70px;
        height: 70px;
    }

    .progress-text {
        font-size: 20px;
    }
}

/* Categories Styles */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
    margin-top: 24px;
}

.category-card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: 24px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

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

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--category-color, var(--primary-color));
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.category-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.category-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--category-color, var(--primary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

.category-info h3 {
    margin: 0 0 4px 0;
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
}

.category-info p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.5;
}

.category-stats {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    padding: 16px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.category-stat {
    text-align: center;
    flex: 1;
}

.category-stat .stat-number {
    display: block;
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.category-stat .stat-label {
    font-size: 12px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

.category-actions {
    display: flex;
    gap: 12px;
    margin-top: 16px;
}

.category-action-btn {
    flex: 1;
    padding: 10px 16px;
    border: none;
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.category-action-btn.edit {
    background: #eff6ff;
    color: #2563eb;
    border: 1px solid #dbeafe;
}

.category-action-btn.edit:hover {
    background: #dbeafe;
    border-color: #93c5fd;
}

.category-action-btn.delete {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fee2e2;
}

.category-action-btn.delete:hover {
    background: #fee2e2;
    border-color: #fca5a5;
}

.category-status {
    position: absolute;
    top: 16px;
    right: 16px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.category-status.active {
    background: #d1fae5;
    color: #059669;
}

.category-status.inactive {
    background: #fee2e2;
    color: #dc2626;
}

/* Category Modal */
.category-modal {
    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: 10000;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

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

.category-modal .modal {
    background: var(--surface);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

.category-modal.active .modal {
    transform: scale(1);
}

.category-form {
    padding: 32px;
}

.category-form .form-group {
    margin-bottom: 24px;
}

.color-picker-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 12px;
    margin-top: 12px;
}

.color-option {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 3px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.color-option:hover {
    transform: scale(1.1);
}

.color-option.selected {
    border-color: var(--text-primary);
    transform: scale(1.1);
}

.color-option.selected::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-weight: bold;
    font-size: 18px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.icon-picker-grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 12px;
    margin-top: 12px;
}

.icon-option {
    width: 50px;
    height: 50px;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    background: var(--surface);
    color: var(--text-secondary);
    font-size: 18px;
}

.icon-option:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: rgba(255, 107, 53, 0.05);
}

.icon-option.selected {
    border-color: var(--primary-color);
    background: var(--primary-color);
    color: white;
}

/* Categories Empty State */
.categories-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 80px 40px;
    color: var(--text-secondary);
}

.categories-empty i {
    font-size: 64px;
    margin-bottom: 24px;
    color: var(--text-muted);
}

.categories-empty h3 {
    margin: 0 0 12px 0;
    font-size: 24px;
    color: var(--text-primary);
    font-weight: 600;
}

.categories-empty p {
    margin: 0 0 32px 0;
    font-size: 16px;
    line-height: 1.5;
}

/* Category Form Specific Styles */
.category-form .form-actions {
    margin-top: 32px;
    display: flex;
    gap: 16px;
}

.category-form .form-actions .btn {
    flex: 1;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 600;
}

/* Categories Mobile Responsive */
@media (max-width: 768px) {
    .categories-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .category-card {
        padding: 20px;
    }

    .category-header {
        gap: 12px;
    }

    .category-icon {
        width: 56px;
        height: 56px;
        font-size: 20px;
    }

    .color-picker-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .icon-picker-grid {
        grid-template-columns: repeat(6, 1fr);
    }

    .color-option,
    .icon-option {
        width: 40px;
        height: 40px;
    }
}

/* Login Screen Styles */
.login-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: linear-gradient(180deg, #fff7f2, #ffffff);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    animation: fadeIn 0.5s ease-in-out;
}

.login-container {
    background: #ffffff;
    border-radius: 12px;
    padding: 48px;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border: 1px solid #e0e0e0;
    position: relative;
}

.login-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--primary-color);
}

.login-header {
    text-align: center;
    margin-bottom: 32px;
}

.login-header h1 {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.login-header p {
    color: #666666;
    font-size: 16px;
    font-weight: 400;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.login-form .form-group {
    position: relative;
}

.login-form .form-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: #000000;
    margin-bottom: 8px;
    font-size: 14px;
}

.login-form .form-group label i {
    color: var(--primary-color);
    width: 16px;
}

.login-form input {
    width: 100%;
    padding: 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    background: #ffffff;
    transition: all 0.3s ease;
    outline: none;
}

.login-form input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.12);
    transform: translateY(-1px);
}

.password-input-container {
    position: relative;
}

.password-input-container input {
    padding-right: 50px;
}

.toggle-password {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #666666;
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.toggle-password:hover {
    color: var(--primary-color);
    background: rgba(255, 107, 53, 0.1);
}

.login-button {
    width: 100%;
    padding: 16px;
    background: var(--primary-color);
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    position: relative;
}

.login-button:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.25);
}

.login-button:active {
    transform: translateY(0);
}

.login-button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.login-button.success {
    background: var(--primary-color);
}

.login-error {
    background: rgba(255, 107, 53, 0.08);
    border: 1px solid rgba(255, 107, 53, 0.35);
    color: var(--primary-color);
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    animation: shakeError 0.5s ease-in-out;
}

.login-error::before {
    content: '⚠️';
    font-size: 16px;
}

.login-footer {
    text-align: center;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid #e0e0e0;
}

.login-footer p {
    color: #666666;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.login-footer i {
    color: #000000;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}



@keyframes shakeError {
    0%, 100% {
        transform: translateX(0);
    }
    25% {
        transform: translateX(-5px);
    }
    75% {
        transform: translateX(5px);
    }
}

/* Responsive Design for Login */
@media (max-width: 768px) {
    .login-container {
        padding: 32px 24px;
        margin: 20px;
        border-radius: 8px;
    }

    .login-header h1 {
        font-size: 28px;
    }

    .login-form {
        gap: 20px;
    }

    .login-form input,
    .login-button {
        padding: 14px;
        font-size: 15px;
    }
}

/* Security indicators */
.security-indicator {
    position: fixed;
    top: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.2);
    color: #000000;
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    z-index: 10000;
}

.security-indicator i {
    font-size: 10px;
}

/* Logout button styles */
.btn.secondary {
    background: rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.2);
    color: #666666;
}

.btn.secondary:hover {
    background: rgba(0, 0, 0, 0.2);
    color: #000000;
}

/* Logs Section Styles */
.logs-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}

.stat-card.error .stat-icon {
    background: linear-gradient(135deg, #ef4444, #dc2626);
}

.logs-container {
    background: var(--surface);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    overflow: hidden;
}

.logs-table-container {
    overflow-x: auto;
    max-height: 600px;
    overflow-y: auto;
}

.logs-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--surface);
}

.logs-table thead {
    background: #f8fafc;
    position: sticky;
    top: 0;
    z-index: 10;
}

.logs-table th {
    padding: 16px 12px;
    text-align: left;
    font-weight: 600;
    color: var(--text-primary);
    border-bottom: 2px solid var(--border);
    font-size: 14px;
    white-space: nowrap;
}

.logs-table td {
    padding: 12px;
    border-bottom: 1px solid var(--border);
    font-size: 13px;
    vertical-align: middle;
}

.logs-table tbody tr:hover {
    background: var(--surface-hover);
}

.log-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 8px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.log-status.success {
    background: rgba(16, 185, 129, 0.1);
    color: #059669;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.log-status.failed {
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.log-status i {
    font-size: 10px;
}

.log-datetime {
    color: var(--text-primary);
    font-weight: 500;
    white-space: nowrap;
}

.log-username {
    font-weight: 600;
    color: var(--text-primary);
}

.log-ip {
    font-family: 'Courier New', monospace;
    color: var(--text-secondary);
    background: rgba(0, 0, 0, 0.05);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
}

.log-location {
    color: var(--text-secondary);
    font-size: 12px;
}

.log-user-agent {
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--text-muted);
    font-size: 12px;
    cursor: help;
}

.log-reason {
    color: var(--text-secondary);
    font-style: italic;
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.logs-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: #f8fafc;
    border-top: 1px solid var(--border);
}

.pagination-info {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 500;
}

.logs-empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-secondary);
}

.logs-empty i {
    font-size: 48px;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.logs-empty h3 {
    font-size: 18px;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.logs-empty p {
    font-size: 14px;
}

.log-tooltip {
    position: relative;
    cursor: help;
}

.log-tooltip:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
    white-space: nowrap;
    z-index: 1000;
    margin-bottom: 5px;
}

.log-tooltip:hover::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: #333;
    margin-bottom: -5px;
}

/* Logs loading state */
.logs-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    color: var(--text-secondary);
}

.logs-loading i {
    margin-right: 8px;
    animation: spin 1s linear infinite;
}

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

/* Responsive logs table */
@media (max-width: 768px) {
    .logs-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .logs-table th,
    .logs-table td {
        padding: 8px 6px;
        font-size: 12px;
    }

    .log-user-agent {
        max-width: 100px;
    }

    .log-reason {
        max-width: 80px;
    }

    .logs-pagination {
        flex-direction: column;
        gap: 12px;
    }
}

/* Read-only indicators */
.readonly-warning {
    background: rgba(255, 193, 7, 0.1);
    border: 1px solid rgba(255, 193, 7, 0.3);
    color: #d97706;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.readonly-warning i {
    font-size: 16px;
}

/* Shop Info modal: wider layout and tabs */
.shop-info-modal { max-width: 820px; width: 95%; }
@media (min-width: 1200px){ .shop-info-modal { max-width: 960px; } }
.modal-tabs { display:flex; gap:8px; padding:0 24px 12px; border-bottom:1px solid var(--border-secondary); }
.tab-btn { background:transparent; border:none; padding:8px 12px; border-radius:8px 8px 0 0; cursor:pointer; color: var(--text-secondary); font-weight:600; }
.tab-btn.active { color: var(--text-primary); border-bottom:2px solid var(--primary-color); }
.shop-info-modal .orders-controls input[type="month"] { padding:8px 10px; border:1px solid var(--border-primary); border-radius:8px; }
.shop-info-modal .orders-summary .stat-card { background: var(--surface-tertiary); border:1px solid var(--border); border-radius:12px; }
