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

:root {
    /* Colors from Reference */
    --orange-500: #f59e0b;
    --orange-600: #ea8a08;
    --orange-700: #d97706;

    --navy-900: #1e293b;
    --navy-800: #2d3748;
    --navy-700: #334155;

    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;

    --green-100: #d1fae5;
    --green-500: #10b981;

    --red-500: #ef4444;
    --red-600: #dc2626;

    --blue-500: #3b82f6;
    --blue-600: #2563eb;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--gray-50);
    color: var(--gray-900);
    line-height: 1.5;
    min-height: 100vh;
}

/* Layout with Sidebar */
.app-layout {
    display: flex;
    min-height: 100vh;
}

/* SIDEBAR */
.sidebar {
    width: 240px;
    background: var(--navy-900);
    color: white;
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    left: 0;
    top: 0;
    z-index: 100;
}

.sidebar-logo {
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-logo-icon {
    width: 36px;
    height: 36px;
    background: var(--orange-500);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.sidebar-logo-text {
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
}

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

.sidebar-nav ul {
    list-style: none;
}

.sidebar-nav li {
    margin: 0;
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.25rem;
    color: var(--gray-400);
    text-decoration: none;
    font-size: 0.9375rem;
    transition: all 0.2s;
}

.sidebar-nav a:hover {
    background: rgba(255, 255, 255, 0.05);
    color: white;
}

.sidebar-nav a.active {
    background: var(--orange-500);
    color: white;
    font-weight: 600;
}

.sidebar-nav svg {
    width: 20px;
    height: 20px;
}

.sidebar-divider {
    margin: 1rem 1.25rem;
    padding-top: 0.5rem;
    color: var(--gray-600);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.sidebar-separator {
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 0.75rem 1.25rem;
    list-style: none;
}

/* MAIN CONTENT */
.main-content {
    margin-left: 240px;
    flex: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.main-header {
    background: white;
    border-bottom: 1px solid var(--gray-200);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.main-header h1 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--gray-900);
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--orange-500);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
}

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

.user-email {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--gray-900);
}

.user-role {
    font-size: 0.75rem;
    color: var(--gray-500);
}

/* CONTENT AREA */
.content {
    flex: 1;
    padding: 2rem;
}

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

.content-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--gray-900);
    margin: 0;
}

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

.content-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

/* BUTTONS */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    border-radius: 8px;
    font-size: 0.9375rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: white;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #fcd34d 0%, #fbbf24 100%);
}

.btn-secondary {
    background: var(--gray-200);
    color: var(--gray-700);
}

.btn-secondary:hover {
    background: var(--gray-300);
}

.btn-icon {
    width: 36px;
    height: 36px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-icon-blue {
    background: transparent;
    color: var(--blue-500);
}

.btn-icon-blue:hover {
    background: rgba(59, 130, 246, 0.1);
}

.btn-icon-gray {
    background: transparent;
    color: var(--gray-400);
}

.btn-icon-gray:hover {
    background: var(--gray-100);
    color: var(--gray-600);
}

.btn-icon-red {
    background: transparent;
    color: var(--red-500);
}

.btn-icon-red:hover {
    background: rgba(239, 68, 68, 0.1);
}

.btn-icon-orange {
    background: transparent;
    color: var(--orange-500);
}

.btn-icon-orange:hover {
    background: rgba(245, 158, 11, 0.1);
    color: var(--orange-600);
}

/* CARDS */
.card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
    margin-bottom: 1.5rem;
}

.card-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 0.5rem;
}

.card-subtitle {
    font-size: 0.875rem;
    color: var(--gray-500);
    margin-bottom: 1rem;
}

/* STATS GRID */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: white;
    border-radius: 12px;
    padding: 1.25rem;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

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

.stat-title {
    font-size: 0.875rem;
    color: var(--gray-600);
    font-weight: 500;
}

.stat-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.stat-icon-blue {
    background: rgba(59, 130, 246, 0.1);
    color: var(--blue-500);
}

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

.stat-icon-green {
    background: rgba(16, 185, 129, 0.1);
    color: var(--green-500);
}

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

.stat-link {
    font-size: 0.875rem;
    color: var(--gray-500);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    transition: color 0.2s;
}

.stat-link:hover {
    color: var(--gray-700);
}

