/**
 * X-driven Modern Template Styles
 * Professional design system for admin panel
 */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --xdriven-primary: #667eea;
    --xdriven-secondary: #764ba2;
    --xdriven-primary-dark: #5568d3;
    --xdriven-secondary-dark: #653f8f;
    --xdriven-success: #48bb78;
    --xdriven-warning: #ed8936;
    --xdriven-danger: #f56565;
    --xdriven-info: #4299e1;
    --xdriven-text-dark: #1f2937;
    --xdriven-text-medium: #4a5568;
    --xdriven-text-light: #718096;
    --xdriven-bg-light: #f7fafc;
    --xdriven-bg-white: #ffffff;
    --xdriven-border: #e2e8f0;
    --xdriven-shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --xdriven-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    --xdriven-shadow-lg: 0 10px 30px rgba(102, 126, 234, 0.15);
    --xdriven-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --xdriven-gradient-hover: linear-gradient(135deg, #5568d3 0%, #653f8f 100%);
}

* {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* Page Headers */
.page-header-modern {
    background: var(--xdriven-gradient);
    color: white;
    padding: 2rem;
    border-radius: 15px;
    margin-bottom: 2rem;
    box-shadow: var(--xdriven-shadow-lg);
}

.page-header-modern h2 {
    margin: 0;
    font-weight: 700;
    font-size: 1.75rem;
}

.page-header-modern p {
    margin: 0.5rem 0 0 0;
    opacity: 0.9;
}

/* Cards */
.card-modern {
    background: var(--xdriven-bg-white);
    border-radius: 15px;
    box-shadow: var(--xdriven-shadow);
    border: 1px solid rgba(102, 126, 234, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.card-modern:hover {
    box-shadow: var(--xdriven-shadow-lg);
    transform: translateY(-2px);
}

.card-header-modern {
    background: var(--xdriven-gradient);
    color: white;
    padding: 1.25rem 1.5rem;
    border: none;
    font-weight: 600;
}

.card-header-modern-alt {
    background: linear-gradient(135deg, var(--xdriven-bg-light) 0%, #edf2f7 100%);
    color: var(--xdriven-text-dark);
    padding: 1.25rem 1.5rem;
    border-bottom: 2px solid var(--xdriven-border);
    font-weight: 600;
}

.card-body-modern {
    padding: 1.5rem;
}

/* Stats Cards */
.stats-card {
    background: var(--xdriven-bg-white);
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: var(--xdriven-shadow);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-left: 4px solid;
    height: 100%;
    border: 1px solid rgba(102, 126, 234, 0.1);
}

.stats-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--xdriven-shadow-lg);
}

.stats-card.primary {
    border-left-color: var(--xdriven-primary);
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
}

.stats-card.success {
    border-left-color: var(--xdriven-success);
}

.stats-card.warning {
    border-left-color: var(--xdriven-warning);
}

.stats-card.info {
    border-left-color: var(--xdriven-info);
}

.stats-card.danger {
    border-left-color: var(--xdriven-danger);
}

.stats-number {
    font-size: 2rem;
    font-weight: 700;
    margin: 0;
    background: var(--xdriven-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stats-number.success {
    background: linear-gradient(135deg, var(--xdriven-success) 0%, #38a169 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stats-number.warning {
    background: linear-gradient(135deg, var(--xdriven-warning) 0%, #dd6b20 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stats-number.info {
    background: linear-gradient(135deg, var(--xdriven-info) 0%, #3182ce 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Buttons */
.btn-modern {
    border-radius: 10px;
    padding: 0.6rem 1.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border: none;
}

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

.btn-modern-primary {
    background: var(--xdriven-gradient);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.btn-modern-primary:hover {
    background: var(--xdriven-gradient-hover);
    color: white;
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.btn-modern-success {
    background: linear-gradient(135deg, var(--xdriven-success) 0%, #38a169 100%);
    color: white;
}

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

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

.btn-modern-info {
    background: var(--xdriven-gradient);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.btn-modern-info:hover {
    background: var(--xdriven-gradient-hover);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

/* Badges */
.badge-modern {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 500;
    font-size: 0.75rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.badge-modern i {
    font-size: 0.7rem;
}

.badge-primary-modern {
    background: var(--xdriven-gradient);
    color: white;
}

.badge-success-modern {
    background: linear-gradient(135deg, var(--xdriven-success) 0%, #38a169 100%);
    color: white;
}

.badge-warning-modern {
    background: linear-gradient(135deg, var(--xdriven-warning) 0%, #dd6b20 100%);
    color: white;
}

.badge-danger-modern {
    background: linear-gradient(135deg, var(--xdriven-danger) 0%, #e53e3e 100%);
    color: white;
}

.badge-info-modern {
    background: linear-gradient(135deg, var(--xdriven-info) 0%, #3182ce 100%);
    color: white;
}

.badge-secondary-modern {
    background: linear-gradient(135deg, #a0aec0 0%, #718096 100%);
    color: white;
}

/* Forms */
.form-card-modern {
    background: var(--xdriven-bg-white);
    border-radius: 15px;
    box-shadow: var(--xdriven-shadow);
    margin-bottom: 1.5rem;
    border: 1px solid rgba(102, 126, 234, 0.1);
    overflow: hidden;
}

.form-card-modern .card-header {
    background: linear-gradient(135deg, var(--xdriven-bg-light) 0%, #edf2f7 100%);
    border-bottom: 2px solid var(--xdriven-border);
    padding: 1.25rem 1.5rem;
    font-weight: 600;
    color: var(--xdriven-text-dark);
}

.form-card-modern .card-body {
    padding: 2rem;
}

.form-label-modern {
    font-weight: 600;
    color: var(--xdriven-text-dark);
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-control-modern {
    border-radius: 10px;
    border: 2px solid var(--xdriven-border);
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
    font-size: 1rem;
}

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

.btn-submit-modern {
    background: var(--xdriven-gradient);
    border: none;
    color: white;
    padding: 0.75rem 2rem;
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.btn-submit-modern:hover {
    background: var(--xdriven-gradient-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
    color: white;
}

/* Tables */
.table-modern {
    background: var(--xdriven-bg-white);
}

.table-modern thead {
    background: var(--xdriven-bg-light);
}

.table-modern thead th {
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
    color: var(--xdriven-text-medium);
    border: none;
    padding: 1rem;
}

.table-modern tbody tr {
    transition: all 0.3s ease;
    border-bottom: 1px solid var(--xdriven-border);
}

.table-modern tbody tr:hover {
    background: var(--xdriven-bg-light);
    transform: scale(1.01);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

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

/* Filter Cards */
.filter-card {
    background: var(--xdriven-bg-white);
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: var(--xdriven-shadow);
    margin-bottom: 2rem;
    border: 1px solid rgba(102, 126, 234, 0.1);
}

/* Tab Buttons */
.tab-button {
    border-radius: 10px;
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.tab-button.active {
    background: var(--xdriven-gradient);
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.tab-button:not(.active) {
    background: white;
    color: var(--xdriven-primary);
    border-color: var(--xdriven-primary);
}

.tab-button:not(.active):hover {
    background: rgba(102, 126, 234, 0.1);
    border-color: var(--xdriven-secondary);
    color: var(--xdriven-secondary);
}

/* Dropdowns */
.action-dropdown .dropdown-menu {
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(102, 126, 234, 0.15);
    border: 1px solid rgba(102, 126, 234, 0.1);
    padding: 0.5rem;
    margin-top: 0.5rem;
}

.action-dropdown .dropdown-item {
    border-radius: 8px;
    padding: 0.75rem 1rem;
    transition: all 0.2s ease;
    margin-bottom: 0.25rem;
}

.action-dropdown .dropdown-item:hover {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    transform: translateX(5px);
    color: var(--xdriven-primary);
}

.action-dropdown .dropdown-item i {
    width: 20px;
    text-align: center;
}

/* Links */
.link-modern {
    color: var(--xdriven-primary);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.link-modern:hover {
    color: var(--xdriven-secondary);
    text-decoration: none;
    transform: translateX(5px);
}

/* Info Boxes */
.info-box {
    background: var(--xdriven-bg-light);
    border-left: 4px solid var(--xdriven-primary);
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.info-box i {
    color: var(--xdriven-primary);
    margin-right: 0.5rem;
}

/* Form Check */
.form-check-input:checked {
    background-color: var(--xdriven-primary);
    border-color: var(--xdriven-primary);
}

/* Empty States */
.empty-state {
    text-align: center;
    padding: 3rem;
    color: var(--xdriven-text-light);
}

.empty-state i {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

/* Responsive */
@media (max-width: 768px) {
    .page-header-modern {
        padding: 1.5rem;
    }
    
    .card-body-modern {
        padding: 1rem;
    }
    
    .stats-card {
        margin-bottom: 1rem;
    }
}
