/* assets/css/style.css - Modern Premium Design */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    /* Primary Colors - Deep Navy & Professional Blue */
    --primary: #1e3a8a;
    /* Dark Navy */
    --primary-light: #3b82f6;
    /* Bright Blue */
    --primary-dark: #1e293b;
    /* Slate 800 */

    /* Accents */
    --accent: #d97706;
    /* Amber 600 */

    /* Status Colors */
    --success: #10b981;
    --success-bg: #d1fae5;
    --success-text: #064e3b;

    --danger: #ef4444;
    --danger-bg: #fee2e2;
    --danger-text: #7f1d1d;

    --warning: #f59e0b;
    --warning-bg: #fef3c7;
    --warning-text: #78350f;

    --info: #3b82f6;
    --info-bg: #dbeafe;
    --info-text: #1e3a8a;

    /* Neutrals */
    --bg-body: #f1f5f9;
    /* Slate 100 */
    --bg-card: #ffffff;
    --text-main: #0f172a;
    /* Slate 900 */
    --text-muted: #64748b;
    /* Slate 500 */
    --border: #e2e8f0;
    /* Slate 200 */

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-main);
    background: var(--bg-body);
    -webkit-font-smoothing: antialiased;
}

/* Navbar */
.navbar {
    background: white;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid var(--border);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    height: 70px;
}

.navbar-brand {
    color: var(--primary);
    text-decoration: none;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.navbar-menu {
    display: flex;
    list-style: none;
    gap: 4px;
}

.navbar-menu a {
    color: var(--text-muted);
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.2s;
    font-size: 14px;
}

.navbar-menu a:hover,
.navbar-menu a.active {
    background: var(--bg-body);
    color: var(--primary);
}

.navbar-user {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 14px;
    color: var(--text-muted);
    border-left: 1px solid var(--border);
    padding-left: 16px;
    margin-left: 16px;
}

.navbar-user a {
    color: var(--danger);
    text-decoration: none;
    font-weight: 500;
}

.navbar-user a:hover {
    text-decoration: underline;
}

/* Main Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 24px;
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.page-header h1 {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-main);
    letter-spacing: -0.5px;
}

/* Dashboard Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

.stat-card {
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    transition: transform 0.2s, box-shadow 0.2s;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.stat-card h3 {
    font-size: 14px;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 0.5px;
    font-weight: 600;
    margin-bottom: 12px;
}

.stat-number {
    font-size: 36px;
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 16px;
}

.stat-card a {
    display: inline-flex;
    align-items: center;
    font-size: 13px;
    color: var(--info);
    text-decoration: none;
    font-weight: 500;
}

.stat-card a:hover {
    text-decoration: underline;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
}

@media (max-width: 992px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}

.dashboard-section {
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    padding: 24px;
}

.dashboard-section h2 {
    font-size: 18px;
    color: var(--text-main);
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border);
    font-weight: 600;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    border: 1px solid transparent;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    line-height: 1.4;
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.btn-primary:hover {
    background: #152c6f;
    transform: translateY(-1px);
}

.btn-secondary {
    background: white;
    border-color: var(--border);
    color: var(--text-main);
}

.btn-secondary:hover {
    background: var(--bg-body);
    border-color: #cbd5e1;
}

.btn-danger {
    background: var(--danger);
    color: white;
}

.btn-danger:hover {
    background: #dc2626;
}

.btn-link {
    background: none;
    color: var(--text-muted);
    padding: 0;
}

.btn-link:hover {
    color: var(--primary);
    text-decoration: underline;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 12px;
    border-radius: 6px;
}

/* Forms */
.form {
    background: white;
    padding: 32px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-main);
    font-size: 14px;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    font-size: 15px;
    border: 1px solid var(--border);
    border-radius: 8px;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: #f8fafc;
    color: var(--text-main);
    font-family: inherit;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    background: white;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Quick Actions */
.quick-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    margin-bottom: 40px;
}

.action-card {
    background: white;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid var(--border);
    text-align: center;
    text-decoration: none;
    color: var(--text-main);
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    box-shadow: var(--shadow-sm);
}

