html, body {
    font-family: "Roboto", sans-serif;
    background-color: var(--bs-primary-text-emphasis);
}

/* 
################
  Monitor Page "/"
################
*/

.monitor-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(300px, 1fr));
    grid-gap: 24px;
}

@media (max-width: 991px) {
    .monitor-grid {
        grid-template-columns: repeat(1, minmax(300px, 1fr));
    }
}

.monitor-grid-item {
    background-color: var(--bs-dark);
    border-style: solid;
    border-radius: 20px;
}

.monitor-card {
    padding: 18px;
    height: 100%;
    color: var(--bs-light);
}


.indicator {
    background-color: transparent;
    height: 25px;
    width: 25px;
    border-radius: 50%;
    display: inline-block;
}

.indicator.green {
    background-color: green;
}

.indicator.red {
    background-color: red;
}


/* 
################
Page Card  
################
*/

/* Monitor Card */
.monitor-card {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border: 1px solid #334155;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.monitor-card:hover {
    border-color: #3b82f6;
    box-shadow: 0 8px 16px rgba(59, 130, 246, 0.2);
}

.monitor-card-header {
    padding: 1rem;
    border-bottom: 1px solid #334155;
    background: rgba(30, 41, 59, 0.5);
}

.monitor-card-title {
    color: #e2e8f0;
    font-weight: 600;
}

.monitor-link {
    color: #60a5fa;
    text-decoration: none;
    transition: color 0.2s ease;
}

.monitor-link:hover {
    color: #93c5fd;
}

.monitor-url {
    color: #94a3b8;
    font-size: 0.875rem;
}

.monitor-badge-duration {
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    color: #e0e7ff;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-weight: 500;
}

/* Status Indicator */
.status-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
}

.status-up {
    background-color: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.3);
}

.status-down {
    background-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.3);
    animation: pulse-glow 2s infinite;
}

@keyframes pulse-glow {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Scan List */
.monitor-scan-list {
    max-height: 400px;
    overflow-y: auto;
}

.monitor-scan-item {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #334155;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.2s ease;
}

.monitor-scan-item:last-child {
    border-bottom: none;
}

.monitor-scan-item:hover {
    background-color: rgba(59, 130, 246, 0.1);
}

.monitor-badge-success {
    background: linear-gradient(135deg, #059669 0%, #10b981 100%);
    color: #d1fae5;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    font-weight: 600;
    min-width: 60px;
    text-align: center;
}

.monitor-badge-danger {
    background: linear-gradient(135deg, #dc2626 0%, #ef4444 100%);
    color: #fee2e2;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    font-weight: 600;
    min-width: 60px;
    text-align: center;
}

.monitor-scan-time {
    color: #cbd5e1;
}

.monitor-scan-duration {
    color: #94a3b8;
}

/* Empty State */
.monitor-empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: #64748b;
}

/* Footer */
.monitor-card-footer {
    padding: 0.75rem 1rem;
    border-top: 1px solid #334155;
    background: rgba(15, 23, 42, 0.5);
    text-align: center;
}

.monitor-last-updated {
    color: #94a3b8;
}

@keyframes scan-enter {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
}

.scan-item-enter {
    animation: scan-enter 0.4s ease-out forwards;
}


/* 
################
  Add Page
################
*/

/* 
################
  Login Form
################
*/

.login-form-wrapper {
    border: 1px solid #000;
    border-radius: 10px;
    padding: 36px;
}

/* 
################
  Scan Detail
################
*/

.scan-detail-card {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border: 1px solid #334155;
}

.scan-detail-header {
    background: rgba(30, 41, 59, 0.6);
    border-bottom: 1px solid #334155;
}

.scan-detail-footer {
    background: rgba(15, 23, 42, 0.5);
    border-top: 1px solid #334155;
}

.scan-detail-muted {
    color: #94a3b8;
}

.scan-detail-table {
    --bs-table-bg: transparent;
    --bs-table-striped-bg: rgba(30, 41, 59, 0.4);
    --bs-table-hover-bg: rgba(59, 130, 246, 0.12);
    --bs-table-border-color: #334155;
    --bs-table-color: #e2e8f0;
}

.scan-detail-input {
    max-width: 8rem;
    background-color: rgba(15, 23, 42, 0.7);
    border: 1px solid #334155;
    color: #e2e8f0;
}

.scan-detail-input:focus {
    background-color: rgba(15, 23, 42, 0.9);
    border-color: #38bdf8;
    color: #f8fafc;
    box-shadow: 0 0 0 0.2rem rgba(56, 189, 248, 0.2);
}

.scan-detail-input::-webkit-outer-spin-button,
.scan-detail-input::-webkit-inner-spin-button {
    filter: invert(0.8);
}

.scan-preview-toggle {
    border: 0;
    border-bottom: 1px solid #334155;
    border-radius: 0;
    background: rgba(30, 41, 59, 0.6);
    padding: 0.9rem 1.1rem;
}

.scan-preview-toggle:hover,
.scan-preview-toggle:focus {
    background: rgba(59, 130, 246, 0.14);
}

.scan-preview-frame {
    width: 100%;
    min-height: 620px;
    border: 1px solid #334155;
    border-radius: 0.5rem;
    background: #0b1220;
}