/* LIST ITEMS */
.list-item {
    background: white;
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
    margin-bottom: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.list-item-content {
    flex: 1;
}

.list-item-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 0.25rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.list-item-meta {
    font-size: 0.875rem;
    color: var(--gray-500);
    display: flex;
    gap: 1rem;
}

.list-item-actions {
    display: flex;
    gap: 0.5rem;
}

/* BADGES */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge-success {
    background: var(--green-100);
    color: var(--green-500);
}

.badge-inactive {
    background: var(--gray-200);
    color: var(--gray-600);
}

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

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

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 0.625rem 0.875rem;
    border: 1px solid var(--gray-300);
    border-radius: 8px;
    font-size: 0.9375rem;
    color: var(--gray-900);
    background: white;
    transition: border-color 0.2s;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--orange-500);
}

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

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

.form-help {
    font-size: 0.75rem;
    color: var(--gray-500);
    margin-top: 0.25rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

/* EMPTY STATE */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
}

.empty-state-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    color: var(--gray-300);
}

.empty-state-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 0.5rem;
}

.empty-state-text {
    font-size: 1rem;
    color: var(--gray-500);
    margin-bottom: 1.5rem;
}

/* BACK LINK */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--orange-500);
    text-decoration: none;
    font-size: 0.9375rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    transition: color 0.2s;
}

.back-link:hover {
    color: var(--orange-600);
}

/* FOOTER */
.footer {
    padding: 1.5rem 2rem;
    text-align: right;
    font-size: 0.875rem;
    color: var(--gray-500);
}

/* LOGIN PAGE */
.login-container {
    min-height: 100vh;
    background: linear-gradient(135deg, #10182B 0%, #1E293B 50%, #10182B 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    position: relative;
}

.login-card {
    background: white;
    border-radius: 20px;
    padding: 2.5rem 2rem;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.login-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.login-logo-icon {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, #f59e0b 0%, #ea580c 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}

.login-logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gray-900);
}

.login-title {
    font-size: 1.5rem;
    font-weight: 700;
    text-align: center;
    color: var(--gray-900);
    margin-bottom: 0.5rem;
}

.login-subtitle {
    font-size: 0.9375rem;
    text-align: center;
    color: var(--gray-500);
    margin-bottom: 1.75rem;
}

.login-footer {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.9375rem;
    color: var(--gray-600);
}

.login-footer a {
    color: var(--orange-500);
    text-decoration: none;
    font-weight: 600;
}

.login-footer a:hover {
    color: var(--orange-600);
}

.login-copyright {
    text-align: center;
    margin-top: 2rem;
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.7);
}

/* MADE IN BOLT */
.made-in-bolt {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    background: white;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    font-size: 0.875rem;
    color: var(--gray-700);
    font-weight: 500;
    z-index: 1000;
}

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

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

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

    .form-row {
        grid-template-columns: 1fr;
    }
}

/* Toggle Checkbox Styling */
.toggle-checkbox {
    width: 48px;
    height: 24px;
    position: relative;
    appearance: none;
    -webkit-appearance: none;
    background: var(--gray-300);
    border-radius: 24px;
    cursor: pointer;
    transition: background 0.3s;
    outline: none;
}

.toggle-checkbox::before {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: white;
    top: 2px;
    left: 2px;
    transition: transform 0.3s;
}

.toggle-checkbox:checked {
    background: var(--green-500);
}

.toggle-checkbox:checked::before {
    transform: translateX(24px);
}

/* Variáveis CSS adicionais */
:root {
    --green-700: #047857;
}

/* =====================================================
   ADMIN PANEL STYLES
   ===================================================== */

.admin-panel-content {
    background: var(--gray-50);
}

.admin-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.admin-title .subtitle {
    font-size: 0.875rem;
    color: var(--gray-500);
    font-weight: normal;
    margin-top: 0.25rem;
}

.admin-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
    margin-bottom: 1.5rem;
}

.admin-card h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--gray-200);
}

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

.admin-table th {
    text-align: left;
    padding: 0.75rem;
    color: var(--gray-500);
    font-weight: 500;
    font-size: 0.875rem;
    border-bottom: 1px solid var(--gray-200);
}

.admin-table td {
    padding: 0.75rem;
    border-bottom: 1px solid var(--gray-100);
    color: var(--gray-700);
}

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

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

