/* /admin/admin_style.css - Clean Blue Dark Mode */

:root {
    /* -- Palette: Slate & Electric Blue -- */
    --bg-body: #0f172a;       /* Deep Slate Blue */
    --bg-surface: #1e293b;    /* Lighter Slate */
    --bg-input: #334155;      /* Input Fields */
    
    --primary: #3b82f6;       /* Bright Blue */
    --primary-hover: #2563eb; /* Darker Blue */
    --secondary: #64748b;     /* Muted Grey/Blue */
    
    --text-main: #f1f5f9;     /* White-ish */
    --text-muted: #94a3b8;    /* Muted Grey */
    
    --border: #334155;        /* Borders */
    
    --success: #10b981;       /* Green */
    --warning: #f59e0b;       /* Orange */
    --danger: #ef4444;        /* Red */
    
    --radius: 8px;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

* { box-sizing: border-box; }

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--bg-body);
    color: var(--text-main);
    margin: 0;
    line-height: 1.5;
    font-size: 15px;
}

a { color: var(--primary); text-decoration: none; transition: 0.2s; }
a:hover { color: var(--primary-hover); }

/* --- Layout --- */
.admin-header {
    background-color: var(--bg-surface);
    border-bottom: 1px solid var(--border);
    padding: 0 20px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 50;
    box-shadow: var(--shadow);
}

.logo {
    font-weight: 800;
    font-size: 1.25rem;
    color: var(--text-main);
    letter-spacing: -0.5px;
}

.admin-nav { display: flex; gap: 20px; align-items: center; }
.admin-nav a { 
    color: var(--text-muted); 
    font-weight: 500; 
    font-size: 0.9rem;
    padding: 8px 12px;
    border-radius: var(--radius);
}
.admin-nav a:hover, .admin-nav a.active { 
    background-color: var(--bg-body); 
    color: var(--primary); 
}
.btn-logout { color: var(--danger) !important; }

.container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

/* --- Cards & Containers --- */
h2 { margin-top: 0; font-size: 1.8rem; margin-bottom: 20px; color: var(--text-main); }
h3 { color: var(--text-main); font-weight: 600; margin-bottom: 15px; }

.card, .search-box, .import-report, .filter-tool, .ai-tool {
    background-color: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: var(--shadow);
}

/* --- Forms --- */
.form-control, input[type="text"], input[type="password"], input[type="url"], textarea, select {
    width: 100%;
    padding: 10px 12px;
    background-color: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-main);
    font-family: inherit;
    font-size: 0.95rem;
    transition: 0.2s;
}

.form-control:focus, input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}

label { display: block; margin-bottom: 6px; color: var(--text-muted); font-size: 0.9rem; font-weight: 500; }
.form-group { margin-bottom: 20px; }

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 18px;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    border: none;
    transition: 0.2s;
    text-decoration: none;
}

.btn-sm { padding: 6px 12px; font-size: 0.8rem; }

.btn-primary { background-color: var(--primary); color: white; }
.btn-primary:hover { 
    background-color: var(--primary-hover); 
    color: white !important; /* Forces text to stay white */
}

.btn-secondary, .btn-outline { background-color: transparent; border: 1px solid var(--border); color: var(--text-main); }
.btn-secondary:hover { background-color: var(--bg-input); }

.btn-danger { background-color: rgba(239, 68, 68, 0.1); color: var(--danger); border: 1px solid transparent; }
.btn-danger:hover { background-color: var(--danger); color: white; }

.btn-success { background-color: var(--success); color: white; }

/* --- Tables --- */
table { width: 100%; border-collapse: collapse; width: 100%; }
th { text-align: left; padding: 12px 16px; color: var(--text-muted); font-weight: 600; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.05em; border-bottom: 1px solid var(--border); }
td { padding: 16px; border-bottom: 1px solid var(--border); vertical-align: middle; color: var(--text-main); }
tr:last-child td { border-bottom: none; }
tr:hover td { background-color: rgba(255,255,255,0.02); }

/* --- Badges --- */
.status-badge {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}
.status-badge.approved { background-color: rgba(16, 185, 129, 0.2); color: var(--success); }
.status-badge.pending { background-color: rgba(245, 158, 11, 0.2); color: var(--warning); }
.status-badge.rejected { background-color: rgba(239, 68, 68, 0.2); color: var(--danger); }

/* --- Alerts --- */
.alert { padding: 16px; border-radius: var(--radius); margin-bottom: 24px; border-left: 4px solid transparent; background: var(--bg-surface); }
.alert-success { border-color: var(--success); background-color: rgba(16, 185, 129, 0.1); color: #6ee7b7; }
.alert-warning { border-color: var(--warning); background-color: rgba(245, 158, 11, 0.1); color: #fcd34d; }
.alert-danger { border-color: var(--danger); background-color: rgba(239, 68, 68, 0.1); color: #fca5a5; }

/* --- Helpers --- */
.pagination { display: flex; justify-content: center; gap: 10px; margin-top: 30px; }
.checkboxes { background: var(--bg-input); padding: 10px; border-radius: var(--radius); max-height: 150px; overflow-y: auto; }


/* --- Dashboard Stats Grid --- */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* Responsive 3-column */
    gap: 24px;
    margin-bottom: 30px;
}

.stat-card {
    display: flex;
    align-items: center;
    padding: 25px;
    border-radius: var(--radius);
    text-decoration: none;
    color: white !important; /* Force white text on colored backgrounds */
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: var(--shadow);
    overflow: hidden;
    position: relative;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.2);
}

.stat-icon {
    font-size: 2.5rem;
    margin-right: 20px;
    opacity: 0.8;
}

.stat-content {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.9rem;
    font-weight: 500;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* --- Card Background Colors --- */
/* Green for Approved */
.bg-success {
    background: linear-gradient(135deg, #10b981, #059669);
    border: 1px solid #059669;
}

/* Orange for Pending Places */
.bg-warning {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    border: 1px solid #d97706;
}

/* Blue/Indigo for Reviews */
.bg-info {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    border: 1px solid #2563eb;
}