/* * Main Stylesheet
 * Defines CSS Variables (Design System), Reset, and Typography.
 */

:root {
    /* Brand Colors - Professional Blue/Slate Palette */
    --color-primary: #0f172a;
    /* Slate 900 */
    --color-primary-light: #334155;
    /* Slate 700 */
    --color-accent: #2563eb;
    /* Blue 600 - Action color */

    /* Functional Colors (Status) */
    --color-success: #16a34a;
    /* Green 600 */
    --color-warning: #ca8a04;
    /* Yellow 600 */
    --color-danger: #dc2626;
    /* Red 600 */

    /* Neutral & Backgrounds */
    --bg-body: #f1f5f9;
    /* Slate 100 */
    --bg-card: #ffffff;
    --bg-hover: #f8fafc;
    /* Slate 50 - Hover state */
    --text-main: #1e293b;
    /* Slate 800 */
    --text-muted: #64748b;
    /* Slate 500 */
    --border-color: #e2e8f0;
    /* Slate 200 */

    /* Spacing & Layout */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;

    /* Typography */
    --font-family: 'Inter', system-ui, -apple-system, sans-serif;
    --font-size-base: 16px;

    /* UI Elements */
    --radius-sm: 4px;
    --radius-md: 8px;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-family);
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

/* Accessibility Utilities */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

h1,
h2,
h3 {
    font-weight: 600;
    color: var(--color-primary);
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

@media (max-width: 768px) {
    h1 {
        font-size: 1.75rem;
    }

    h2 {
        font-size: 1.25rem;
    }

    h3 {
        font-size: 1.125rem;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.5rem;
    }

    h2 {
        font-size: 1rem;
    }

    h3 {
        font-size: 0.95rem;
    }
}

a {
    color: var(--color-accent);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* --- Action Buttons (Tasks Table) --- */
.action-buttons {
    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: center;
}

.btn-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    outline: none;
    background: transparent;
    font-size: 16px;
    /* suitable for emoji icons */
    min-width: 32px;
    min-height: 32px;
}

/* Inactive table rows (soft-deleted/disabled records) */
tr.row-inactive {
    opacity: 0.6;
    background-color: #f9f9f9;
}

tr.row-inactive td {
    color: #999;
}

@media (max-width: 480px) {
    .btn-circle {
        width: 40px;
        height: 40px;
        min-width: 40px;
        min-height: 40px;
        font-size: 18px;
    }
}

/* View (blue) */
.btn-view {
    background: #e3f2fd;
    color: #1976d2;
}

.btn-view:hover {
    background: #d7eaf9;
}

/* Edit (gray) */
.btn-edit {
    background: #f5f5f5;
    color: #616161;
}

.btn-edit:hover {
    background: #e9e9e9;
}

/* Delete (red) */
.btn-delete {
    background: #ffebee;
    color: #d32f2f;
}

.btn-delete:hover {
    background: #ffcdd2;
}

/* Manage / Users (indigo) */
.btn-manage {
    background: #ede9fe;
    color: #5b21b6;
}

.btn-manage:hover {
    background: #ddd6fe;
}

/* Dashboard specific circular buttons */
.btn-view-proof {
    background: #e8f5e9;
    /* Green soft */
    color: #2e7d32;
}

.btn-view-proof:hover {
    background: #dff3e5;
}

.btn-transcript {
    background: #e3f2fd;
    /* Blue soft */
    color: #1976d2;
}

.btn-transcript:hover {
    background: #d7eaf9;
}