/* UI Components */

/* Cards */
.card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    padding: var(--space-6);
    box-shadow: var(--shadow-lg);
    backdrop-filter: var(--glass-blur);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.card:hover {
    box-shadow: 0 15px 30px -5px rgba(0, 0, 0, 0.6);
}

/* Badges */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
}

.badge-success { color: var(--status-success); background: var(--status-success-bg); border: 1px solid rgba(16, 185, 129, 0.2); }
.badge-warning { color: var(--status-warning); background: var(--status-warning-bg); border: 1px solid rgba(245, 158, 11, 0.2); }
.badge-danger { color: var(--status-danger); background: var(--status-danger-bg); border: 1px solid rgba(239, 68, 68, 0.2); }
.badge-info { color: var(--status-info); background: var(--status-info-bg); border: 1px solid rgba(59, 130, 246, 0.2); }
.badge-neutral { color: var(--text-secondary); background: rgba(255, 255, 255, 0.05); border: 1px solid var(--glass-border); }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: 0.5rem 1.25rem;
    border-radius: var(--radius-lg);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all var(--transition-fast);
    border: none;
    outline: none;
}

.btn-primary {
    background: var(--accent-gold);
    color: var(--bg-dark);
    box-shadow: 0 4px 10px rgba(212, 168, 83, 0.3);
}

.btn-primary:hover {
    background: var(--accent-gold-hover);
    transform: translateY(-1px);
    box-shadow: 0 6px 15px rgba(212, 168, 83, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    border: 1px solid var(--glass-border);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.btn-icon {
    padding: 0.5rem;
    border-radius: var(--radius-md);
}

/* Forms */
.form-group {
    margin-bottom: var(--space-4);
}

.form-label {
    display: block;
    margin-bottom: var(--space-2);
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-control:focus {
    outline: none;
    border-color: var(--accent-gold);
    box-shadow: 0 0 0 3px rgba(212, 168, 83, 0.2);
}

/* Search Bar */
.search-bar {
    position: relative;
    width: 300px;
}

.search-bar .nav-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

.search-bar input {
    width: 100%;
    padding: 0.5rem 1rem 0.5rem 2.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-full);
    color: var(--text-primary);
}

.search-bar input:focus {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    outline: none;
}

/* Progress Bar */
.progress-container {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-gold), #fcd34d);
    border-radius: var(--radius-full);
    transition: width 1s ease-in-out;
}

/* Modals / Drawers */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(4px);
    z-index: 1000;
    display: flex;
    justify-content: flex-end; /* Drawer style */
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-normal);
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.drawer {
    width: 100%;
    max-width: 600px;
    height: 100%;
    background: var(--bg-surface);
    border-left: 1px solid var(--glass-border);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
    transform: translateX(100%);
    transition: transform var(--transition-normal);
    display: flex;
    flex-direction: column;
}

.modal-overlay.active .drawer {
    transform: translateX(0);
}

.drawer-header {
    padding: var(--space-6);
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.drawer-body {
    padding: var(--space-6);
    flex: 1;
    overflow-y: auto;
}

.drawer-footer {
    padding: var(--space-6);
    border-top: 1px solid var(--glass-border);
    display: flex;
    justify-content: flex-end;
    gap: var(--space-3);
}

/* Horizontal Scroll for Mini Cards */
.horizontal-scroll {
    scrollbar-width: thin;
    scrollbar-color: var(--bg-surface-light) transparent;
}

.horizontal-scroll::-webkit-scrollbar {
    height: 8px;
}

.horizontal-scroll::-webkit-scrollbar-track {
    background: transparent;
}

.horizontal-scroll::-webkit-scrollbar-thumb {
    background: var(--bg-surface-light);
    border-radius: var(--radius-full);
}

.horizontal-scroll::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}
