/* Teaching Check-in System - Main Styles */

:root {
    --primary-color: #667eea;
    --secondary-color: #764ba2;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #17a2b8;
    --dark-color: #343a40;
    --light-color: #f8f9fa;
    --white: #ffffff;
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    --border-radius: 15px;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Remove default list styles */
ul, ol {
    list-style: none;
    padding: 0;
    margin: 0;
}

li {
    list-style: none;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    min-height: 100vh;
    color: var(--dark-color);
}

/* Container Styles */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.container-sm {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
}

/* Card Styles */
.card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: var(--border-radius);
    padding: 25px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    margin-bottom: 20px;
}

.card:hover {
    transform: translateY(-5px);
}

.card-header {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius);
    padding: 30px;
    text-align: center;
    margin-bottom: 30px;
    color: white;
}

.card-transparent {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    color: white;
}

/* Typography */
h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

h2 {
    font-size: 2em;
    margin-bottom: 15px;
    color: var(--primary-color);
}

h3 {
    font-size: 1.5em;
    margin-bottom: 15px;
    color: var(--dark-color);
}

p {
    font-size: 1.1em;
    line-height: 1.6;
    margin-bottom: 15px;
}

/* Button Styles */
.btn {
    display: inline-block;
    padding: 12px 24px;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-size: 1em;
}

.btn:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.btn-primary {
    background: var(--primary-color);
}

.btn-success {
    background: var(--success-color);
}

.btn-danger {
    background: var(--danger-color);
}

.btn-warning {
    background: var(--warning-color);
}

.btn-info {
    background: var(--info-color);
}

.btn-light {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-light:hover {
    background: rgba(255, 255, 255, 0.3);
    color: white;
}

.btn-block {
    width: 100%;
    text-align: center;
}

/* Form Styles */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: var(--dark-color);
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1em;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 10px rgba(102, 126, 234, 0.3);
}

.form-control-white {
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: var(--dark-color);
}

.form-control-white:focus {
    background: white;
    border-color: var(--primary-color);
}

/* Grid System */
.row {
    display: flex;
    flex-wrap: wrap;
    margin: -10px;
}

.col {
    flex: 1;
    padding: 10px;
}

.col-2 {
    flex: 0 0 50%;
    padding: 10px;
}

.col-3 {
    flex: 0 0 33.333%;
    padding: 10px;
}

.col-4 {
    flex: 0 0 25%;
    padding: 10px;
}

/* Navigation */
.nav {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 30px;
}

.nav-link {
    background: rgba(255, 255, 255, 0.9);
    color: var(--dark-color);
    text-decoration: none;
    padding: 15px 20px;
    border-radius: 10px;
    text-align: center;
    font-weight: 600;
    transition: var(--transition);
    border: 2px solid transparent;
    flex: 1;
    min-width: 200px;
}

.nav-link:hover {
    background: white;
    border-color: var(--primary-color);
    transform: translateY(-2px);
    color: var(--primary-color);
}

/* Stats */
.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: var(--border-radius);
    padding: 25px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-value {
    font-size: 2.5em;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.stat-label {
    font-size: 1.1em;
    color: var(--dark-color);
    margin-bottom: 5px;
}

.stat-description {
    font-size: 0.9em;
    color: #666;
}

/* Alert Styles */
.alert {
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid transparent;
}

.alert-success {
    background: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
}

.alert-danger {
    background: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
}

.alert-warning {
    background: #fff3cd;
    border-color: #ffeaa7;
    color: #856404;
}

.alert-info {
    background: #d1ecf1;
    border-color: #bee5eb;
    color: #0c5460;
}

/* Table Styles */
.table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.table th,
.table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #e9ecef;
}

.table th {
    background: var(--primary-color);
    color: white;
    font-weight: 600;
}

.table tbody tr:hover {
    background: #f8f9fa;
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 10px; }
.mb-2 { margin-bottom: 20px; }
.mb-3 { margin-bottom: 30px; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 10px; }
.mt-2 { margin-top: 20px; }
.mt-3 { margin-top: 30px; }

.p-0 { padding: 0; }
.p-1 { padding: 10px; }
.p-2 { padding: 20px; }
.p-3 { padding: 30px; }

.emoji {
    font-size: 1.2em;
    margin-right: 8px;
}

.status-online {
    color: var(--success-color);
}

.status-offline {
    color: var(--danger-color);
}

