/* M365 Message Trace - Custom Styles */

body {
    background-color: #1a1d21;
    min-height: 100vh;
}

/* Navbar */
.navbar-brand {
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* Cards */
.card {
    border-radius: 0.5rem;
    background-color: #212529;
}

.card-header {
    background-color: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Tables */
.table {
    --bs-table-bg: transparent;
}

.table thead th {
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #8b949e;
}

.table-hover tbody tr:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

/* Badges */
.badge {
    font-weight: 500;
}

/* Notification dropdown */
#notifDropdown {
    background-color: #2d333b;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

#notifDropdown .dropdown-header {
    color: #c9d1d9;
}

#notifDropdown .dropdown-divider {
    border-color: rgba(255, 255, 255, 0.1);
}

.notif-item {
    padding: 8px 12px;
    border-radius: 6px;
    margin-bottom: 4px;
    transition: background-color 0.15s;
    cursor: pointer;
}

.notif-item:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

.notif-item .notif-title {
    font-weight: 600;
    font-size: 0.875rem;
}

.notif-item .notif-message {
    font-size: 0.8rem;
    color: #8b949e;
}

.notif-item .notif-time {
    font-size: 0.75rem;
    color: #6e7681;
}

/* Alert tweaks */
.alert {
    border-radius: 0.5rem;
}

/* Login page */
.card.shadow {
    background-color: #21262d;
}

/* Form controls dark theme refinement */
.form-control, .form-select {
    background-color: #2d333b;
    border-color: #444c56;
    color: #c9d1d9;
}

.form-control:focus, .form-select:focus {
    background-color: #2d333b;
    border-color: #58a6ff;
    color: #c9d1d9;
    box-shadow: 0 0 0 0.2rem rgba(88, 166, 255, 0.25);
}

/* Button group in tables */
.btn-group .btn {
    border-radius: 0;
}

.btn-group .btn:first-child {
    border-top-left-radius: 0.25rem;
    border-bottom-left-radius: 0.25rem;
}

.btn-group .btn:last-child,
.btn-group form:last-child .btn {
    border-top-right-radius: 0.25rem;
    border-bottom-right-radius: 0.25rem;
}

/* Pagination */
.page-link {
    background-color: #2d333b;
    border-color: #444c56;
    color: #c9d1d9;
}

.page-link:hover {
    background-color: #3d444d;
    border-color: #58a6ff;
    color: #58a6ff;
}

.page-item.active .page-link {
    background-color: #58a6ff;
    border-color: #58a6ff;
}

.page-item.disabled .page-link {
    background-color: #21262d;
    border-color: #444c56;
    color: #484f58;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #1a1d21;
}

::-webkit-scrollbar-thumb {
    background: #444c56;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #58a6ff;
}
