/* ----------------------------------------------------
   GLOBAL RESET & BASE STYLES
---------------------------------------------------- */
body {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    font-size: 16px;
    background: #f5f6f8;
    color: #222;
}

/* Wrap content nicely */
.container {
    max-width: 1000px;
    margin: 30px auto;
    padding: 0 20px;
}

/* Headings */
h1, h2, h3 {
    font-weight: 600;
    color: #222;
    margin-bottom: 20px;
}

/* -------------------------
   SITE NAVIGATION
-------------------------- */
nav {
    background: #f8f8f8;
    border-bottom: 1px solid #ddd;
    padding: 10px 20px;
    margin-bottom: 25px;
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 25px;
}

nav li {
    display: inline-block;
}

nav a {
    text-decoration: none;
    color: #333;
    font-weight: 600;
    font-size: 15px;
}

nav a:hover {
    color: #0073aa; /* subtle blue from WordPress admin aesthetic */
}


/* ----------------------------------------------------
   TABLES
---------------------------------------------------- */
table {
    width: 100%;
    border-collapse: collapse;
    background: #f9f9f9;
    border-radius: 6px;
    overflow: hidden;
}

table td, 
table th {
    border: 1px solid #CBD5D8; /* lighter gray */
    padding: 12px 14px;
}

table th {
    background: #f1f5f9;;
    color: #333;
    font-weight: bold;
}

table tr:nth-child(even) {
    background: #ffffff;
}

/* Hover rows */
tr:hover td {
    background: #f8fafc;
}



/* ----------------------------------------------------
   BUTTONS — BASE
---------------------------------------------------- */
button,
.btn {
    background: #2563eb;
    color: white;
    padding: 8px 14px;
    border-radius: 4px;
    border: 1px solid #2563eb;
    cursor: pointer;
    font-size: 14px;
    text-decoration: none;
    display: inline-block;
}

button:hover,
.btn:hover {
    background: #1e40af;
    border-color: #1e40af;
}

/* ----------------------------------------------------
   SECONDARY BUTTON
   White + Blue outline
---------------------------------------------------- */
.btn-secondary {
    background: #ffffff;
    color: #2563eb;
   padding: 8px 14px;
    border-radius: 4px;
    border: 1px solid #2563eb;
    cursor: pointer;
    font-size: 14px;
    text-decoration: none;
    display: inline-block;
}

.btn-secondary:hover {
    background: #eff6ff; /* subtle blue tint */
    color: #1e40af;
    border-color: #1e40af;
}

/* ----------------------------------------------------
   DANGER BUTTON
---------------------------------------------------- */
.btn-danger {
    background: #dc2626;
    color: white;
    border: 1px solid #dc2626;
}

.btn-danger:hover {
    background: #b91c1c;
    border-color: #b91c1c;
}

/* ----------------------------------------------------
   LINK BUTTON
   (For lightweight actions)
---------------------------------------------------- */
.btn-link {
    background: none;
    color: #2563eb;
    padding: 0;
    border: none;
}

.btn-link:hover {
    text-decoration: underline;
    color: #1e40af;
}

/* ----------------------------------------------------
   BUTTON GROUPS
---------------------------------------------------- */

.btn-group {
    display: flex;
    flex-wrap: wrap;   /* allows stacking */
    gap: 8px;          /* spacing between buttons */
}

/* Natural width by default */
.btn-group .btn,
.btn-group .btn-secondary,
.btn-group .btn-danger {
    width: 100%;        /* make both buttons full width */
        text-align: center; /* nice alignment */
}

/* When stacked (small screens or narrow table cells) */
@media (max-width: 380px) {
    .btn-group .btn,
    .btn-group .btn-secondary,
    .btn-group .btn-danger {
        width: 100%;        /* make both buttons full width */
        text-align: center; /* nice alignment */
    }
}



