/* --- MNEMOSYNE EXACT RED OVERRIDES --- */

/* Import Aeonik */
@font-face {
    font-family: 'Aeonik';
    src: url('/fonts/aeonik-regular-webfont.woff2') format('woff2'),
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* Override Bootstrap's primary button */
.btn-primary {
    background-color: #b10021 !important; /* Dark Red base */
    border-color: #b10021 !important;
    color: #ffffff !important;
}

/* Brighten and glow on hover */
.btn-primary:hover, .btn-primary:focus {
    background-color: #e4002b !important; /* Light Red hover */
    border-color: #e4002b !important;
    box-shadow: 0 4px 12px rgba(228, 0, 43, 0.4) !important;
}

/* Override Outline Primary Buttons */
.btn-outline-primary {
    color: #ed2148 !important; /* Light Red */
    border-color: #ed2148 !important;
}

.btn-outline-primary:hover {
    background-color: #b10021 !important; /* Dark Red */
    border-color: #b10021 !important;
    color: #ffffff !important;
}

/* Override Primary Text (Icons, Headings, Spinners) */
.text-primary, .spinner-border.text-primary {
    color: #e4002b !important; /* Light Red for maximum pop on dark backgrounds */
}

/* Progress Bars */
.progress-bar.bg-primary, .progress-bar {
    background-color: #e4002b !important; /* Light Red */
}

/* Update Scan Logs */
#scan-logs {
    background-color: #0a0505; 
    border: 1px solid #b10021; /* Dark Red border */
    color: #e4002b; /* Light Red terminal text */
    font-family: "Fira Code", SFMono-Regular, Consolas, monospace;
    padding: 15px;
    overflow-y: auto;
    border-radius: 8px;
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.8);
}

.log-entry {
    border-bottom: 1px solid #330009; /* Very faint dark red line */
}

/* Override Bootstrap Info (Light Blue) with your Reds */
.btn-outline-info {
    color: #e4002b !important; /* Your Light Red (#e4002b) */
    border-color: #e4002b !important;
}

.btn-outline-info:hover {
    background-color: #b10021 !important; /* Your Dark Red (#b10021) */
    border-color: #b10021 !important;
    color: #ffffff !important;
}

/* Fix the info text color used in badges/alerts */
.text-info {
    color: #e4002b !important;
}

/* Adjust the Modal Header to match the Dark Red theme */
.modal-header.bg-dark {
    background-color: #1a1515 !important; /* Red-tinted charcoal */
    border-bottom: 2px solid #b10021 !important; /* Dark Red accent line */
}


/* Sleek Dark Red Modals */
.modal-content {
    background-color: #121212 !important; /* Neutral dark */
    border: 1px solid #2d2d2d !important; /* Subtle gray border */
    border-top: 4px solid #b10021 !important; /* The signature red stripe */
}

.modal-header .btn-close {
    filter: invert(1) grayscale(1) brightness(2); /* Make the X white */
}

.modal-title {
    color: #ffffff !important; /* Neutral white */
}

.modal-footer {
    border-top: 1px solid #330009;
}

/* Fix input fields inside modals */
.modal-body input, .modal-body select {
    background-color: #0d0a0a !important;
    border: 1px solid #3f1616 !important;
    color: #e0e0e0 !important;
}

.modal-body input:focus {
    border-color: #e4002b !important;
    box-shadow: 0 0 0 0.25rem rgba(228, 0, 43, 0.25) !important;
}


/* SweetAlert2 Modern Dark Red Skin */
/* Refined SweetAlert2 - Neutral with Red Accents */
.swal2-popup {
    background-color: #121212 !important; /* Neutral deep charcoal */
    color: #e0e0e0 !important;
    border: 1px solid #333333 !important; /* Neutral border */
    border-top: 3px solid #b10021 !important; /* Single dark red accent line at the top */
    border-radius: 8px !important;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7) !important;
}

.swal2-title {
    color: #ffffff !important; /* White title for less "alarm" feel */
    font-size: 1.4rem !important;
    font-weight: 700 !important;
}

/* Save the Light Red ONLY for the confirm button */
.swal2-confirm {
    background-color: #b10021 !important; 
    border: 1px solid #e4002b !important;
    text-transform: uppercase;
    font-family: 'Aeonik', sans-serif !important;
    font-weight: bold;
    letter-spacing: 0.05em;
}

/* Soften the input fields to be less "red-heavy" */
.swal2-input {
    background-color: #1a1a1a !important;
    border: 1px solid #333 !important;
    color: #fff !important;
    box-shadow: none !important;
    transition: border-color 0.2s;
}

.swal2-input:focus {
    border-color: #b10021 !important; /* Only turns red when you click it */
}

.swal2-html-container {
    color: #cccccc !important;
}


.swal2-cancel {
    background-color: #444 !important;
}


.swal2-input:focus {
    border: 1px solid #e4002b !important;
    box-shadow: 0 0 0 2px rgba(228, 0, 43, 0.3) !important;
}
/* Specifically style the Logout button to feel more "Emergency/End Session" */
#btn-logout {
    background-color: #b10021 !important; /* Your Dark Red */
    border: 1px solid #e4002b !important; /* Your Light Red glow border */
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding-left: 15px;
    padding-right: 15px;
}

#btn-logout:hover {
    background-color: #e4002b !important; /* Flashes bright red on hover */
    box-shadow: 0 0 15px rgba(228, 0, 43, 0.5) !important;
}

