body {
    background-color: #0f172a;
    color: #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
    margin: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    overflow: hidden; /* Prevent body scroll */
}

.container {
    width: 100%;
    max-width: 1000px;
    height: 100vh; /* Fit within screen */
    background: #1e293b;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
    border: 1px solid #334155;
    display: flex;
    flex-direction: column;
}

h1 {
    color: #f8fafc;
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 1rem;
}

h2 {
    color: #f8fafc;
    font-weight: 600;
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.form-control {
    background-color: #334155;
    border: 1px solid #475569;
    color: #f8fafc;
    padding: 12px 20px;
    border-radius: 8px;
}

.form-control:focus {
    background-color: #334155;
    border-color: #3b82f6;
    color: #f8fafc;
    box-shadow: 0 0 0 0.25rem rgba(59, 130, 246, 0.25);
}

.form-control::placeholder {
    color: #94a3b8;
}

.btn-primary {
    background-color: #3b82f6;
    border-color: #3b82f6;
    padding: 12px 24px;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
}

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

/* Table Styling */
.table-responsive {
    flex-grow: 1;
    overflow-y: auto;
    margin-top: 10px;
    border-radius: 8px;
    border: 1px solid #334155;
}

.table {
    margin-bottom: 0;
    color: #e2e8f0;
    --bs-table-bg: transparent;
    --bs-table-color: #e2e8f0;
    --bs-table-border-color: #334155;
    --bs-table-hover-bg: rgba(255, 255, 255, 0.05);
    --bs-table-hover-color: #f8fafc;
}

.table thead th {
    background-color: #0f172a;
    position: sticky;
    top: 0;
    z-index: 1;
    border-bottom: 2px solid #334155;
    color: #94a3b8;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    padding: 15px;
}

.table td {
    border-bottom: 1px solid #334155;
    vertical-align: middle;
    padding: 12px 15px;
}

a {
    color: #60a5fa;
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: #93c5fd;
    text-decoration: underline;
}

.alert {
    border-radius: 8px;
    border: none;
    margin-bottom: 1rem;
}

.alert-success {
    background-color: #064e3b;
    color: #6ee7b7;
}

.alert-danger {
    background-color: #7f1d1d;
    color: #fca5a5;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #64748b; 
}

hr {
    border-color: #334155;
    opacity: 0.5;
    margin: 1.5rem 0;
}

#result {
    display: none;
}

.badge {
    font-weight: 500;
    padding: 0.5em 0.8em;
}

.bg-secondary {
    background-color: #334155 !important;
    color: #e2e8f0;
}
