/* Additional CSS for enhanced professional look */

/* User Avatar Placeholder */
.user-avatar {
    background: #2c5aa0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 14px;
}

.user-avatar::before {
    content: "OM";
}

/* Enhanced Form Styling */
.form-floating {
    position: relative;
}

.form-floating > .form-control,
.form-floating > .form-select {
    height: calc(3.5rem + 2px);
    padding: 1rem 0.75rem;
}

.form-floating > label {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    padding: 1rem 0.75rem;
    pointer-events: none;
    border: 1px solid transparent;
    transform-origin: 0 0;
    transition: opacity 0.1s ease-in-out, transform 0.1s ease-in-out;
}

/* Better form field spacing */
.form-row {
    margin-bottom: 25px;
}

.form-group {
    margin-bottom: 20px;
}

/* Professional input styling */
.form-control,
.form-select {
    border: 2px solid #dee2e6;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-size: 14px;
}

.form-control:focus,
.form-select:focus {
    border-color: #2c5aa0;
    box-shadow: 0 0 0 0.25rem rgba(44,90,160,0.15);
    outline: none;
}

.form-label {
    font-weight: 600;
    color: #495057;
    margin-bottom: 8px;
    font-size: 14px;
}

/* Chart Container */
.chart-container {
    position: relative;
    height: 300px;
    margin: 20px 0;
}

/* Professional Badge Styling */
.badge {
    font-size: 11px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 20px;
}

/* Enhanced Table Styles */
.table-hover tbody tr:hover {
    background-color: rgba(44,90,160,0.05);
}

.table th {
    font-size: 12px;
    letter-spacing: 0.5px;
}

/* Status Badges */
.status-badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-badge.status-active {
    background: #198754;
    color: white;
}

.status-badge.status-pending {
    background: #fd7e14;
    color: white;
}

.status-badge.status-completed {
    background: #2c5aa0;
    color: white;
}

/* Professional Table Enhancements */
.table thead th {
    background: #2c5aa0 !important;
    color: white !important;
    border-bottom: none !important;
    position: sticky;
    top: 0;
    z-index: 10;
}

.table tbody td {
    border-color: #e9ecef;
    vertical-align: middle;
}

.table-striped > tbody > tr:nth-of-type(odd) > td {
    background-color: rgba(44,90,160,0.02);
}

.data-table th {
    font-weight: 600;
    text-align: center;
    white-space: nowrap;
}

.data-table td {
    text-align: center;
    font-size: 14px;
}

/* Mobile Responsiveness */
@media (max-width: 576px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .data-table-wrapper {
        font-size: 12px;
    }
    
    .btn {
        font-size: 12px;
        padding: 8px 16px;
    }
    
    .page-title {
        font-size: 24px;
    }
    
    .card-header {
        padding: 15px 20px;
        font-size: 16px;
    }
    
    .form-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    .form-actions .btn {
        width: 100%;
    }
    
    .header-actions {
        gap: 10px;
    }
    
    .action-buttons {
        flex-direction: column;
        gap: 5px;
    }
    
    .action-buttons .btn-sm {
        width: 100%;
        justify-content: center;
    }
    
    /* Better mobile table scrolling */
    .data-table-wrapper {
        -webkit-overflow-scrolling: touch;
    }
    
    /* Mobile sidebar improvements */
    .sidebar {
        width: 100%;
        max-width: 280px;
    }
}

/* Print Styles */
@media print {
    .sidebar,
    .header,
    .form-actions,
    .action-buttons,
    .header-actions {
        display: none !important;
    }
    
    .main-content {
        margin: 0 !important;
        padding: 0 !important;
    }
    
    .card {
        box-shadow: none !important;
        border: 1px solid #ddd !important;
    }
}
