/* Marc & Özlem - Kursverwaltung Custom Styles */

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Body minimum height for sticky footer */
body {
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

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

::-webkit-scrollbar-track {
    background: #11111b;
}

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

::-webkit-scrollbar-thumb:hover {
    background: #585b70;
}

/* Card hover effects */
.card-hover {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card-hover:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* Status badge animations */
.status-badge {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

/* Gradient text */
.gradient-text {
    background: linear-gradient(135deg, #d946ef, #a855f7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Loading spinner */
.spinner {
    border: 3px solid rgba(217, 70, 239, 0.2);
    border-top: 3px solid #d946ef;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Progress bar */
.progress-bar {
    background: linear-gradient(90deg, #d946ef, #a855f7);
    transition: width 0.5s ease;
    border-radius: 999px;
}

/* Form focus styles */
input:focus, select:focus, textarea:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(217, 70, 239, 0.5);
}

/* Mobile responsive table */
@media (max-width: 640px) {
    .responsive-table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}

/* Toast notification */
.toast {
    animation: slideIn 0.3s ease, fadeOut 0.3s ease 2.7s;
}

@keyframes slideIn {
    from { transform: translateY(-20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

/* ============================================================
   Light Theme Overrides
   ============================================================ */

body {
    background: #f5f7fb !important;
    color: #1f2937 !important;
}

.bg-dark-900 {
    background-color: #f5f7fb !important;
}

.bg-dark-800 {
    background-color: #ffffff !important;
}

.bg-dark-700 {
    background-color: #eef2ff !important;
}

.text-white,
.text-gray-100 {
    color: #0f172a !important;
}

.text-gray-400 {
    color: #475569 !important;
}

.text-gray-500 {
    color: #64748b !important;
}

.text-gray-300 {
    color: #334155 !important;
}

.border-gray-700\/50,
.border-gray-700\/30,
.border-gray-600,
.border-gray-600\/50 {
    border-color: #dbe3ee !important;
}

.bg-gray-700\/50,
.bg-gray-700 {
    background-color: #e8eef8 !important;
}

.bg-dark-900\/30,
.bg-dark-900\/40,
.bg-dark-900\/50 {
    background-color: #f8fafc !important;
}

footer.bg-dark-800,
nav.bg-dark-800 {
    background: #ffffff !important;
}
