/* 
    FireTool Staff Dashboard - Technical Dashboard / Data Grid Theme
    Colors: #111111 (Dark), #F9FAFB (Bg), #D32F2F (Brand Red)
*/

:root {
    --primary-color: #D32F2F;
    --dark-bg: #111111;
    --sidebar-bg: #111111;
    --body-bg: #F9FAFB;
    --card-bg: #ffffff;
    --text-main: #111827;
    --text-muted: #6B7280;
    --border-color: #E5E7EB;
    --success-color: #059669;
    --danger-color: #D32F2F;
    --card-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Helvetica Neue', Arial, sans-serif;
}

body {
    background-color: var(--body-bg);
    color: var(--text-main);
    line-height: 1.5;
}

/* Typography Classes */
.mono {
    font-family: 'Courier New', Courier, monospace;
}

/* Layout */
.wrapper {
    display: flex;
    min-height: 100vh;
}

/* Sidebar - High Contrast */
.sidebar {
    width: 256px;
    background-color: var(--sidebar-bg);
    color: #9CA3AF;
    transition: all 0.3s;
    flex-shrink: 0;
    border-right: 1px solid #1f2937;
    display: flex;
    flex-direction: column;
}

.sidebar-header {
    padding: 1.5rem;
    border-bottom: 1px solid #1f2937;
}

.brand-name {
    color: white;
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.025em;
}

.brand-dot {
    color: var(--primary-color);
}

.sidebar-menu {
    padding: 1rem 0;
    flex-grow: 1;
}

.menu-item {
    display: flex;
    align-items: center;
    padding: 0.75rem 1.5rem;
    color: #9CA3AF;
    text-decoration: none;
    transition: all 0.2s;
    font-size: 0.875rem;
    font-weight: 500;
}

.menu-item i {
    margin-right: 12px;
    width: 20px;
}

.menu-item:hover {
    color: white;
    background-color: #1f2937;
}

.menu-item.active {
    color: white;
    background-color: var(--primary-color);
}

/* Main Content */
.main-content {
    flex-grow: 1;
    overflow-x: hidden;
}

.top-header {
    height: 64px;
    background-color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
    border-bottom: 1px solid var(--border-color);
}

.page-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: #111827;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* Cards & Grid */
.container {
    padding: 2rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: white;
    padding: 1.25rem;
    border-radius: 0.75rem;
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border-color);
}

.stat-card.brand-accent {
    border-left: 4px solid var(--primary-color);
}

.stat-title {
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #111827;
}

.card {
    background: white;
    border-radius: 0.75rem;
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border-color);
    overflow: hidden;
    margin-bottom: 2rem;
}

.card-header {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #FCFDFE;
}

/* Tables - Technical Georgia Italics Header */
.table-container {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th {
    padding: 0.75rem 1.5rem;
    text-align: left;
    font-family: 'Georgia', serif;
    font-style: italic;
    font-size: 12px;
    letter-spacing: 0.05em;
    color: #6B7280;
    text-transform: uppercase;
    background-color: #F9FAFB;
    border-bottom: 1px solid var(--border-color);
}

td {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #F3F4F6;
    font-size: 0.875rem;
}

tr:hover {
    background-color: #F9FAFB;
}

/* Badges */
.badge {
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.badge-active { background: #ECFDF5; color: #059669; }
.badge-inactive { background: #FEF2F2; color: #DC2626; }
.badge-role { background: #F3F4F6; color: #374151; border: 1px solid #E5E7EB; }

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-size: 0.8125rem;
    color: #374151;
}

.form-control {
    width: 100%;
    padding: 0.625rem 0.875rem;
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    outline: none;
    transition: all 0.2s;
    font-size: 0.875rem;
    background-color: #F9FAFB;
}

.form-control:focus {
    border-color: var(--primary-color);
    background-color: white;
    box-shadow: 0 0 0 3px rgba(211, 47, 47, 0.1);
}

.btn {
    padding: 0.625rem 1.25rem;
    border-radius: 0.5rem;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    font-size: 0.875rem;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
    box-shadow: 0 4px 6px -1px rgba(211, 47, 47, 0.2);
}

.btn-primary:hover {
    background-color: #B91C1C;
    transform: translateY(-1px);
}

.btn-dark {
    background-color: #111827;
    color: white;
}

.btn-sm {
    padding: 0.4rem 0.8rem;
    font-size: 0.75rem;
}

/* Alert */
.alert {
    padding: 0.875rem;
    border-radius: 0.5rem;
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
    border-left: 4px solid;
}

.alert-success { background: #ECFDF5; color: #065F46; border-color: #10B981; }
.alert-danger { background: #FEF2F2; color: #991B1B; border-color: #EF4444; }

/* Login */
.login-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--dark-bg);
}

.login-card {
    width: 100%;
    max-width: 400px;
    background: white;
    padding: 2.5rem;
    border-radius: 1rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

@media (max-width: 768px) {
    .sidebar {
        width: 0;
        position: fixed;
        z-index: 100;
        height: 100%;
    }
    .wrapper.sidebar-open .sidebar {
        width: 256px;
    }
}