.admin-link:hover {
    color: var(--orange-600);
    text-decoration: underline;
}

.btn-admin {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: white;
    border: none;
    padding: 0.625rem 1.25rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s;
    font-size: 0.9375rem;
}

.btn-admin:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.btn-admin-secondary {
    background: var(--gray-200);
    color: var(--gray-700);
}

.btn-admin-secondary:hover {
    background: var(--gray-300);
    box-shadow: none;
    transform: none;
}

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

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

.breadcrumb {
    display: flex;
    gap: 0.5rem;
    color: var(--gray-500);
    margin-bottom: 1rem;
    font-size: 0.875rem;
}

.breadcrumb a {
    color: var(--gray-600);
    text-decoration: none;
}

.breadcrumb a:hover {
    color: var(--orange-500);
}

.search-bar {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.search-bar input,
.search-bar select {
    padding: 0.625rem 0.875rem;
    border: 1px solid var(--gray-300);
    border-radius: 8px;
    font-size: 0.9375rem;
}

.search-bar input {
    flex: 1;
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.pagination a,
.pagination span {
    padding: 0.5rem 1rem;
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: 6px;
    color: var(--gray-700);
    text-decoration: none;
    font-size: 0.875rem;
}

.pagination a:hover {
    background: var(--gray-50);
    border-color: var(--gray-300);
}

.pagination .current {
    background: var(--orange-500);
    color: white;
    border-color: var(--orange-500);
}

/* Admin stat card adjustments */
.stat-card .icon {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.stat-card .number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--orange-500);
}

.stat-card .label {
    color: var(--gray-500);
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

/* Badge colors */
.badge-warning {
    background: rgba(245, 158, 11, 0.15);
    color: var(--orange-600);
}

.badge-danger {
    background: rgba(239, 68, 68, 0.15);
    color: var(--red-500);
}

.badge-info {
    background: rgba(59, 130, 246, 0.15);
    color: var(--blue-500);
}

/* Admin form styles */
.admin-form {
    max-width: 600px;
}

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

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

.admin-form input,
.admin-form select,
.admin-form textarea {
    width: 100%;
    padding: 0.625rem 0.875rem;
    background: white;
    border: 1px solid var(--gray-300);
    border-radius: 8px;
    color: var(--gray-900);
    font-size: 0.9375rem;
}

.admin-form input:focus,
.admin-form select:focus,
.admin-form textarea:focus {
    outline: none;
    border-color: var(--orange-500);
}

/* Enhanced Admin Table Styles */
.admin-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.admin-table th {
    text-align: left;
    padding: 1rem;
    color: var(--gray-600);
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 2px solid var(--gray-200);
    background: var(--gray-50);
}

.admin-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--gray-100);
    color: var(--gray-700);
    vertical-align: middle;
}

.admin-table tbody tr {
    transition: background 0.15s;
}

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

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

/* Enhanced Card Styles */
.card {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.06);
    margin-bottom: 1.5rem;
    border: 1px solid var(--gray-100);
}

.card-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--gray-800);
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--gray-100);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Content Header Enhancement */
.content-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--gray-200);
}

.content-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--gray-900);
    margin: 0 0 0.25rem 0;
}

.content-subtitle {
    font-size: 0.875rem;
    color: var(--gray-500);
    margin: 0;
}

/* Breadcrumb Enhancement */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--gray-400);
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
}

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

.breadcrumb a:hover {
    color: var(--orange-500);
}

.breadcrumb span {
    color: var(--gray-700);
    font-weight: 500;
}

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

.stat-card {
    background: white;
    border-radius: 12px;
    padding: 1.25rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--gray-100);
    transition: transform 0.15s, box-shadow 0.15s;
}

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

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

.stat-title {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

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

/* Grid Layout Enhancement */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

@media (max-width: 900px) {
    .grid-2 {
        grid-template-columns: 1fr;
    }
}

/* Admin Link Enhancement */
.admin-link {
    color: var(--orange-500);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.15s;
}

.admin-link:hover {
    color: var(--orange-600);
}

/* Badge Enhancement */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge-success {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    color: #047857;
}

.badge-inactive {
    background: var(--gray-100);
    color: var(--gray-600);
}

.badge-warning {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: #b45309;
}

.badge-info {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    color: #1d4ed8;
}

/* Button Enhancement */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: all 0.15s;
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: white;
    box-shadow: 0 2px 4px rgba(245, 158, 11, 0.3);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(245, 158, 11, 0.4);
}

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

