/* =========================================
   1. GLOBAL VARIABLES & RESET
========================================= */
:root {
    --bg: #f7f9fc;
    --ink: #0f172a;       /* Dark Text */
    --muted: #64748b;     /* Gray Text */
    --blue: #2563eb;      /* Primary Blue */
    --blue-dark: #1e40af;
    --green: #22c55e;     /* Success */
    --red: #ef4444;       /* Danger */
    --yellow: #f59e0b;    /* Warning */
    --card: #ffffff;
    --border: #e2e8f0;
    --shadow: 0 10px 30px rgba(0,0,0,0.08);
    
    /* ADDED THIS FOR BUTTONS (Excel Green) */
    --ribbon-primary: #10b981; 
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Inter', 'Poppins', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: var(--bg);
    color: var(--ink);
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    margin: 8px 0;
    font-weight: 700;
    color: var(--ink);
}

a { text-decoration: none; }

/* =========================================
   2. LAYOUT CONTAINERS
========================================= */

/* Standard Container */
.container {
    max-width: 1100px; 
    margin: 0 auto;
    padding: 24px;
}

/* Admin Container */
.admin-page {
    max-width: 1400px;
    margin: 0 auto;
    padding: 24px;
}

/* =========================================
   3. GLOBAL COMPONENTS
========================================= */

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
}

.card {
    background: var(--card);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border);
}

.grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
select {
    width: 100%;
    padding: 10px 14px;
    border-radius: 8px;
    border: 1px solid #cbd5e1;
    font-size: 14px;
    transition: 0.2s;
    outline: none;
}

input:focus, select:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* =========================================
   4. BUTTONS & ACTIONS
========================================= */

.btn {
    display: inline-block;
    padding: 10px 18px;
    border-radius: 8px;
    text-decoration: none;
    background: var(--ink);
    color: #fff;
    font-weight: 500;
    font-size: 14px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: 0.2s;
}

.btn:hover {
    background: #1e293b;
    transform: translateY(-1px);
}

.btn-outline {
    background: #fff;
    color: var(--ink);
    border: 1px solid var(--ink);
}
.btn-outline:hover {
    background: #f8fafc;
}

.btn-xs {
    padding: 6px 12px;
    font-size: 12px;
    border-radius: 6px;
    background: #e5e7eb;
    color: #1f2937;
    text-decoration: none;
    font-weight: 600;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.btn-xs:hover { background: #d1d5db; }

.btn-success { background: var(--green); color: #fff; }
.btn-success:hover { background: #16a34a; }

.btn-danger { background: var(--red); color: #fff; }
.btn-danger:hover { background: #dc2626; }

.btn-warning { background: var(--yellow); color: #fff; }
.btn-warning:hover { background: #d97706; }

.actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

/* =========================================
   5. NEW RIBBON BUTTON (Highlight Feature)
   ========================================= */
.btn-ribbon-wrapper {
    margin-top: 35px;
    text-align: center;
    padding-bottom: 10px;
}

.btn-ribbon-action {
    display: inline-block;
    padding: 14px 32px; /* Thoda bada kiya */
    border-radius: 8px;
    text-decoration: none;
    /* Using Root Variable for Consistency */
    background: var(--ribbon-primary); 
    color: #ffffff !important; /* Force White Text */
    font-weight: 600;
    font-size: 15px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3); /* Green Glow */
}

.btn-ribbon-action:hover {
    background: #059669; /* Darker Green */
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.4);
}

/* =========================================
   6. ADMIN / USERS PAGE STYLES
========================================= */

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 15px;
}

.page-header h1 {
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: var(--ink);
}

.search-form {
    display: flex;
    gap: 10px;
}

.search-form input {
    width: 280px;
    background: #fff;
}

.table-wrapper {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border);
    overflow-x: auto; 
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    text-align: left;
}

.admin-table thead th {
    position: sticky;
    top: 0;
    background: #f8fafc;
    color: var(--muted);
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.5px;
    padding: 16px;
    font-weight: 700;
    border-bottom: 1px solid var(--border);
}

.admin-table tbody td {
    padding: 14px 16px;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: middle;
    color: #334155;
}

.admin-table tbody tr:last-child td {
    border-bottom: none;
}

.admin-table tbody tr:hover {
    background: #f8fafc;
}

.badge {
    padding: 4px 10px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-active {
    background: #dcfce7;
    color: #166534;
}

.badge-blocked {
    background: #fee2e2;
    color: #991b1b;
}

.small {
    color: var(--muted);
    font-size: 13px;
}
/* === READ MORE BUTTON STYLE === */
.btn-ribbon-wrapper {
    margin-top: 25px;
    text-align: center; /* Center align karega */
}

.btn-ribbon-action {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 8px; /* Clean rounded corners */
    
    /* Green Color (Fallback included) */
    background-color: #10b981; 
    background-color: var(--ribbon-primary, #10b981);
    
    color: #ffffff !important; /* Text white rahega */
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    
    /* Green Shadow Glow */
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.25); 
}

.btn-ribbon-action:hover {
    background-color: #059669; /* Dark Green on Hover */
    transform: translateY(-2px); /* Thoda upar uthega */
    box-shadow: 0 6px 15px rgba(16, 185, 129, 0.35);
}
/* =========================================
   7. RESPONSIVE
========================================= */

@media (max-width: 900px) {
    .grid { grid-template-columns: 1fr; }
    .page-header { flex-direction: column; align-items: flex-start; }
    .search-form { width: 100%; }
    .search-form input { width: 100%; }
}