/* Trendy Portal Design Overrides */
:root {
    --primary-gradient: linear-gradient(135deg, #0c457a 0%, #176bbd 100%);
    --card-shadow: 0 10px 30px 0 rgba(0, 0, 0, 0.05);
    --hover-shadow: 0 15px 35px 0 rgba(0, 0, 0, 0.1);
    --border-radius-xl: 1rem;
    --border-radius-lg: 0.75rem;
    --border-radius-md: 0.5rem;
    --glass-bg: rgba(255, 255, 255, 0.8);
    --glass-border: rgba(255, 255, 255, 0.2);
}

body {
    background-color: #f8fafc;
    font-family: 'Inter', sans-serif;
    color: #334155;
}

/* Header Modernization */
.app-header {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.header-link {
    color: #475569 !important;
    transition: all 0.2s ease;
}

.header-link:hover {
    color: #0c457a !important;
    background-color: rgba(12, 69, 122, 0.05) !important;
}

/* Sidebar Modernization */
.app-sidebar {
    background: #0c457a !important;
    border-right: none !important;
    box-shadow: 4px 0 15px rgba(0, 0, 0, 0.05);
}

.side-menu__item {
    border-radius: var(--border-radius-md);
    margin: 4px 12px;
    padding: 10px 16px !important;
    transition: all 0.3s ease !important;
    color: rgba(255, 255, 255, 0.7) !important;
}

.side-menu__item:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    color: #fff !important;
    transform: translateX(5px);
}

.side-menu__item.active {
    background: var(--primary-gradient) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    color: #fff !important;
    font-weight: 600;
}

.side-menu__icon {
    font-size: 1.25rem !important;
    margin-right: 12px !important;
}

.slide__category {
    padding: 24px 24px 8px !important;
    color: rgba(255, 255, 255, 0.4) !important;
    text-transform: uppercase;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.1em;
}

/* Card Modernization */
.custom-card {
    border: none !important;
    border-radius: var(--border-radius-xl) !important;
    box-shadow: var(--card-shadow) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: #ffffff;
    overflow: hidden;
}

.custom-card:hover {
    box-shadow: var(--hover-shadow) !important;
    transform: translateY(-4px);
}

.card-header {
    background-color: transparent !important;
    border-bottom: 1px solid #f1f5f9 !important;
    padding: 1.25rem 1.5rem !important;
}

.card-title {
    font-size: 1.1rem !important;
    font-weight: 700 !important;
    color: #1e293b !important;
}

.card-body {
    padding: 1.5rem !important;
}

/* Button Modernization */
.btn-primary {
    background: var(--primary-gradient) !important;
    border: none !important;
    border-radius: var(--border-radius-md) !important;
    padding: 10px 24px !important;
    font-weight: 600 !important;
    box-shadow: 0 4px 6px rgba(12, 69, 122, 0.2);
    transition: all 0.3s ease !important;
}

.btn-sm {
    padding: 6px 12px !important;
    font-size: 0.75rem !important;
    border-radius: 6px !important;
}

.btn-group .btn {
    margin: 0 2px;
    border-radius: 6px !important;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(12, 69, 122, 0.3);
}

.btn-wave {
    overflow: hidden;
    position: relative;
}

/* Modal Modernization */
.modal-content {
    border: none !important;
    border-radius: var(--border-radius-xl) !important;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25) !important;
}

.modal-header {
    border-bottom: 1px solid #f1f5f9 !important;
    padding: 1.5rem !important;
}

.modal-footer {
    border-top: 1px solid #f1f5f9 !important;
    padding: 1.25rem 1.5rem !important;
}

/* Form Controls */
.form-control {
    border-radius: var(--border-radius-md) !important;
    border: 1px solid #e2e8f0 !important;
    padding: 0.6rem 1rem !important;
    transition: all 0.2s ease;
}

.form-control:focus {
    border-color: #0c457a !important;
    box-shadow: 0 0 0 4px rgba(12, 69, 122, 0.1) !important;
}

/* Table / GridJS Customization */
.gridjs-container {
    padding: 0 !important;
    color: #475569 !important;
}

.gridjs-table {
    background-color: transparent !important;
}

.gridjs-th {
    background-color: #f8fafc !important;
    color: #64748b !important;
    text-transform: uppercase !important;
    font-size: 0.75rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.05em !important;
    padding: 12px 24px !important;
    border-bottom: 2px solid #f1f5f9 !important;
}

.gridjs-td {
    padding: 16px 24px !important;
    border-bottom: 1px solid #f1f5f9 !important;
}

.gridjs-tr:hover {
    background-color: #f8fafc !important;
}

/* Badges */
.badge {
    padding: 0.5em 0.8em !important;
    font-weight: 600 !important;
    border-radius: 6px !important;
}

.bg-primary {
    background: var(--primary-gradient) !important;
}

.bg-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
}

.bg-danger {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%) !important;
}

.bg-warning {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important;
}

.bg-info {
    background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%) !important;
}

/* Loader */
.spinner-border {
    width: 3rem;
    height: 3rem;
}

/* Main Content Area */
.main-content {
    padding-top: 2rem !important;
}

.page-header-breadcrumb {
    margin-bottom: 2rem !important;
}

.page-title {
    font-size: 1.5rem !important;
    font-weight: 800 !important;
    color: #0f172a !important;
}

/* Logo Styling */
.header-logo span {
    letter-spacing: -0.02em;
    background: linear-gradient(to right, #ffffff, #94a3b8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.main-sidebar-header {
    padding: 1.5rem !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}
