/* Modern Theme - Global Styles */

/* Modern Card Styles */
.modern-page-card {
    border-radius: 20px;
    border: none;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    background: white;
    margin-bottom: 2rem;
}

.modern-page-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 2rem;
    border: none;
}

.modern-page-header h3,
.modern-page-header h2,
.modern-page-header h1 {
    color: white;
    font-weight: 700;
    margin: 0;
}

.modern-page-body {
    padding: 2rem;
}

/* Modern Table Styles */
.modern-table {
    width: 100%;
    margin: 0;
}

.modern-table thead {
    background: #f8f9fe;
}

.modern-table thead th {
    padding: 1rem 1.5rem;
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #8898aa;
    border: none;
}

.modern-table tbody tr {
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.3s ease;
}

.modern-table tbody tr:hover {
    background: #f8f9fe;
    transform: scale(1.005);
}

.modern-table tbody td {
    padding: 1.25rem 1.5rem;
    vertical-align: middle;
    border: none;
}

/* Modern Buttons */
.modern-btn {
    border-radius: 10px;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
}

.modern-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.modern-btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.modern-btn-primary:hover {
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4);
}

.modern-btn-success {
    background: linear-gradient(135deg, #2dce89 0%, #2dcecc 100%);
    color: white;
}

.modern-btn-success:hover {
    box-shadow: 0 5px 20px rgba(45, 206, 137, 0.4);
}

.modern-btn-danger {
    background: linear-gradient(135deg, #f5365c 0%, #f56036 100%);
    color: white;
}

.modern-btn-danger:hover {
    box-shadow: 0 5px 20px rgba(245, 54, 92, 0.4);
}

.modern-btn-warning {
    background: linear-gradient(135deg, #fb6340 0%, #fbb140 100%);
    color: white;
}

.modern-btn-warning:hover {
    box-shadow: 0 5px 20px rgba(251, 99, 64, 0.4);
}

.modern-btn-info {
    background: linear-gradient(135deg, #11cdef 0%, #1171ef 100%);
    color: white;
}

.modern-btn-info:hover {
    box-shadow: 0 5px 20px rgba(17, 205, 239, 0.4);
}

/* Modern Badges */
.modern-badge {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.75rem;
    display: inline-block;
}

.modern-badge-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.modern-badge-success {
    background: #55efc4;
    color: #00b894;
}

.modern-badge-danger {
    background: #ff7675;
    color: #d63031;
}

.modern-badge-warning {
    background: #ffeaa7;
    color: #d63031;
}

.modern-badge-info {
    background: #74b9ff;
    color: #0984e3;
}

/* Modern Forms */
.modern-form-group {
    margin-bottom: 1.5rem;
}

.modern-form-label {
    font-weight: 600;
    color: #525f7f;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
    display: block;
}

.modern-form-control {
    border-radius: 10px;
    border: 2px solid #e9ecef;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
    width: 100%;
}

.modern-form-control:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    outline: none;
}

/* Modern Alerts */
.modern-alert {
    border-radius: 15px;
    border: none;
    padding: 1.25rem 1.5rem;
    margin-bottom: 1.5rem;
}

.modern-alert-success {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    color: #155724;
}

.modern-alert-danger {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    color: #721c24;
}

.modern-alert-warning {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    color: #856404;
}

.modern-alert-info {
    background: linear-gradient(135deg, #d1ecf1 0%, #bee5eb 100%);
    color: #0c5460;
}

/* Modern Pagination */
.pagination .page-link {
    border-radius: 8px;
    margin: 0 0.25rem;
    border: 2px solid #e9ecef;
    color: #667eea;
    font-weight: 600;
    transition: all 0.3s ease;
}

.pagination .page-link:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: #667eea;
    transform: translateY(-2px);
}

.pagination .page-item.active .page-link {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: #667eea;
}

/* Modern Modals */
.modal-content {
    border-radius: 20px;
    border: none;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.modal-header {
    border-radius: 20px 20px 0 0;
    border-bottom: none;
    padding: 1.5rem 2rem;
}

.modal-body {
    padding: 2rem;
}

.modal-footer {
    border-top: none;
    padding: 1.5rem 2rem;
}

/* Animation Classes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeInUp 0.6s ease-out;
}

.animate-delay-1 {
    animation-delay: 0.1s;
    animation-fill-mode: both;
}

.animate-delay-2 {
    animation-delay: 0.2s;
    animation-fill-mode: both;
}

.animate-delay-3 {
    animation-delay: 0.3s;
    animation-fill-mode: both;
}

.animate-delay-4 {
    animation-delay: 0.4s;
    animation-fill-mode: both;
}

/* Card Hover Effects */
.card-hover {
    transition: all 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.15);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
}

.empty-state i {
    font-size: 4rem;
    color: #dfe6e9;
    margin-bottom: 1.5rem;
}

.empty-state h4 {
    color: #8898aa;
    font-weight: 600;
    margin-bottom: 1rem;
}

.empty-state p {
    color: #adb5bd;
    margin-bottom: 2rem;
}

/* Responsive */
@media (max-width: 768px) {
    .modern-page-header {
        padding: 1.5rem;
    }
    
    .modern-page-body {
        padding: 1.5rem;
    }
    
    .modern-table thead th,
    .modern-table tbody td {
        padding: 0.75rem 1rem;
        font-size: 0.875rem;
    }
    
    .modern-btn {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }
}

/* Override default card styles */
.card.shadow {
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08) !important;
}

.card-header {
    border-radius: 20px 20px 0 0;
}

/* Make existing tables modern */
.table-responsive .table {
    margin-bottom: 0;
}

.table thead th {
    background: #f8f9fe;
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #8898aa;
    border: none;
    padding: 1rem 1.5rem;
}

.table tbody tr {
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.3s ease;
}

.table tbody tr:hover {
    background: #f8f9fe;
}

.table tbody td {
    padding: 1.25rem 1.5rem;
    vertical-align: middle;
    border: none;
}
