:root {
    --sidebar-width: 260px;
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --card-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    --hover-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: #f3f4f6;
    margin: 0;
    padding: 0;
    color: #4b5563;
}

/* Login Page Specifics */
body.login-page {
    background: var(--primary-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
}

.login-card {
    width: 100%;
    max-width: 900px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
}

.login-card h2 {
    font-weight: 700;
    color: #333;
    margin-bottom: 30px;
}

/* Common Form Styles */
.form-control {
    border-radius: 8px;
    padding: 12px;
    border: 1px solid #ddd;
}

.form-control:focus {
    box-shadow: 0 0 0 3px rgba(118, 75, 162, 0.2);
    border-color: #764ba2;
}

.input-group-text {
    border-radius: 8px 0 0 8px;
    background-color: #f8f9fa;
    border: 1px solid #ddd;
    border-right: none;
}

.input-group .form-control {
    border-radius: 0 8px 8px 0;
    border-left: none;
}

/* Button Styles */
.btn {
    border-radius: 8px;
    padding: 8px 16px;
    font-weight: 500;
    transition: all 0.3s;
}

.btn-primary {
    background: var(--primary-gradient);
    border: none;
}

.btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-1px);
    box-shadow: 0 5px 15px rgba(118, 75, 162, 0.4);
}

.btn-outline-secondary {
    border-radius: 0 8px 8px 0;
    border: 1px solid #ddd;
    border-left: none;
}

.btn-outline-secondary:hover {
    background-color: #f1f1f1;
    color: #333;
    border-color: #ddd;
}

/* Admin Panel Layout */
.wrapper {
    display: flex;
    width: 100%;
    align-items: stretch;
}

.sidebar {
    min-width: var(--sidebar-width);
    max-width: var(--sidebar-width);
    background: var(--primary-gradient);
    color: #fff;
    min-height: 100vh;
    transition: all 0.3s;
    box-shadow: 4px 0 10px rgba(0, 0, 0, 0.1);
}

.sidebar h3 {
    font-weight: 700;
    padding: 20px;
    margin: 0;
    background: rgba(0, 0, 0, 0.1);
    font-size: 1.5rem;
    letter-spacing: 1px;
}

.sidebar a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    padding: 15px 25px;
    display: block;
    font-weight: 500;
    border-left: 4px solid transparent;
    transition: all 0.3s;
}

.sidebar a:hover,
.sidebar a.active {
    color: #fff;
    background-color: rgba(255, 255, 255, 0.1);
    border-left-color: #fff;
}

.sidebar i {
    font-size: 1.1rem;
    width: 25px;
    text-align: center;
}

.content {
    flex: 1;
    min-width: 0;
    padding: 30px;
    min-height: 100vh;
    transition: all 0.3s;
}

@media (max-width: 768px) {
    .sidebar {
        margin-left: calc(var(--sidebar-width) * -1);
        position: fixed;
        z-index: 1000;
        height: 100%;
    }

    .sidebar.active {
        margin-left: 0;
    }
}

/* Card Styling */
.card {
    border: none;
    border-radius: 12px;
    box-shadow: var(--card-shadow);
    transition: transform 0.3s, box-shadow 0.3s;
    background: #fff;
    margin-bottom: 20px;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: var(--hover-shadow);
}

.card-header {
    background-color: #fff;
    border-bottom: 1px solid #f0f0f0;
    padding: 20px 25px;
    border-radius: 12px 12px 0 0 !important;
    font-weight: 600;
}

.card-body {
    padding: 25px;
}

/* Table Styling */
.table {
    margin-bottom: 0;
    border-collapse: separate;
    border-spacing: 0;
}

.table thead th {
    border-bottom: 2px solid #e5e7eb;
    color: #6b7280;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    padding: 16px 24px;
    background-color: #f9fafb;
}

.table td {
    vertical-align: middle;
    color: #374151;
    border-top: 1px solid #e5e7eb;
    padding: 16px 24px;
}

.table tbody tr:hover {
    background-color: #f9fafb;
}

/* DataTables Customization */
.dataTables_wrapper .dataTables_length select {
    border-radius: 6px;
    border: 1px solid #d1d5db;
    padding: 4px 24px 4px 8px;
}

.dataTables_wrapper .dataTables_filter input {
    border-radius: 6px;
    border: 1px solid #d1d5db;
    padding: 6px 12px;
    margin-left: 8px;
}

.dataTables_wrapper .dataTables_filter input:focus {
    border-color: #764ba2;
    outline: none;
    box-shadow: 0 0 0 3px rgba(118, 75, 162, 0.1);
}

.dataTables_wrapper .page-item.active .page-link {
    background: var(--primary-gradient);
    border-color: transparent;
    color: #fff !important;
}

.dataTables_wrapper .page-link {
    border-radius: 6px;
    margin: 0 2px;
    color: #4b5563;
    border: 1px solid #e5e7eb;
}

.dataTables_wrapper .page-link:hover {
    background-color: #f3f4f6;
    color: #111827;
}

.dataTables_wrapper .row {
    margin-top: 1rem;
    margin-bottom: 1rem;
    align-items: center;
}

/* CKEditor Height */
.ck-editor__editable {
    min-height: 300px;
}