/* ==========================================================================
   PREMIUM ADMIN THEME - GLOBAL CORE
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;500;600;700&family=DM+Sans:wght@300;400;500;600;700&display=swap');

:root {
    /* Brand Colors (Public Site) */
    --primary: #1a4d2e;
    /* Deep Green */
    --primary-light: #2d6a4f;
    /* Main Green */
    --accent: #b68d40;
    /* Gold */
    --bg-body: #faf9f6;
    /* Cream */
    --bg-card: #ffffff;
    --text-main: #1a2e1a;
    /* Dark Text */
    --text-muted: #666666;
    --border-light: #e0e0e0;
    --success-bg: #e8f5e9;
    --success-text: #2e7d32;
    --error-bg: #ffebee;
    --error-text: #c62828;

    /* Dimensions & Effects */
    --sidebar-w: 260px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --shadow-sm: 0 4px 12px rgba(26, 77, 46, 0.05);
    --shadow-md: 0 8px 30px rgba(26, 77, 46, 0.08);
}

body {
    background: var(--bg-body);
    font-family: 'DM Sans', sans-serif;
    color: var(--text-main);
    margin: 0;
    line-height: 1.6;
    overflow-x: hidden;
    cursor: default;
}

input[type="text"]:not([readonly]),
input[type="password"],
input[type="number"],
input[type="email"],
input[type="search"],
input[type="url"],
textarea,
[contenteditable="true"] {
    cursor: text;
}

select,
input[type="checkbox"],
input[type="radio"],
input[type="file"],
input[readonly] {
    cursor: pointer;
}

/* ==========================================================================
   LAYOUT (Sidebar & Main)
   ========================================================================== */
.admin-sidebar {
    width: var(--sidebar-w);
    background: #0f1c15;
    /* Very Dark Green */
    color: white;
    padding: 24px;
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    box-sizing: border-box;
    z-index: 1000;
}

.admin-logo {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.4rem;
    color: var(--accent);
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.admin-nav {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.admin-nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s;
    border: 1px solid transparent;
    /* Prevent layout shift */
}

.admin-nav-item:hover,
.admin-nav-item.active {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-color: rgba(255, 255, 255, 0.05);
    transform: translateX(4px);
}

.admin-main {
    margin-left: var(--sidebar-w);
    padding: 40px 50px;
    width: calc(100% - var(--sidebar-w));
    box-sizing: border-box;
    min-height: 100vh;
}

/* Header */
.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.admin-header h1 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.5rem;
    margin: 0;
    color: var(--text-main);
}

.admin-header p {
    color: var(--text-muted);
    margin: 5px 0 0 0;
}

.admin-session-badge {
    background: white;
    padding: 8px 16px;
    border-radius: 30px;
    font-size: 0.85rem;
    color: var(--text-muted);
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ==========================================================================
   COMMON COMPONENTS
   ========================================================================== */
.admin-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 30px;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0, 0, 0, 0.02);
    margin-bottom: 24px;
}

.admin-card h3 {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    color: #888;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
    margin: 0 0 20px 0;
    font-family: 'DM Sans', sans-serif;
}

/* List View Thumbnails */
.activity-thumb {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
    display: block;
}

/* Alerts */
.admin-alert {
    padding: 16px;
    border-radius: var(--radius-md);
    margin-bottom: 20px;
    font-weight: 500;
}

.admin-alert.success {
    background: var(--success-bg);
    color: var(--success-text);
}

.admin-alert.error {
    background: var(--error-bg);
    color: var(--error-text);
}

/* Buttons */
button,
.btn {
    cursor: pointer;
    transition: all 0.2s;
    font-family: 'DM Sans', sans-serif;
}

.btn-save,
.btn-create,
.login-btn {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    border: none;
    padding: 14px 24px;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 1rem;
    box-shadow: var(--shadow-sm);
    text-decoration: none;
    display: inline-block;
}

.btn-save:hover,
.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    filter: brightness(1.15);
}

.btn-create:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(26, 77, 46, 0.2);
    filter: brightness(1.15);
}

.btn-edit,
.btn-delete {
    background: none;
    border: none;
    font-size: 1.1rem;
    padding: 6px;
    border-radius: 6px;
}

.btn-edit:hover {
    background: var(--success-bg);
}

.btn-delete:hover {
    background: var(--error-bg);
}

.btn-cancel {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    padding: 14px 20px;
}

.btn-cancel:hover {
    color: var(--text-main);
}

/* ==========================================================================
   FORMS (Global)
   ========================================================================== */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-muted);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

input[type="text"],
input[type="password"],
input[type="number"],
textarea,
select {
    width: 100%;
    padding: 14px 18px;
    background: #fdfdfd;
    border: 1.5px solid var(--border-light);
    border-radius: var(--radius-md);
    font-family: 'DM Sans', sans-serif;
    font-size: 0.95rem;
    color: var(--text-main);
    box-sizing: border-box;
    transition: all 0.2s;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--primary-light);
    background: white;
    box-shadow: 0 0 0 4px rgba(45, 106, 79, 0.08);
}

/* TABLES (Card Style) */
.admin-table-wrapper {
    overflow-x: auto;
    background: transparent;
    padding: 5px;
}

table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 10px;
    /* Space between rows */
    margin-top: 0;
}

thead th {
    border: none;
    padding: 10px 20px;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
}

tbody tr {
    background: white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.03);
    /* No animation */
}

tbody tr:hover {
    /* No transform */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.03);
    /* Keep same shadow */
}

td {
    padding: 12px 20px;
    border: none;
    /* Remove standard border */
    vertical-align: middle;
}

/* Rounded corners for the row-card */
td:first-child {
    border-top-left-radius: 10px;
    border-bottom-left-radius: 10px;
}

td:last-child {
    border-top-right-radius: 10px;
    border-bottom-right-radius: 10px;
}


/* Responsive Sidebar Hide (Mobile) */
@media(max-width: 768px) {
    .admin-sidebar {
        width: 0;
        padding: 0;
        overflow: hidden;
    }

    .admin-main {
        margin-left: 0;
        width: 100%;
        padding: 20px;
    }
}