/* Digital Fablab Custom Styles */

:root {
    --primary-color: #2563eb;
    --secondary-color: #64748b;
    --success-color: #16a34a;
    --warning-color: #d97706;
    --danger-color: #dc2626;
    --info-color: #0891b2;
    --light-color: #f8fafc;
    --dark-color: #1e293b;
    --fablab-gradient: linear-gradient(135deg, #2563eb, #1d4ed8);
}

/* Global Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #334155;
}

/* Navbar above announcement strip (dropdown must appear on top of yellow strip) */
.navbar-top {
    z-index: 1050;
    position: relative;
}
.navbar-top .dropdown-menu {
    z-index: 1060;
}

.navbar-brand {
    font-weight: 600;
    font-size: 1.5rem;
}

/* Hero Section */
.hero-section {
    background: var(--fablab-gradient);
    color: white;
    padding: 4rem 0;
    margin-bottom: 3rem;
}

.hero-section h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.hero-section p {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* Cards */
.card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.15), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.card-img-top {
    border-radius: 12px 12px 0 0;
    height: 200px;
    object-fit: cover;
}

/* Project Cards */
.project-card {
    background: linear-gradient(45deg, #f0f9ff, #e0f2fe);
    border-left: 4px solid var(--primary-color);
}

.article-card {
    background: linear-gradient(45deg, #f0fdf4, #dcfce7);
    border-left: 4px solid var(--success-color);
}

.info-card {
    background: linear-gradient(45deg, #fffbeb, #fef3c7);
    border-left: 4px solid var(--warning-color);
}

/* Buttons */
.btn {
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.btn-primary {
    background: var(--fablab-gradient);
    border: none;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #1d4ed8, #1e40af);
    transform: translateY(-1px);
}

/* Dashboard Cards */
.dashboard-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.stat-card {
    text-align: center;
    background: var(--fablab-gradient);
    color: white;
    border-radius: 12px;
    padding: 2rem 1rem;
}

.stat-card .stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.stat-card .stat-label {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Tables */
.table {
    border-radius: 8px;
    overflow: hidden;
}

.table thead th {
    background-color: var(--light-color);
    border: none;
    font-weight: 600;
    color: var(--dark-color);
}

.table tbody tr:hover {
    background-color: rgba(37, 99, 235, 0.05);
}

/* Status Badges */
.status-present { background-color: var(--success-color) !important; }
.status-absent { background-color: var(--danger-color) !important; }
.status-late { background-color: var(--warning-color) !important; }
.status-excused { background-color: var(--info-color) !important; }

.status-submitted { background-color: var(--info-color) !important; }
.status-in-review { background-color: var(--warning-color) !important; }
.status-approved { background-color: var(--success-color) !important; }
.status-rejected { background-color: var(--danger-color) !important; }

.status-active { background-color: var(--success-color) !important; }
.status-completed { background-color: var(--primary-color) !important; }
.status-dropped { background-color: var(--secondary-color) !important; }

/* Progress Bars */
.progress {
    height: 8px;
    border-radius: 4px;
}

.progress-bar {
    border-radius: 4px;
}

/* Forms */
.form-control, .form-select {
    border-radius: 8px;
    border: 1px solid #d1d5db;
    transition: all 0.2s ease;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.25);
}

/* Login Page */
.login-container {
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-card {
    max-width: 400px;
    width: 100%;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.login-header {
    text-align: center;
    margin-bottom: 2rem;
}

.login-header h2 {
    color: var(--dark-color);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.login-type-buttons {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.login-type-btn {
    padding: 1.5rem 1rem;
    border: 2px solid #e5e7eb;
    background: white;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 140px;
}

.login-type-btn:hover {
    border-color: var(--primary-color);
    background: rgba(37, 99, 235, 0.05);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.15);
}

.login-type-btn.active {
    border-color: var(--primary-color);
    background: rgba(37, 99, 235, 0.1);
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.2);
}

.login-icon-wrapper {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(37, 99, 235, 0.1);
    border-radius: 50%;
    margin-bottom: 0.5rem;
}

.login-type-btn i {
    font-size: 2rem;
    color: var(--primary-color);
}

.login-type-btn h6 {
    margin: 0;
    color: var(--dark-color);
    font-weight: 600;
    font-size: 1rem;
}

.login-type-btn small {
    font-size: 0.85rem;
    line-height: 1.3;
    word-wrap: break-word;
}

@media (max-width: 768px) {
    .login-type-buttons {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .login-type-btn {
        min-height: 100px;
        padding: 1rem;
    }
}

/* Archive Pages */
.year-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    border: 1px solid #e5e7eb;
}

.year-card:hover {
    color: inherit;
    transform: translateY(-4px);
    box-shadow: 0 8px 25px -8px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-color);
}

.year-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.module-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
}

.module-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px -4px rgba(0, 0, 0, 0.1);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .login-type-buttons {
        flex-direction: column;
    }
    
    .stat-card .stat-number {
        font-size: 2rem;
    }
    
    .table-responsive {
        font-size: 0.9rem;
    }
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.spinner-border-sm {
    width: 1rem;
    height: 1rem;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

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

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--secondary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