.btn-secondary:hover {
    background: var(--gray-200);
}

/* =====================================================
   RESPONSIVE STYLES - Mobile First Approach
   ===================================================== */

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--gray-700);
    padding: 0.5rem;
    cursor: pointer;
    border-radius: 8px;
    transition: background 0.2s;
}

.mobile-menu-btn:hover {
    background: var(--gray-100);
}

.mobile-menu-btn svg {
    width: 24px;
    height: 24px;
}

/* Sidebar Overlay */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 99;
    opacity: 0;
    transition: opacity 0.3s;
}

.sidebar-overlay.active {
    display: block;
    opacity: 1;
}

/* Sidebar Close Button (mobile) */
.sidebar-close-btn {
    display: none;
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.sidebar-close-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Responsive Table Wrapper */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* Data Table Responsive */
.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
    min-width: 600px;
}

@media (max-width: 768px) {
    .data-table {
        font-size: 0.8125rem;
    }

    .data-table th,
    .data-table td {
        padding: 0.75rem 0.5rem !important;
    }

    /* Wrap data-table in scrollable container */
    .card>.data-table {
        display: block;
        overflow-x: auto;
    }
}

/* Responsive utility classes */
.hide-mobile {
    display: block;
}

.show-mobile {
    display: none !important;
}

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

/* =====================================================
   LARGE SCREENS (max-width: 1200px)
   ===================================================== */
@media (max-width: 1200px) {
    .content {
        padding: 1.5rem;
    }

    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    }
}

/* =====================================================
   MEDIUM SCREENS - TABLETS (max-width: 992px)
   ===================================================== */
