/* Custom Professional Admin Panel Enhancements */

/* Modern Card Design */
.panel {
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    border: 1px solid #e8e8e8;
}

.panel-heading {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border-radius: 8px 8px 0 0;
    padding: 15px 20px;
    border-bottom: none;
}

.panel-heading .nav-tabs > li.active > a {
    background: rgba(255,255,255,0.2);
    color: #fff;
    border: none;
}

.panel-heading .nav-tabs > li > a {
    color: rgba(255,255,255,0.8);
    border: none;
}

.panel-heading .nav-tabs > li > a:hover {
    background: rgba(255,255,255,0.1);
    color: #fff;
}

/* Enhanced Buttons */
.btn {
    border-radius: 4px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102,126,234,0.4);
}

.btn-success {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    border: none;
}

.btn-success:hover {
    background: linear-gradient(135deg, #38ef7d 0%, #11998e 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(17,153,142,0.4);
}

.btn-danger {
    background: linear-gradient(135deg, #ee0979 0%, #ff6a00 100%);
    border: none;
}

.btn-warning {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    border: none;
    color: #fff;
}

.btn-info {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    border: none;
}

/* Modern Table Design */
.table {
    background: #fff;
}

.table thead th {
    background: #f8f9fa;
    color: #495057;
    font-weight: 600;
    border-bottom: 2px solid #dee2e6;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.5px;
}

.table tbody tr:hover {
    background: #f8f9fa;
    transition: background 0.2s ease;
}

.table-striped tbody tr:nth-of-type(odd) {
    background-color: rgba(0,0,0,0.02);
}

/* Status Labels */
.label {
    border-radius: 12px;
    padding: 4px 12px;
    font-weight: 500;
    font-size: 11px;
}

.label-success {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
}

.label-danger {
    background: linear-gradient(135deg, #ee0979 0%, #ff6a00 100%);
}

.label-warning {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.label-info {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

/* Form Enhancements */
.form-control {
    border-radius: 4px;
    border: 1px solid #d1d5db;
    padding: 10px 15px;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102,126,234,0.1);
}

/* Toolbar Enhancement */
.toolbar {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 20px;
    border: 1px solid #e9ecef;
}

.toolbar .btn {
    margin-right: 8px;
}

/* Sidebar Menu Enhancement */
.sidebar-menu > li > a {
    padding: 12px 15px;
    transition: all 0.3s ease;
}

.sidebar-menu > li > a:hover {
    background: rgba(102,126,234,0.1);
    border-left: 3px solid #667eea;
    padding-left: 17px;
}

.sidebar-menu > li.active > a {
    background: linear-gradient(90deg, rgba(102,126,234,0.2) 0%, rgba(102,126,234,0.05) 100%);
    border-left: 3px solid #667eea;
    color: #667eea;
    font-weight: 600;
}

/* Dashboard Widgets */
.info-box {
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.info-box:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}

/* Modal Enhancements */
.modal-content {
    border-radius: 8px;
    border: none;
    box-shadow: 0 8px 32px rgba(0,0,0,0.15);
}

.modal-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border-radius: 8px 8px 0 0;
}

.modal-title {
    font-weight: 600;
}

/* Alert Enhancements */
.alert {
    border-radius: 6px;
    border-left: 4px solid;
}

.alert-success {
    background: #d1f2eb;
    border-left-color: #11998e;
    color: #0c5d56;
}

.alert-danger {
    background: #f8d7da;
    border-left-color: #ee0979;
    color: #721c24;
}

.alert-warning {
    background: #fff3cd;
    border-left-color: #f5576c;
    color: #856404;
}

.alert-info {
    background: #d1ecf1;
    border-left-color: #4facfe;
    color: #0c5460;
}

/* Badge Enhancement */
.badge {
    border-radius: 10px;
    padding: 4px 10px;
    font-weight: 500;
}

/* Loading Animation */
.loading-overlay {
    background: rgba(255,255,255,0.95);
    border-radius: 8px;
}

/* Pagination */
.pagination > .active > a {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: #667eea;
}

.pagination > li > a:hover {
    background: #f8f9fa;
    color: #667eea;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #764ba2;
}

/* Header Enhancement */
.navbar-custom-menu .user-panel {
    padding: 10px;
}

/* Stats Card */
.stats-card {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.stats-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}

.stats-card .icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #fff;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* Breadcrumb Enhancement */
.breadcrumb {
    background: transparent;
    padding: 12px 0;
}

.breadcrumb > li + li:before {
    content: "›";
    color: #999;
    font-size: 18px;
}

/* Professional Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    color: #2d3748;
}

.text-muted {
    color: #6c757d !important;
}

/* Smooth Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.panel, .table, .btn {
    animation: fadeIn 0.3s ease-in;
}

/* Responsive Enhancements */
@media (max-width: 768px) {
    .panel-heading {
        padding: 12px 15px;
    }
    
    .toolbar {
        padding: 10px;
    }
    
    .toolbar .btn {
        margin-bottom: 8px;
    }
}
