/* Premium Design System */
:root {
    --primary-color: #6C63FF;
    --secondary-color: #FF6584;
    --accent-color: #4ECDC4;
    --background: #F7F7FF;
    --surface: #FFFFFF;
    --text-primary: #1A1A2E;
    --text-secondary: #4A4A4A;
    --text-muted: #9E9E9E;
    --success: #4CAF50;
    --error: #FF5252;
    --shadow: rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--background);
    color: var(--text-primary);
    line-height: 1.6;
}

/* Gradient Backgrounds */
.gradient-primary {
    background: linear-gradient(135deg, #6C63FF 0%, #8B7FFF 100%);
}

.gradient-secondary {
    background: linear-gradient(135deg, #FF6584 0%, #FF8BA7 100%);
}

.gradient-accent {
    background: linear-gradient(135deg, #4ECDC4 0%, #44A08D 100%);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Card Styles */
.card {
    background: var(--surface);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px var(--shadow);
    margin-bottom: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(108, 99, 255, 0.15);
}

.card-header {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 20px;
    color: var(--text-primary);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, #6C63FF 0%, #8B7FFF 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(108, 99, 255, 0.3);
}

.btn-secondary {
    background: linear-gradient(135deg, #FF6584 0%, #FF8BA7 100%);
    color: white;
}

.btn-success {
    background: var(--success);
    color: white;
}

.btn-danger {
    background: var(--error);
    color: white;
}

/* Forms */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-primary);
}

.form-control {
    width: 100%;
    padding: 14px 20px;
    border: none;
    border-radius: 12px;
    background: var(--background);
    font-size: 16px;
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(108, 99, 255, 0.2);
}

select.form-control {
    cursor: pointer;
}

/* Multi Select Dropdown */
.multi-select-dropdown {
    position: relative;
    width: 100%;
}

.select-button {
    width: 100%;
    padding: 14px 20px;
    border: none;
    border-radius: 12px;
    background: var(--background);
    font-size: 16px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
    color: var(--text-muted);
}

.select-button.has-value {
    color: var(--text-primary);
}

.select-button:hover {
    box-shadow: 0 0 0 3px rgba(108, 99, 255, 0.2);
}

.select-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--surface);
    border-radius: 12px;
    box-shadow: 0 10px 30px var(--shadow);
    margin-top: 10px;
    padding: 10px;
    z-index: 1000;
    display: none;
    max-height: 250px;
    overflow-y: auto;
}

.multi-select-dropdown.active .select-dropdown {
    display: block;
}

.select-option {
    display: flex;
    align-items: center;
    padding: 10px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s;
}

.select-option:hover {
    background: var(--background);
}

.select-option input[type="checkbox"] {
    margin-right: 10px;
    width: 18px;
    height: 18px;
    accent-color: var(--primary-color);
}

.select-arrow {
    transition: transform 0.3s ease;
}

.multi-select-dropdown.active .select-arrow {
    transform: rotate(180deg);
}

/* Navigation */
.navbar {
    background: var(--surface);
    padding: 20px 0;
    box-shadow: 0 2px 10px var(--shadow);
    margin-bottom: 30px;
}

.navbar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar-brand {
    font-size: 24px;
    font-weight: bold;
    background: linear-gradient(135deg, #6C63FF 0%, #FF6584 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.navbar-nav {
    display: flex;
    gap: 20px;
    list-style: none;
}

.nav-link {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--primary-color);
}

/* Auth Pages */
.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #6C63FF 0%, #4ECDC4 100%);
    padding: 20px;
}

.auth-card {
    background: var(--surface);
    border-radius: 25px;
    padding: 40px;
    max-width: 450px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.auth-logo {
    width: 80px;
    height: 80px;
    margin: 0 auto 30px;
    background: linear-gradient(135deg, #6C63FF 0%, #8B7FFF 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    color: white;
}

.auth-title {
    text-align: center;
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 10px;
}

.auth-subtitle {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 30px;
}

/* Dashboard */
.dashboard-header {
    background: linear-gradient(135deg, #6C63FF 0%, #8B7FFF 100%);
    color: white;
    padding: 40px;
    border-radius: 20px;
    margin-bottom: 30px;
}

.dashboard-title {
    font-size: 32px;
    font-weight: bold;
    margin-bottom: 10px;
}

.dashboard-subtitle {
    font-size: 18px;
    opacity: 0.9;
}

/* Grid */
.grid {
    display: grid;
    gap: 20px;
}

.grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

/* Action Cards */
.action-card {
    background: linear-gradient(135deg, #6C63FF 0%, #8B7FFF 100%);
    color: white;
    padding: 30px;
    border-radius: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: block;
}

.action-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(108, 99, 255, 0.3);
}

.action-card-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.action-card-title {
    font-size: 20px;
    font-weight: bold;
}

/* List Items */
.list-item {
    background: var(--surface);
    padding: 20px;
    border-radius: 15px;
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.list-item:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 20px var(--shadow);
}

.list-item-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 5px;
}

.list-item-meta {
    font-size: 14px;
    color: var(--text-muted);
}

/* Badges */
.badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.badge-primary {
    background: var(--primary-color);
    color: white;
}

.badge-success {
    background: var(--success);
    color: white;
}

.badge-danger {
    background: var(--error);
    color: white;
}

/* Alerts */
.alert {
    padding: 15px 20px;
    border-radius: 12px;
    margin-bottom: 20px;
}

.alert-success {
    background: #E8F5E9;
    color: #2E7D32;
    border-left: 4px solid var(--success);
}

.alert-error {
    background: #FFEBEE;
    color: #C62828;
    border-left: 4px solid var(--error);
}

/* Responsive */
@media (max-width: 768px) {
    .auth-card {
        padding: 30px 20px;
    }

    .dashboard-header {
        padding: 30px 20px;
    }

    .grid-2,
    .grid-3 {
        grid-template-columns: 1fr;
    }
}

/* Validation */
.text-danger {
    color: var(--error);
    font-size: 0.875em;
    margin-top: 5px;
    display: block;
}

.field-validation-error {
    color: var(--error);
}

.input-validation-error {
    border: 1px solid var(--error) !important;
}

/* Modal Styles */
.modal {
    display: none;
    /* Hidden by default */
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
    align-items: center;
    justify-content: center;
}

.modal.show {
    display: flex;
}

.modal-dialog {
    width: 100%;
    max-width: 500px;
    margin: 20px;
}

.modal-content {
    background-color: var(--surface);
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.3);
    position: relative;
    max-height: 80vh;
    overflow-y: auto;
}

.btn-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: var(--text-muted);
}