/* ----------------------------------------------------
   FORMS & INPUTS
---------------------------------------------------- */
input[type="text"],
input[type="number"],
select,
textarea {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    font-size: 14px;
}

textarea {
    resize: vertical;
}

/* Label styling */
label {
    font-size: 13px;
    color: #334155;
    font-weight: 500;
}

/* ----------------------------------------------------
   CARDS
---------------------------------------------------- */
.card {
    background: white;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 25px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.dashboard-cards .card a {
    display: inline-block;
    margin-top: 12px;
}

/* Dashboard Grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 25px;
}

/* Dashboard Cards */
.dashboard-grid .card {
    padding: 20px;
    border: 1px solid #e2e8f0;
    background: white;
    border-radius: 6px;
    text-align: center;
}

.dashboard-grid .card h3 {
    margin-top: 0;
}

.dashboard-grid .card p {
    font-size: 24px;
    margin: 10px 0 15px;
    font-weight: bold;
}

.dashboard-grid .cardp  {
    font-size: 16px;
    margin: 10px 0 15px;
    
}

/* ----------------------------------------------------
   FLASH MESSAGES
---------------------------------------------------- */
.alert {
    padding: 12px 15px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-size: 14px;
}

.alert-success {
    background: #ecfdf5;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.alert-error {
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}

/* ----------------------------------------------------
   MISC
---------------------------------------------------- */
table input[type="number"],
table textarea {
    width: 95%;
}

.quick-notes span {
    cursor: pointer;
    color: #2563eb;
    font-size: 13px;
}

.quick-notes span:hover {
    text-decoration: underline;
}

/* -------------------------------------
   HEADER + NAVIGATION
-------------------------------------- */

.top-nav {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 40px;
    background: #f8f8f8;
    border-bottom: 1px solid #ddd;
    padding: 12px 24px;
    margin-bottom: 30px;
}

.nav-logo {
    font-size: 20px;
    font-weight: 700;
    color: #222;
    text-decoration: none;
    white-space: nowrap;
    letter-spacing: -0.2px;
}

.nav-logo:hover {
    color: #0073aa;
}

.nav-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 24px;
}

.nav-links a {
    text-decoration: none;
    color: #444;
    font-size: 15px;
    font-weight: 500;
}

.nav-links a:hover {
    color: #0073aa;
}

/* Two groups inside the nav */
.nav-left {
    display: flex;
    align-items: center;
    gap: 40px;
}

/* Entire nav now spaces left and right sections */
.top-nav {
    display: flex;
    justify-content: space-between; /* ← THIS separates logout */
    align-items: center;
    background: #f8f8f8;
    border-bottom: 1px solid #ddd;
    padding: 12px 24px;
    margin-bottom: 30px;
}

/* Match existing nav link styling */
.logout-link {
    text-decoration: none;
    color: #444;
    font-size: 15px;
    font-weight: 500;
}

.logout-link:hover {
    color: #0073aa;
}


/* -----------------------------
   FILTER BAR – Clean layout
----------------------------- */
.filter-bar {
    display: flex;
    align-items: flex-end;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap; /* Makes it responsive on small screens */
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.filter-group label {
    font-size: 13px;
    margin-bottom: 2px;
    color: #444;
}

.filter-bar select {
    padding: 6px 8px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

/* Center wrapper */
.generate-form-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

/* Compact stacked form */
.generate-form {
    display: flex;
    flex-direction: column;
    width: 240px; /* MATCHES button + dropdown width */
}

/* Inputs match CTA width */
.gen-input {
    width: 100%;
    padding: 8px;
    font-size: 14px;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    background: white;
}
.gen-input:focus {
    border-color: #2563eb;
    outline: none;
}

/* CTA (already styled) */
.gen-btn {
    width: 100%;
    margin-top: 16px;
}

/* Improve label → input spacing */
.generate-form label {
    margin-bottom: 4px;   /* space under the label */
    font-weight: 500;
    color: #374151;
}