/* Ensure the Password button stays clean and professional */
#btn-change-password {
    border-color: rgba(255, 255, 255, 0.5) !important;
    color: #ffffff !important;
    font-family: 'Aeonik', sans-serif;
}

#btn-change-password:hover {
    background-color: rgba(255, 255, 255, 0.1) !important;
    border-color: #ffffff !important;
}

/* Fix Pagination Color Overrides */
.page-link {
    background-color: #1a1515 !important; /* Charcoal background */
    border: 1px solid #333 !important;      /* Subtle border */
    color: #e4002b !important;            /* Force Light Red numbers */
    font-family: 'Aeonik', sans-serif;
    transition: all 0.2s ease-in-out;
}

.page-item.active .page-link {
    background-color: #b10021 !important; /* Dark Red for active page */
    border-color: #e4002b !important;      /* Light Red border for active page */
    color: #ffffff !important;            /* White text for active page */
}

.page-link:hover {
    color: #ffffff !important;            /* White text on hover */
    background-color: #b10021 !important; /* Dark Red background on hover */
    border-color: #e4002b !important;
}

.page-item.disabled .page-link {
    color: #444 !important;               /* Muted gray for disabled */
    background-color: #0d0a0a !important;
    border-color: #222 !important;
}

/* Custom Mnemosyne Alert/Notice */
.alert-mnemosyne {
    background-color: #1a0a0a !important; /* Very dark red-tinted black */
    border: 1px solid #b10021 !important; /* Dark Red border */
    border-left: 5px solid #e4002b !important; /* Light Red accent stripe */
    color: #e0e0e0 !important;
    border-radius: 4px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.alert-mnemosyne i {
    color: #e4002b !important; /* Light Red icon */
}

.alert-mnemosyne strong {
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}


/* Sleek Property Readout for Details */
.property-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #222;
}

.property-row:last-child {
    border-bottom: none;
}

.property-label {
    color: #888; /* Dimmed label */
    font-family: 'Aeonik', sans-serif;
    text-transform: uppercase;
    font-size: 0.7rem;
    letter-spacing: 0.05em;
    font-weight: bold;
}

.property-value {
    color: #fff; /* Bright value */
    font-family: 'Aeonik', sans-serif;
    font-size: 0.9rem;
    text-align: right;
}

/* Specific styling for the ID and Paths */
.property-value.font-mono {
    color: #e4002b; /* Use your light red for technical IDs */
    font-size: 0.8rem;
    background: #1a0a0a;
    padding: 2px 6px;
    border-radius: 4px;
}

/* Base Theme */
/* Update Body to use Aeonik */
body {
    background-color: #110e0e; /* Updated reddish-black */
    color: #e0e0e0;
    font-family: 'Aeonik', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 0.95rem;
}

/* Headings look particularly sleek in Aeonik */
h1, h2, h3, h4, h5, h6, .navbar-brand, .card-header {
    font-family: 'Aeonik', sans-serif;
    letter-spacing: -0.02em; /* Aeonik looks great with a slight tighten */
}
/* Navigation */
.navbar {
    background-color: #1a1a1a;
    border-bottom: 1px solid #2d2d2d;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

/* Cards */
.card {
    background-color: #1e1e1e;
    border: 1px solid #2d2d2d;
    border-radius: 12px; /* Smoother, modern corners */
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    color: #e0e0e0;
}

.card-header {
    background-color: transparent;
    border-bottom: 1px solid #2d2d2d;
    font-weight: 600;
    color: #ffffff; /* Brighter white to make headers pop */
    padding: 1.25rem 1.5rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Tables */
.table {
    color: #e0e0e0;
    margin-bottom: 0;
}

.table thead th {
    background-color: #1a1a1a;
    border-bottom: 2px solid #333;
    font-weight: 600;
    color: #a3a3a3;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
    padding: 1rem;
}

.table td {
    border-bottom: 1px solid #2d2d2d;
    vertical-align: middle;
    padding: 1rem;
}

/* Typography & Layout */
.breadcrumb {
    background: transparent;
    padding: 0;
    margin: 0;
}

.font-mono {
    font-family: "Fira Code", SFMono-Regular, Consolas, "Liberation Mono", Menlo, monospace;
}

.text-break-all {
    word-break: break-all;
}

/* Buttons */
.btn {
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.2s ease-in-out;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Scan Logs (Sleek Terminal Aesthetic) */
#scan-logs {
    background-color: #0d1117; /* Deepest dark for code/logs */
    border: 1px solid #30363d;
    color: #58a6ff; /* Sleek cyber-blue text */
    font-family: "Fira Code", SFMono-Regular, Consolas, monospace;
    padding: 15px;
    overflow-y: auto; /* Use auto instead of scroll to hide inactive scrollbars */
    border-radius: 8px;
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.5);
}

.log-entry {
    padding: 6px 0;
    border-bottom: 1px solid #21262d;
    line-height: 1.5;
}

.log-entry:last-child {
    border-bottom: none;
}

/* Responsive Utilities */
@media (max-width: 768px) {
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .table th:nth-child(3), .table td:nth-child(3), /* Size */
    .table th:nth-child(5), .table td:nth-child(5)  /* Modified */ {
        display: none;
    }
    
    .navbar-brand {
        font-size: 1rem;
        font-weight: 600;
    }
}

.table-responsive {
    border: none;
}