/* 
   Simobot Studio - Unified Soft UI Theme Stylesheet
   Pure implementation of student_tracking.html design system.
*/

body {
    font-family: 'Outfit', sans-serif;
    background: linear-gradient(135deg, #FFF5F5 0%, #FFFBEB 35%, #F0FDF4 70%, #EFF6FF 100%);
    background-attachment: fixed;
    min-height: 100vh;
}

/* Custom Soft Shadow Card */
.soft-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.7);
    box-shadow: 0 20px 50px -12px rgba(100, 116, 139, 0.08);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.soft-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 30px 70px -10px rgba(100, 116, 139, 0.12);
    border-color: rgba(255, 255, 255, 0.9);
}

/* Sidebar Styling */
.sidebar-item {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.sidebar-item.active {
    background: linear-gradient(135deg, #4F46E5 0%, #6366F1 100%);
    color: #ffffff !important;
    box-shadow: 0 10px 25px -5px rgba(99, 102, 241, 0.4);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Animations */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.animate-slide-up {
    animation: slideInUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
.animate-fade-in {
    animation: fadeIn 0.4s ease-out forwards;
}

/* Glassmorphism elements */
.glass-panel {
    background: rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.4);
}

/* Input styling */
.soft-input {
    background: rgba(255, 255, 255, 0.8);
    border: 1.5px solid rgba(226, 232, 240, 0.8);
    border-radius: 16px;
    padding: 0.85rem 1.15rem;
    font-size: 0.85rem;
    color: #1e293b;
    transition: all 0.3s ease;
}
.soft-input::placeholder {
    color: #94a3b8;
}
.soft-input:focus {
    background: #ffffff;
    border-color: #6366F1;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
    outline: none;
}

/* Custom Checkbox */
.checkbox-container input:checked ~ .checkmark {
    background-color: #10B981;
    border-color: #10B981;
}
.checkbox-container input:checked ~ .checkmark:after {
    display: block;
}

/* Toast notification */
.toast {
    transform: translateY(100px);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.toast.show {
    transform: translateY(0);
}

/* Table styles */
.soft-table {
    width: 100%;
    border-collapse: collapse;
}

.soft-table th {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #94a3b8;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #f1f5f9;
    letter-spacing: 0.05em;
}

.soft-table td {
    padding: 1.1rem 1.25rem;
    border-bottom: 1px solid #f8fafc;
    color: #334155;
    font-size: 0.85rem;
    font-weight: 500;
}

.soft-table tr:hover td {
    background-color: rgba(99, 102, 241, 0.02);
}

/* Badges */
.soft-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.35rem 0.75rem;
    font-size: 0.7rem;
    font-weight: 700;
    border-radius: 8px;
    letter-spacing: 0.02em;
}

.soft-badge-success { background-color: #E8FFF3; color: #50CD89; }
.soft-badge-primary { background-color: #F1FAFF; color: #1B84FF; }
.soft-badge-warning { background-color: #FFF8DD; color: #F1BC06; }
.soft-badge-danger { background-color: #FFF5F5; color: #F1416C; }
.soft-badge-info { background-color: #F8F5FF; color: #7239EA; }

/* Buttons */
.soft-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    border-radius: 16px;
    padding: 0.8rem 1.6rem;
    font-size: 0.8rem;
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
}

.soft-btn-primary {
    background: linear-gradient(135deg, #4F46E5 0%, #6366F1 100%);
    color: #ffffff;
    box-shadow: 0 10px 20px -5px rgba(99, 102, 241, 0.3);
}

.soft-btn-primary:hover {
    box-shadow: 0 12px 24px -3px rgba(99, 102, 241, 0.4);
    transform: translateY(-1px);
}

.soft-btn-danger {
    background: #f43f5e;
    color: #ffffff;
    box-shadow: 0 10px 20px -5px rgba(244, 63, 94, 0.3);
}

.soft-btn-danger:hover {
    box-shadow: 0 12px 24px -3px rgba(244, 63, 94, 0.4);
    transform: translateY(-1px);
}

.soft-btn-light {
    background: #f1f5f9;
    color: #475569;
}

.soft-btn-light:hover {
    background: #e2e8f0;
}

.soft-btn-light-danger {
    background: #FFF5F5;
    color: #F1416C;
}

.soft-btn-light-danger:hover {
    background: #FFE8E8;
    color: #D9214E;
}

/* Tailwind CDN fallback utilities used by the admin views */
.text-indigo-650 { color: #4f46e5; }
.hover\:text-indigo-755:hover { color: #3730a3; }
.bg-indigo-650 { background-color: #4f46e5; }
.hover\:bg-indigo-750:hover { background-color: #4338ca; }
.text-purple-605 { color: #7c3aed; }
.text-slate-350 { color: #cbd5e1; }
.border-indigo-150\/50 { border-color: rgba(199, 210, 254, 0.5); }

.soft-table-container {
    width: 100%;
    overflow-x: auto;
}

.stat-icon-wrapper {
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}
