/* Custom styles for enhanced user management */

/* Timeline styles */
.timeline {
    position: relative;
    padding: 20px 0;
}

.timeline-item {
    position: relative;
    margin-bottom: 30px;
    padding-left: 50px;
}

.timeline-badge {
    position: absolute;
    left: 0;
    top: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #337ab7;
    color: white;
    text-align: center;
    line-height: 40px;
    font-size: 16px;
}

.timeline-body {
    background: #f9f9f9;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    padding: 15px;
    margin-left: 20px;
}

.timeline-heading {
    margin-bottom: 10px;
}

.timeline-title {
    margin: 0;
    font-size: 16px;
    font-weight: bold;
}

/* Enhanced table styles */
.table-responsive {
    border: none;
}

.table > tbody > tr > td {
    vertical-align: middle;
}

/* Badge improvements */
.badge {
    font-size: 11px;
    padding: 4px 8px;
}

/* Label improvements */
.label {
    font-size: 11px;
    padding: 4px 8px;
}

/* Panel improvements */
.panel-default > .panel-heading {
    background-color: #f5f5f5;
    border-color: #ddd;
}

.panel-title {
    font-size: 14px;
    font-weight: bold;
}

/* Well improvements */
.well-sm {
    padding: 8px 12px;
    margin-bottom: 0;
}

/* Form improvements */
.form-control:focus {
    border-color: #337ab7;
    box-shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px rgba(51,122,183,.6);
}

/* Modal improvements */
.modal-lg {
    width: 900px;
}

/* Button group improvements */
.btn-group-xs > .btn {
    padding: 2px 6px;
    font-size: 11px;
}

/* Date range picker improvements */
.daterangepicker {
    z-index: 9999;
}

/* Loading spinner */
.loading-spinner {
    text-align: center;
    padding: 20px;
}

.loading-spinner i {
    font-size: 24px;
    color: #337ab7;
}

/* User avatar improvements */
.img-circle {
    border: 2px solid #e5e5e5;
}

/* Status indicators */
.status-active {
    color: #5cb85c;
}

.status-inactive {
    color: #d9534f;
}

/* Time record status */
.time-record-active {
    background-color: #dff0d8;
}

.time-record-completed {
    background-color: #f9f9f9;
}

/* Tab improvements */
.nav-tabs > li > a {
    border-radius: 4px 4px 0 0;
}

.nav-tabs > li.active > a {
    background-color: #337ab7;
    color: white;
    border-color: #337ab7;
}

/* Summary well */
.summary-well {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    padding: 15px;
    margin-bottom: 20px;
}

.summary-well h4 {
    margin-top: 0;
    color: #495057;
}

.summary-well p {
    margin-bottom: 0;
    font-size: 18px;
    font-weight: bold;
}

/* Action buttons */
.action-buttons .btn {
    margin-right: 5px;
}

/* Responsive improvements */
@media (max-width: 768px) {
    .timeline-item {
        padding-left: 30px;
    }
    
    .timeline-badge {
        width: 30px;
        height: 30px;
        line-height: 30px;
        font-size: 12px;
    }
    
    .timeline-body {
        margin-left: 10px;
        padding: 10px;
    }
    
    .table-responsive {
        font-size: 12px;
    }
    
    .btn-group-xs > .btn {
        padding: 1px 4px;
        font-size: 10px;
    }
}