.action-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
    border-color: var(--primary-light);
}

.action-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--bg-body);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 24px;
    transition: background 0.2s, color 0.2s;
}

.action-card:hover .action-icon {
    background: var(--primary);
    color: white;
}

.action-title {
    font-weight: 600;
    font-size: 14px;
}

/* Stat Icons */
.stat-card {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
}

.stat-content {
    flex: 1;
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--info-bg);
    color: var(--info-text);
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

/* Tables */
.table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-bottom: 20px;
}

.table th {
    background: var(--bg-body);
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.5px;
    padding: 16px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.table td {
    padding: 16px;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
    color: var(--text-main);
}

.table tr:last-child td {
    border-bottom: none;
}

.table tr:hover td {
    background: #f8fafc;
}

/* Badges */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    border-radius: 20px;
    letter-spacing: 0.3px;
}

.badge-success {
    background: var(--success-bg);
    color: var(--success-text);
}

.badge-danger {
    background: var(--danger-bg);
    color: var(--danger-text);
}

.badge-warning {
    background: var(--warning-bg);
    color: var(--warning-text);
}

.badge-info {
    background: var(--info-bg);
    color: var(--info-text);
}

.badge-secondary {
    background: var(--bg-body);
    color: var(--text-muted);
    border: 1px solid var(--border);
}

/* Alerts */
.alert {
    padding: 16px;
    margin-bottom: 24px;
    border-radius: 8px;
    font-weight: 500;
    display: flex;
    align-items: center;
}

.alert-success {
    background: var(--success-bg);
    color: var(--success-text);
    border: 1px solid #a7f3d0;
}

.alert-error {
    background: var(--danger-bg);
    color: var(--danger-text);
    border: 1px solid #fecaca;
}

/* Links */
a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: #1e3a8a;
}

/* Login Page */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-body);
}

.login-box {
    background: white;
    width: 100%;
    max-width: 420px;
    padding: 48px;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
    text-align: center;
}

.login-box h1 {
    font-size: 24px;
    color: var(--primary);
    margin-bottom: 8px;
}

.login-box h2 {
    font-size: 16px;
    color: var(--text-muted);
    font-weight: 400;
    margin-bottom: 32px;
}

.login-box .form-group {
    text-align: left;
}

.btn-block {
    width: 100%;
    justify-content: center;
}

/* Events List */
.events-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.event-item {
    display: flex;
    gap: 16px;
    padding: 12px;
    border-radius: 8px;
    transition: background 0.2s;
}

.event-item:hover {
    background: var(--bg-body);
}

.event-date {
    font-weight: 600;
    color: var(--primary);
    font-size: 13px;
    background: var(--info-bg);
    padding: 8px 12px;
    border-radius: 6px;
    height: fit-content;
}

.event-details strong {
    display: block;
    margin-bottom: 4px;
    color: var(--text-main);
}

.event-details {
    color: var(--text-muted);
    font-size: 13px;
}

/* Cards */
.card {
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    margin-bottom: 24px;
    overflow: hidden;
}

.card-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8fafc;
}

.card-header h2 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: var(--text-main);
    border: none;
    padding: 0;
}

.card-body {
    padding: 24px;
}

/* Detail Views */
.case-details {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.details-grid {
    padding: 24px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 24px;
}

.detail-item strong {
    display: block;
    font-size: 13px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.detail-item span {
    font-size: 16px;
    font-weight: 500;
    color: var(--text-main);
}

.detail-full {
    padding: 0 24px 24px;
    border-top: 1px solid var(--border);
    padding-top: 24px;
}

.detail-full strong {
    display: block;
    font-size: 13px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

/* Table Enhancements */
.table th {
    background: #f1f5f9;
    font-weight: 600;
    color: var(--primary-dark);
}

.table td {
    vertical-align: middle;
}

.table-actions {
    display: flex;
    gap: 8px;
}

/* Empty States */
.empty-state {
    text-align: center;
    padding: 48px;
    color: var(--text-muted);
}

.empty-state svg {
    margin-bottom: 16px;
    color: #cbd5e1;
}