/* Main Styles */
:root {
    --primary-color: #085078;
    --primary-dark: #85D8CE;
    --secondary-color: #858796;
    --success-color: #085078;
    --info-color: #36b9cc;
    --warning-color: #f6c23e;
    --danger-color: #e74a3b;
    --light-color: #f8f9fc;
    --dark-color: #5a5c69;
    --border-radius: 0.35rem;
    --box-shadow: 0 0.15rem 1.75rem 0 rgba(58, 59, 69, 0.15);
    --transition: all 0.3s ease;
}

.text-muted {
    --bs-text-opacity: 1;
    color: var(--bs-secondary-color) !important;
    font-size: 14px;
}

@media (min-width: 1200px) {
    .h4, h4 {
        font-size: 1rem !important;
    }
}

/* General Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fc;
    color: var(--dark-color);
    line-height: 1.6;
}

h1, h2, h3, h4, h5{
    color: var(--primary-color) !important;
}

.nav-item a{
    color: white !important;
}

.dropdown-menu a{
    color: var(--primary-color) !important;
}

.dashboard-page {
    padding-top: 70px;
}

/* Login Page */
.login-page {
    background: linear-gradient(135deg, #085078 0%, #85D8CE 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.login-container {
    padding: 2rem;
}

.login-card {
    border: none;
    border-radius: 1rem;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
}

.logo-circle {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.logo-circle i {
    font-size: 2.5rem;
    color: white;
}

/* Sidebar */
.sidebar {
    width: 250px;
    background: white;
    position: fixed;
    left: 0;
    top: 70px;
    bottom: 0;
    box-shadow: var(--box-shadow);
    z-index: 100;
    transform: translateX(0);
    transition: var(--transition);
}

.sidebar.collapsed {
    transform: translateX(-250px);
}

.sidebar-menu {
    padding: 1rem 0;
}

.sidebar-item {
    padding: 0.75rem 1.5rem;
    color: var(--dark-color);
    text-decoration: none;
    display: flex;
    align-items: center;
    transition: var(--transition);
    border-left: 3px solid transparent;
}

.sidebar-item:hover {
    background-color: var(--light-color);
    color: var(--primary-color);
    border-left-color: var(--primary-color);
}

.sidebar-item.active {
    background-color: rgba(78, 115, 223, 0.1);
    color: var(--primary-color);
    border-left-color: var(--primary-color);
}

.sidebar-item i {
    width: 20px;
    margin-right: 10px;
}

/* Main Content */
.main-content {
    margin-left: 250px;
    padding: 2rem;
    transition: var(--transition);
}

.main-content.expanded {
    margin-left: 0;
}

@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-250px);
    }
    .sidebar.show {
        transform: translateX(0);
    }
    .main-content {
        margin-left: 0;
    }
}

/* Stats Cards */
.stat-card {
    border: none;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    border-left: 4px solid var(--primary-color);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.5rem 2rem rgba(58, 59, 69, 0.2);
}

.stat-card.bg-success { border-left-color: var(--success-color); }
.stat-card.bg-info { border-left-color: var(--info-color); }
.stat-card.bg-warning { border-left-color: var(--warning-color); }

.stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-icon i {
    font-size: 1.5rem;
    color: white;
}

/* Tables */
.table {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 0 1rem rgba(0,0,0,0.05);
}

.table th {
    border-top: none;
    background-color: var(--light-color);
    color: var(--dark-color);
    font-weight: 600;
    padding: 1rem;
}

.table td {
    padding: 1rem;
    vertical-align: middle;
}

/* OTP Input */
.otp-input-container {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-bottom: 20px;
}

.otp-input {
    width: 60px;
    height: 70px;
    text-align: center;
    font-size: 2rem;
    font-weight: bold;
    border: 2px solid #dee2e6;
    border-radius: 10px;
    background: white;
    transition: all 0.3s;
}

.otp-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(78, 115, 223, 0.25);
    outline: none;
}

.otp-input.filled {
    border-color: var(--success-color);
    background-color: rgba(28, 200, 138, 0.1);
}

/* Buttons */
.btn {
    border-radius: var(--border-radius);
    font-weight: 500;
    transition: var(--transition);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border: none;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
    transform: translateY(-2px);
    box-shadow: 0 0.5rem 1rem rgba(78, 115, 223, 0.3);
}

/* Badges */
.badge {
    padding: 0.5em 1em;
    border-radius: 50px;
    font-weight: 500;
}

/* Toast */
.toast {
    border: none;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    background: white;
}

.toast-success {
    border-left: 4px solid var(--success-color);
}

.toast-error {
    border-left: 4px solid var(--danger-color);
}

/* Loader */
.spinner-border {
    width: 3rem;
    height: 3rem;
}

/* Empty State */
.empty-state {
    padding: 3rem 0;
}

.empty-state i {
    color: #dee2e6;
}

/* Tooltips */
.tooltip {
    --bs-tooltip-bg: var(--dark-color);
}

/* Responsive */
@media (max-width: 768px) {
    .main-content {
    padding: 40px 8px;
    }
    
    .otp-input-container {
        gap: 10px;
    }
    
    .otp-input {
        width: 35px;
        height: 35px;
        font-size: 1.5rem;
    }
}