/* Main Styles */
:root {
    --primary-color: #0d6efd;
    --primary-hover: #0b5ed7;
    --danger-color: #dc3545;
    --success-color: #198754;
    --warning-color: #ffc107;
    --info-color: #0dcaf0;
    --sidebar-active: #e7f1ff;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Header Styles */
header {
    background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 100%) !important;
}

/* Card and Component Styling */
.card {
    border: none;
    transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}

.card-header {
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.list-group-item.update-item {
    transition: background-color 0.1s ease;
}

.list-group-item.update-item:hover {
    background-color: rgba(13, 110, 253, 0.03);
}

.list-group-item.active {
    background-color: var(--sidebar-active);
    color: var(--primary-color);
    border-color: rgba(0, 0, 0, 0.1);
    font-weight: 500;
}

.list-group-item.active i {
    color: var(--primary-color);
}

/* Badges */
.badge.bg-danger {
    background-color: var(--danger-color) !important;
}

.badge.bg-success {
    background-color: var(--success-color) !important;
}

.badge.bg-warning {
    background-color: var(--warning-color) !important;
}

.badge.bg-primary {
    background-color: var(--primary-color) !important;
}

.badge.bg-info {
    background-color: var(--info-color) !important;
}

/* Buttons */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    transition: all 0.2s ease;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    border-color: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(13, 110, 253, 0.2);
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    color: white;
}

.update-btn:hover {
    transform: translateY(-1px);
}

/* Security Section */
.security-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.security-circle i {
    font-size: 1.8rem;
}

/* Progress Bar */
.progress {
    height: 0.8rem;
    border-radius: 0.5rem;
}

/* Animation for transitions */
.fade-transition {
    transition: opacity 0.3s ease;
}

/* Responsive adjustments */
@media (max-width: 991.98px) {
    .card {
        margin-bottom: 1rem;
    }
}

@media (max-width: 767.98px) {
    h1 {
        font-size: 1.5rem;
    }
    
    .card-title {
        font-size: 1.2rem;
    }
}

/* Custom scrollbar for tables */
.table-responsive::-webkit-scrollbar {
    height: 8px;
}

.table-responsive::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
}

.table-responsive::-webkit-scrollbar-track {
    background-color: rgba(0, 0, 0, 0.05);
    border-radius: 4px;
}

/* Modal styling */
.modal-content {
    border: none;
    border-radius: 0.5rem;
}

.modal-header {
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.modal-footer {
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}