/* ============================================================
   Brinton Kay Technology Solutions — brand tokens
   Applied to InfraScout v2.1.0. Replaces the prior generic
   purple/indigo admin-template palette.
   ============================================================ */
:root {
    --primary-color: #426CB4;   /* Brinton Blue */
    --primary-dark: #345896;
    --secondary-color: #192944; /* Deep Navy */
    --success-color: #48bb78;
    --danger-color: #f56565;
    --warning-color: #D97F1F;   /* Signal Amber */
    --info-color: #4299e1;
    --dark-color: #192944;      /* Deep Navy */
    --light-color: #F7F9FC;     /* Cloud Paper */
    --border-color: #DCE2ED;    /* Line Gray */
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 14px;
    line-height: 1.5;
    color: #2d3748;
    background-color: #f7fafc;
}

h1, h2, h3, h4, h5, h6,
.sidebar-brand h2,
.auth-header h1 {
    font-family: 'IBM Plex Sans', sans-serif;
}

.auth-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    padding: 20px;
}

.auth-card {
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    width: 100%;
    max-width: 420px;
}

.auth-header {
    text-align: center;
    margin-bottom: 30px;
}

.auth-header h1 {
    font-size: 28px;
    color: var(--dark-color);
    margin-bottom: 8px;
}

.auth-header p {
    color: #718096;
    font-size: 14px;
}

.auth-logo {
    height: 56px;
    width: auto;
    margin: 0 auto 20px;
    display: block;
}

.auth-copyright {
    text-align: center;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 11px;
    color: #a0aec0;
    margin-top: 8px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--dark-color);
    font-weight: 500;
    font-size: 14px;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-check {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.form-check input {
    margin-right: 8px;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
    width: 100%;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
    background: #e2e8f0;
    color: var(--dark-color);
}

.btn-success {
    background: var(--success-color);
    color: white;
}

.btn-danger {
    background: var(--danger-color);
    color: white;
}

.alert {
    padding: 16px;
    margin-bottom: 20px;
    border-radius: 8px;
    border-left: 4px solid;
}

.alert-success {
    background: #f0fff4;
    border-color: var(--success-color);
    color: #22543d;
}

.alert-danger {
    background: #fff5f5;
    border-color: var(--danger-color);
    color: #742a2a;
}

.alert-warning {
    background: #fffaf0;
    border-color: var(--warning-color);
    color: #7c2d12;
}

.alert-info {
    background: #ebf8ff;
    border-color: var(--info-color);
    color: #2c5282;
}

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

.sidebar {
    width: 260px;
    background: var(--dark-color);
    color: white;
    padding: 20px 0;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
}

.sidebar-brand {
    padding: 0 20px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    margin-bottom: 20px;
}

.sidebar-logo {
    height: 28px;
    width: auto;
    margin-bottom: 12px;
}

.sidebar-brand h2 {
    font-size: 20px;
    font-weight: 700;
}

.sidebar-vendor {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 10.5px;
    letter-spacing: .03em;
    color: #9FB4DC;
    margin-top: 4px;
}

.sidebar-menu {
    list-style: none;
}

.sidebar-menu li a {
    display: block;
    padding: 12px 20px;
    color: #cbd5e0;
    text-decoration: none;
    transition: all 0.3s;
}

.sidebar-menu li a:hover,
.sidebar-menu li a.active {
    background: rgba(255,255,255,0.1);
    color: white;
    border-left: 3px solid var(--primary-color);
}

.main-content {
    flex: 1;
    margin-left: 260px;
    padding: 20px;
}

.top-bar {
    background: white;
    padding: 16px 24px;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    margin-bottom: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.page-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--dark-color);
}

.card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    padding: 24px;
    margin-bottom: 24px;
}

.card-header {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--border-color);
}

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

.table th,
.table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.table th {
    font-weight: 600;
    background: var(--light-color);
    color: var(--dark-color);
}

.table tr:hover {
    background: #f7fafc;
}

.text-center {
    text-align: center;
}

.mt-3 {
    margin-top: 1rem;
}

.mb-3 {
    margin-bottom: 1rem;
}

.text-muted {
    color: #718096;
}

.badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.badge-success {
    background: #c6f6d5;
    color: #22543d;
}

.badge-danger {
    background: #fed7d7;
    color: #742a2a;
}

.badge-warning {
    background: #feebc8;
    color: #7c2d12;
}

.badge-info {
    background: #bee3f8;
    color: #2c5282;
}

/* ============================================================
   Brinton Kay Technology Solutions — persistent copyright footer
   ============================================================ */
.app-footer {
    margin-top: 40px;
    padding: 16px 0 4px;
    border-top: 1px solid var(--border-color);
    font-family: 'IBM Plex Mono', monospace;
    font-size: 11px;
    color: #a0aec0;
    text-align: center;
}
