/* User Login History CSS */
body {
    background-color: #f8f9fa;
}

.container-fluid {
    max-width: 1200px;
    padding: 20px;
}

.card {
    border-radius: 10px;
    border: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

h1 {
    color: #333;
    font-size: 1.6rem;
    font-weight: 700;
}

.text-muted {
    color: #6c757d !important;
    font-size: 0.85rem;
}

/* Section Styles */
.filters-section,
.activity-section,
.security-section,
.session-section {
    background-color: #fff;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    padding: 15px;
    margin-bottom: 20px;
}

.section-header {
    border-bottom: 1px solid #eaeaea;
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.section-header h5 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
}

.toggle-section {
    color: #6c757d;
    text-decoration: none;
}

.toggle-section:hover {
    color: #495057;
}

.section-content {
    padding-top: 5px;
}

/* Form Controls */
.form-label {
    font-weight: 500;
    font-size: 0.9rem;
    color: #495057;
    margin-bottom: 5px;
}

.form-control {
    border: 1px solid #ced4da;
    border-radius: 4px;
    padding: 8px 12px;
    font-size: 0.9rem;
}

.form-control:focus {
    border-color: #2e86de;
    box-shadow: 0 0 0 0.25rem rgba(46, 134, 222, 0.25);
}

.input-group-text {
    background-color: #f8f9fa;
    border: 1px solid #ced4da;
    color: #6c757d;
}

/* Checkbox and Switch Styles */
.form-check-input {
    width: 1.1em;
    height: 1.1em;
    margin-top: 0.25em;
}

.form-check-input:checked {
    background-color: #2e86de;
    border-color: #2e86de;
}

.form-check-input:focus {
    box-shadow: 0 0 0 0.25rem rgba(46, 134, 222, 0.25);
}

.form-switch .form-check-input {
    width: 2.5em;
}

.form-check-label {
    font-size: 0.9rem;
    color: #495057;
}

/* Security Notes */
.security-note {
    font-size: 0.8rem;
    color: #6c757d;
    font-style: italic;
}

/* Buttons */
.btn-primary {
    background-color: #2e86de;
    border-color: #2e86de;
}

.btn-primary:hover, .btn-primary:focus {
    background-color: #1a73e8;
    border-color: #1a73e8;
}

.btn-secondary {
    background-color: #6c757d;
    border-color: #6c757d;
}

.btn-secondary:hover, .btn-secondary:focus {
    background-color: #5a6268;
    border-color: #5a6268;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .container-fluid {
        padding: 10px;
    }
    
    .section-content .row .col-md-6:not(:last-child) {
        margin-bottom: 15px;
    }
    
    .d-flex {
        flex-direction: column;
    }
    
    .d-flex .input-group {
        margin-bottom: 10px;
        margin-right: 0 !important;
    }
    
    /* Card adjustments for mobile */
    .card {
        margin-bottom: 15px;
        border-radius: 8px;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    }
    
    /* Section adjustments */
    .filters-section,
    .activity-section,
    .security-section,
    .session-section {
        padding: 12px;
        margin-bottom: 15px;
    }
    
    .section-header {
        padding-bottom: 8px;
        margin-bottom: 12px;
    }
    
    .section-header h5 {
        font-size: 1rem;
    }
    
    /* Form controls for mobile */
    .form-control {
        padding: 8px 10px;
        font-size: 0.85rem;
    }
    
    /* Button sizing for mobile */
    .btn {
        padding: 8px 12px;
        font-size: 0.9rem;
    }
    
    /* Better spacing for form groups */
    .mb-3 {
        margin-bottom: 12px !important;
    }
    
    /* Improve table responsiveness */
    .table-responsive {
        border: 0;
    }
    
    .table th, 
    .table td {
        padding: 0.5rem;
        font-size: 0.85rem;
    }
}

/* Extra small devices */
@media (max-width: 576px) {
    h1 {
        font-size: 1.4rem;
    }
    
    .filters-section,
    .activity-section,
    .security-section,
    .session-section {
        padding: 10px;
    }
    
    .section-header h5 {
        font-size: 0.95rem;
    }
    
    .form-label {
        font-size: 0.85rem;
    }
    
    .form-check-label {
        font-size: 0.85rem;
    }
    
    .security-note {
        font-size: 0.75rem;
    }
    
    /* Stack buttons on very small screens */
    .d-flex.mt-3 .btn {
        width: 100%;
        margin-bottom: 8px;
        margin-right: 0 !important;
    }
}