.status-warning {
    color: var(--warning-color);
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    h1 {
        font-size: 2em;
    }
    
    .stats {
        grid-template-columns: 1fr;
    }
    
    .row {
        flex-direction: column;
    }
    
    .nav {
        flex-direction: column;
    }
    
    .nav-link {
        min-width: auto;
    }
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Login specific styles */
.login-body {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
}

.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.login-card {
    width: 100%;
    max-width: 400px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: var(--border-radius);
    padding: 40px;
    box-shadow: var(--shadow);
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-header h2 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

.login-footer {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
}

/* QR Code Styles */
.qr-container {
    text-align: center;
    padding: 30px;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.qr-code {
    margin: 20px 0;
}

.qr-code img {
    max-width: 300px;
    height: auto;
    border: 5px solid var(--primary-color);
    border-radius: 10px;
}

/* Dashboard Specific Styles */
.dashboard-wrapper {
    min-height: 100vh;
    background: var(--light-color);
}

.container-fluid {
    width: 100%;
    padding: 0;
    margin: 0;
    max-width: none;
}

.sidebar {
    background: var(--white);
    box-shadow: 2px 0 5px rgba(0,0,0,0.1);
    min-height: calc(100vh - 80px);
    padding: 0 !important;
    position: sticky;
    top: 80px;
}

.sidebar-content {
    padding: 20px;
}

.main-content {
    background: var(--light-color);
    min-height: calc(100vh - 80px);
    padding: 20px;
}

.content-section {
    display: none;
}

.content-section.active {
    display: block;
}

/* Responsive Grid Improvements */
.col-md-3 { 
    flex: 0 0 25%; 
    max-width: 25%; 
    padding: 10px;
}

.col-md-4 { 
    flex: 0 0 33.333333%; 
    max-width: 33.333333%; 
    padding: 10px;
}

.col-md-6 { 
    flex: 0 0 50%; 
    max-width: 50%; 
    padding: 10px;
}

.col-md-8 { 
    flex: 0 0 66.666667%; 
    max-width: 66.666667%; 
    padding: 10px;
}

.col-md-9 { 
    flex: 0 0 75%; 
    max-width: 75%; 
    padding: 10px;
}

.col-md-12 { 
    flex: 0 0 100%; 
    max-width: 100%; 
    padding: 10px;
}

/* Navigation Styles */
.nav-pills .nav-link {
    border-radius: 8px;
    margin-bottom: 5px;
    transition: var(--transition);
    padding: 12px 15px;
    display: block;
    color: var(--dark-color);
    text-decoration: none;
}

.nav-pills .nav-link:hover {
    background-color: rgba(102, 126, 234, 0.1);
    color: var(--primary-color);
}

.nav-pills .nav-link.active {
    background-color: var(--primary-color);
    color: white;
}

/* Section Header */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.section-filters {
    display: flex;
    gap: 10px;
    align-items: center;
}

/* Stats Cards */
.stats-card {
    text-align: center;
    padding: 20px;
    border-left: 4px solid var(--primary-color);
    transition: var(--transition);
}

.stats-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

.stats-card h4 {
    font-size: 2.5em;
    color: var(--primary-color);
    margin: 10px 0;
    font-weight: bold;
}

/* Index/Landing Page Styles */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 15px 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar-brand h1 {
    font-size: 1.8em;
    color: var(--primary-color);
    margin: 0;
}

.navbar-nav {
    display: flex;
    align-items: center;
    gap: 15px;
}

.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 100px 0;
    text-align: center;
}

.hero-content h1 {
    font-size: 3em;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    color: white;
}

.hero-content .lead {
    font-size: 1.3em;
    margin-bottom: 30px;
    opacity: 0.95;
}

.hero-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
}

.btn-lg {
    padding: 15px 35px;
    font-size: 1.1em;
}

.section {
    padding: 80px 0;
    background: white;
}

.bg-light {
    background: var(--light-color) !important;
}

.feature-card {
    height: 100%;
    border: none;
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.feature-icon {
    font-size: 4em;
    margin-bottom: 20px;
    display: inline-block;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.feature-card h4 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.5em;
}

.feature-card p {
    color: #666;
    margin-bottom: 20px;
    line-height: 1.7;
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.feature-item {
    padding: 8px 0;
    color: var(--dark-color);
    font-size: 0.95em;
    transition: var(--transition);
}

.feature-item:hover {
    color: var(--primary-color);
    transform: translateX(5px);
}

.step-card {
    text-align: center;
    padding: 30px 20px;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
    height: 100%;
}

.step-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.step-number {
    display: inline-block;
    width: 50px;
    height: 50px;
    line-height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    font-size: 1.5em;
    font-weight: bold;
    margin-bottom: 20px;
}

.step-card h4 {
    color: var(--primary-color);
    margin: 15px 0;
    font-size: 1.2em;
}

.step-card p {
    color: #666;
    font-size: 0.95em;
    line-height: 1.6;
}

.footer {
    background: var(--dark-color);
    color: white;
    padding: 30px 0;
    text-align: center;
    margin-top: 0;
}

.footer p {
    margin: 0;
    font-size: 1em;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .col-md-3, .col-md-4, .col-md-6, .col-md-8, .col-md-9, .col-md-12 {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .sidebar {
        position: static;
        min-height: auto;
    }
    
    .main-content {
        padding: 10px;
    }
    
    .section-header {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }
    
    .section-filters {
        justify-content: center;
    }
    
    .hero {
        padding: 60px 0;
    }
    
    .hero-content h1 {
        font-size: 2em;
    }
    
    .hero-content .lead {
        font-size: 1.1em;
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-actions .btn {
        width: 100%;
        max-width: 300px;
    }
    
    .section {
        padding: 40px 0;
    }
    
    .navbar-brand h1 {
        font-size: 1.3em;
    }
}