/* USSD Gateway Custom Styles */

:root {
    --primary-color: #0056b3;
    --secondary-color: #6c757d;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #17a2b8;
}

body {
    padding-top: 60px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.footer {
    position: relative;
    bottom: 0;
    width: 100%;
    background-color: #f8f9fa;
    margin-top: 50px;
}

/* Dashboard Cards */
.card {
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    transition: transform 0.2s;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Stat Cards */
.card.bg-primary, .card.bg-success, .card.bg-warning, .card.bg-info, .card.bg-danger {
    border: none;
}

/* Table Styles */
.table-responsive {
    border-radius: 8px;
}

.table thead th {
    border-bottom: 2px solid #dee2e6;
    font-weight: 600;
}

/* Badge Styles */
.badge {
    padding: 0.35em 0.65em;
    font-weight: 500;
}

/* Login Page */
.login-container {
    max-width: 400px;
    margin: 100px auto;
}

.login-card {
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* Navigation */
.navbar-dark .navbar-nav .nav-link {
    color: rgba(255,255,255,0.9);
}

.navbar-dark .navbar-nav .nav-link:hover {
    color: #fff;
}

/* Breadcrumb */
.breadcrumb {
    background-color: transparent;
    padding: 0;
}

/* Form Controls */
.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(0, 86, 179, 0.25);
}

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

.btn:hover {
    transform: translateY(-1px);
}

/* Alert Styles */
.alert {
    border-radius: 8px;
    border: none;
}

/* Chart Canvas */
canvas {
    max-height: 400px;
}

/* Session List */
#activeSessIonsList > div {
    padding: 10px;
    border-bottom: 1px solid #e9ecef;
}

#activeSessIonsList > div:hover {
    background-color: #f8f9fa;
}

/* Request Log */
#recentRequests > div {
    padding: 8px;
    border-bottom: 1px solid #e9ecef;
    transition: background-color 0.2s;
}

#recentRequests > div:hover {
    background-color: #f8f9fa;
}

/* Loading Spinner */
.spinner-border {
    width: 1rem;
    height: 1rem;
    border-width: 0.2em;
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    body {
        background-color: #1a1a1a;
        color: #e0e0e0;
    }

    .card {
        background-color: #2a2a2a;
        border-color: #3a3a3a;
    }

    .table {
        color: #e0e0e0;
    }

    .form-control, .form-select {
        background-color: #2a2a2a;
        border-color: #3a3a3a;
        color: #e0e0e0;
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .card {
        margin-bottom: 1rem;
    }

    body {
        padding-top: 56px;
    }
}