@media (max-width: 992px) {
    .sidebar {
        width: 220px;
    }

    .main-content {
        margin-left: 220px;
    }

    .content {
        padding: 1.25rem;
    }

    .main-header {
        padding: 0.875rem 1.25rem;
    }

    .main-header h1 {
        font-size: 1.25rem;
    }

    .grid-2 {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .admin-table th,
    .admin-table td {
        padding: 0.75rem 0.5rem;
        font-size: 0.8125rem;
    }
}

/* =====================================================
   SMALL SCREENS - MOBILE (max-width: 768px)
   ===================================================== */
@media (max-width: 768px) {

    /* Show mobile menu button */
    .mobile-menu-btn {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* Sidebar hidden by default, shown when open */
    .sidebar {
        transform: translateX(-100%);
        width: 280px;
        transition: transform 0.3s ease;
    }

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

    .sidebar-close-btn {
        display: flex;
    }

    /* Main content takes full width */
    .main-content {
        margin-left: 0;
    }

    /* Header adjustments */
    .main-header {
        padding: 0.75rem 1rem;
        gap: 0.5rem;
    }

    .main-header h1 {
        font-size: 1.125rem;
        flex: 1;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    /* Hide user email on mobile */
    .user-info {
        display: none;
    }

    .user-menu {
        gap: 0.5rem;
    }

    /* Content adjustments */
    .content {
        padding: 1rem;
    }

    .content-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
        padding-bottom: 1rem;
    }

    .content-title {
        font-size: 1.5rem;
    }

    .content-actions {
        flex-direction: column;
        gap: 0.75rem;
        width: 100%;
    }

    .content-actions .btn {
        width: 100%;
        justify-content: center;
    }

    /* Stats grid - 2 columns on tablets, 1 on mobile */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }

    .stat-card {
        padding: 1rem;
    }

    .stat-value {
        font-size: 1.5rem;
    }

    /* Cards */
    .card {
        padding: 1rem;
        margin-bottom: 1rem;
        border-radius: 12px;
    }

    /* Tables - responsive scroll */
    .admin-table {
        font-size: 0.8125rem;
    }

    .admin-table th,
    .admin-table td {
        padding: 0.625rem 0.5rem;
        white-space: nowrap;
    }

    /* List items */
    .list-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
        padding: 1rem;
    }

    .list-item-actions {
        width: 100%;
        justify-content: flex-end;
    }

    /* Forms */
    .form-group {
        margin-bottom: 1rem;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    /* Buttons */
    .btn {
        padding: 0.625rem 1rem;
        font-size: 0.875rem;
    }

    /* Modal adjustments */
    .modal-content {
        width: 95%;
        max-width: 400px;
        padding: 1.5rem;
        margin: 1rem;
    }

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

    .modal-button-secondary,
    .modal-button-primary {
        width: 100%;
    }

    /* Search bar */
    .search-bar {
        flex-direction: column;
    }

    .search-bar input,
    .search-bar select {
        width: 100%;
    }

    /* Pagination */
    .pagination {
        flex-wrap: wrap;
    }

    .pagination a,
    .pagination span {
        padding: 0.375rem 0.75rem;
        font-size: 0.75rem;
    }

    /* Hide on mobile */
    .hide-mobile {
        display: none !important;
    }

    .show-mobile {
        display: block !important;
    }

    /* Breadcrumb */
    .breadcrumb {
        font-size: 0.75rem;
        flex-wrap: wrap;
    }

    /* Footer */
    .footer {
        padding: 1rem;
        text-align: center;
    }

    /* Empty state */
    .empty-state {
        padding: 2rem 1rem;
    }

    .empty-state-icon {
        width: 60px;
        height: 60px;
    }

    /* Back link */
    .back-link {
        font-size: 0.875rem;
        margin-bottom: 1rem;
    }

    /* Admin panel specific */
    .admin-title {
        font-size: 1.25rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .admin-card {
        padding: 1rem;
    }

    .admin-form {
        max-width: 100%;
    }

    /* Inline flex items - stack on mobile */
    [style*="display: flex"][style*="justify-content: space-between"] {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 1rem !important;
    }
}

/* =====================================================
   EXTRA SMALL SCREENS - SMALL PHONES (max-width: 576px)
   ===================================================== */
@media (max-width: 576px) {

    /* Even smaller adjustments */
    .main-header h1 {
        font-size: 1rem;
    }

    .content {
        padding: 0.75rem;
    }

    .content-title {
        font-size: 1.25rem;
    }

    /* Stats grid - 1 column */
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .stat-card {
        padding: 0.875rem;
    }

    .stat-value {
        font-size: 1.25rem;
    }

    /* Cards */
    .card {
        padding: 0.875rem;
        border-radius: 10px;
    }

    /* Tables - smaller padding */
    .admin-table th,
    .admin-table td {
        padding: 0.5rem 0.375rem;
        font-size: 0.75rem;
    }

    /* Buttons - full width */
    .btn {
        width: 100%;
        padding: 0.75rem;
    }

    /* Form inputs - larger touch targets */
    .form-input,
    .form-select,
    .form-textarea {
        padding: 0.75rem;
        font-size: 1rem;
    }

    /* Action buttons group - full width */
    [style*="display: flex"][style*="gap"] .btn,
    .list-item-actions .btn {
        padding: 0.5rem;
    }

    /* Welcome page specific */
    .card[style*="padding: 2rem"] {
        padding: 1rem !important;
    }

    .card[style*="padding: 1.5rem"] {
        padding: 1rem !important;
    }

    /* Icon containers smaller */
    [style*="width: 80px"][style*="height: 80px"] {
        width: 60px !important;
        height: 60px !important;
    }

    [style*="width: 48px"][style*="height: 48px"] {
        width: 40px !important;
        height: 40px !important;
    }

    /* Font size adjustments for inline styles */
    [style*="font-size: 1.75rem"] {
        font-size: 1.25rem !important;
    }

    [style*="font-size: 2rem"] {
        font-size: 1.5rem !important;
    }
}

/* =====================================================
   LOGIN PAGE RESPONSIVE
   ===================================================== */
@media (max-width: 576px) {
    .login-container {
        padding: 1rem;
    }

    .login-card {
        padding: 1.5rem 1.25rem;
        border-radius: 16px;
    }

    .login-logo img {
        height: 5em !important;
    }

    .login-title {
        font-size: 1.25rem;
    }

    .login-subtitle {
        font-size: 0.875rem;
    }

    .login-footer {
        font-size: 0.8125rem;
    }

    .login-copyright {
        font-size: 0.75rem;
    }
}

/* =====================================================
   PRINT STYLES
   ===================================================== */
@media print {

    .sidebar,
    .mobile-menu-btn,
    .sidebar-overlay,
    .user-menu,
    .btn {
        display: none !important;
    }

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

    .content {
        padding: 0;
    }
}