/* MODERN ADMIN STYLES - FULL REPLACEMENT */
:root {
    --primary: #BF360C;
    --primary-dark: #8C2B09;
    --secondary: #37474F;
    --background: #F4F7FC;
    --sidebar-bg: #263238;
    --card-bg: #FFFFFF;
    --text-dark: #2c2c2c;
    --text-light: #6c757d;
    --border-color: #E0E0E0;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

/* --- Global & Body --- */
body {
    font-family: 'Source Sans Pro', sans-serif;
    background-color: var(--background);
    margin: 0;
    font-size: 16px;
    color: var(--text-dark);
}

.admin-container { display: flex; }
.main-content { margin-left: 240px; width: calc(100% - 240px); }
.page-content { padding: 30px; }

/* --- Sidebar --- */
.sidebar {
    width: 240px;
    background: var(--sidebar-bg);
    color: white;
    height: 100vh;
    position: fixed;
    display: flex;
    flex-direction: column;
}
.sidebar-header {
    padding: 20px;
    background: rgba(0,0,0,0.2);
    text-align: center;
}
.sidebar-header h3 {
    margin: 0;
    font-family: 'Roboto Slab', serif;
}
.sidebar-nav { flex-grow: 1; }
.sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    color: #CFD8DC;
    text-decoration: none;
    border-left: 4px solid transparent;
    transition: all 0.2s ease;
}
.sidebar-nav a:hover {
    background: var(--secondary);
    color: white;
}
.sidebar-nav a.active {
    background: var(--primary);
    color: white;
    border-left-color: #FFC107;
}

/* --- Page Header --- */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}
.page-header h1 {
    font-family: 'Roboto Slab', serif;
    margin: 0;
    font-size: 2rem;
}

/* --- Buttons --- */
.btn {
    padding: 12px 24px;
    border-radius: 6px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.2s ease;
}
.btn-primary { background: var(--primary); color: white; }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); }
.btn-secondary { background: #E9ECEF; color: var(--text-dark); }
.btn-danger { background: #dc3545; color: white; }

/* --- Dashboard Widgets --- */
.dashboard-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-bottom: 30px;
}
.stat-card {
    background: var(--card-bg);
    padding: 25px;
    border-radius: 8px;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 20px;
}
/* Replaces the old .icon-box and .icon-box svg rules */
.stat-card .icon-box {
    font-size: 2.5rem; /* Controls the icon size */
    width: 60px;       /* Gives the icon space */
    text-align: center;
}

/* Adds specific colors to the icons */
.stat-card.listings .icon-box { color: #4CAF50; }
.stat-card.coupons .icon-box { color: #2196F3; }
.stat-card.events .icon-box { color: #FF9800; }
.stat-card .stat-info .stat-number {
    font-size: 2.2rem;
    font-weight: 700;
    font-family: 'Roboto Slab', serif;
}
.stat-card .stat-info .stat-label {
    font-size: 1rem;
    color: var(--text-light);
}

/* --- Content Cards & Tables --- */
.content-card {
    background: var(--card-bg);
    padding: 30px;
    border-radius: 8px;
    box-shadow: var(--shadow);
}
.admin-table {
    width: 100%;
    border-collapse: collapse;
}
.admin-table th, .admin-table td {
    padding: 16px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}
.admin-table th {
    font-family: 'Roboto Slab', serif;
    font-size: 0.9rem;
    text-transform: uppercase;
    color: var(--text-light);
}
.admin-table td { vertical-align: middle; }
.admin-table .actions a { margin-right: 8px; }
.table-thumb { width: 100px; height: 60px; object-fit: cover; border-radius: 6px; }

/* --- Forms --- */
.form-group { margin-bottom: 25px; }
.form-group label {
    display: block;
    font-weight: bold;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

/* === UPDATED RULE === */
/* Added input[type="password"] and input[type="email"] to this selector */
.form-group input[type="text"],
.form-group input[type="password"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="date"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    box-sizing: border-box;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(191, 54, 12, 0.1);
}
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}
.form-preview-img {
    max-height: 100px;
    margin-top: 10px;
    border-radius: 6px;
    border: 1px solid var(--border-color);
}
/* --- Modern Modal Styles --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}
.modal-content {
    background: var(--card-bg);
    border-radius: 8px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.2);
    width: 90%;
    max-width: 500px;
    animation: slide-down 0.3s ease-out;
}
.modal-header {
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.modal-header h3 { margin: 0; font-family: 'Roboto Slab', serif; }
.modal-close {
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
    color: var(--text-light);
}
.modal-body { padding: 30px 20px; }
.modal-footer {
    padding: 20px;
    border-top: 1px solid var(--border-color);
    text-align: right;
}
.modal-footer button { margin-left: 10px; }

@keyframes slide-down {
    from { transform: translateY(-30px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}
