/* ==========================================================================
   JAJR Attendance System - Universal CSS
   Consolidated styles for landing page and MVC admin dashboard
   ========================================================================== */

/* ==========================================================================
   1. BASE STYLES & RESET
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background-color: #f5f5f5;
    color: #333;
}

/* ==========================================================================
   2. LANDING PAGE - HERO SECTION
   ========================================================================== */
.hero-attendance {
    min-height: 100vh;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-image: url('https://images.unsplash.com/photo-1504307651254-35680f356dfd?q=80&w=2070&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(30, 58, 95, 0.92) 0%, rgba(30, 58, 95, 0.75) 50%, rgba(30, 58, 95, 0.60) 100%);
}

/* Navigation */
.nav-attendance {
    position: relative;
    z-index: 50;
    backdrop-filter: blur(12px);
    background: rgba(255, 255, 255, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-link-attendance {
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link-attendance:hover {
    color: #FF6B00;
}

.nav-link-attendance::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: #FF6B00;
    transition: width 0.3s ease;
}

.nav-link-attendance:hover::after {
    width: 100%;
}

/* Hero Content */
.hero-content {
    position: relative;
    z-index: 10;
    flex: 1;
    display: flex;
    align-items: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(255, 107, 0, 0.15);
    border: 1px solid rgba(255, 107, 0, 0.3);
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    color: #FF8C00;
    text-transform: uppercase;
}

.hero-badge-dot {
    width: 8px;
    height: 8px;
    background: #FF6B00;
    border-radius: 50%;
    animation: pulse-dot 2s ease-in-out infinite;
}

.hero-label {
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 900;
    line-height: 1.1;
    color: white;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.7;
    max-width: 600px;
}

/* Orange CTA Buttons */
.btn-orange-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 32px;
    background: linear-gradient(135deg, #FF6B00 0%, #FF8C00 100%);
    color: white;
    font-weight: 700;
    font-size: 0.95rem;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(255, 107, 0, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.02em;
    text-decoration: none;
}

.btn-orange-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(255, 107, 0, 0.5);
}

.btn-orange-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 32px;
    background: transparent;
    color: white;
    font-weight: 700;
    font-size: 0.95rem;
    border-radius: 8px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    text-decoration: none;
}

.btn-orange-outline:hover {
    border-color: #FF6B00;
    color: #FF6B00;
    background: rgba(255, 107, 0, 0.1);
}

/* Play Button Circle */
.play-button-container {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.play-button {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #FF6B00 0%, #FF8C00 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
    z-index: 2;
    transition: transform 0.3s ease;
    box-shadow: 0 0 30px rgba(255, 107, 0, 0.6);
    border: none;
}

.play-button:hover {
    transform: scale(1.1);
}

.play-button-glow {
    position: absolute;
    inset: -10px;
    border-radius: 50%;
    background: rgba(255, 107, 0, 0.3);
    animation: pulse-glow 2s ease-in-out infinite;
}

/* Feature Pills */
.feature-module {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 32px;
}

.feature-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 107, 0, 0.4);
    border-radius: 999px;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.9);
    transition: all 0.3s ease;
}

.feature-pill:hover {
    background: rgba(255, 107, 0, 0.15);
    border-color: #FF6B00;
    transform: translateY(-2px);
}

.feature-pill-icon {
    width: 18px;
    height: 18px;
    color: #FF6B00;
}

/* Trust Indicator */
.trust-indicator {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.trust-avatars {
    display: flex;
}

.trust-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #FF6B00, #FF8C00);
    border: 2px solid white;
    margin-left: -8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 700;
    color: white;
}

.trust-avatar:first-child {
    margin-left: 0;
}

.trust-text {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

.trust-text strong {
    color: white;
}

/* Bottom Marquee Bar */
.marquee-bar {
    position: relative;
    z-index: 20;
    background: white;
    padding: 16px 0;
    overflow: hidden;
    border-top: 3px solid #FF6B00;
}

.marquee-content {
    display: flex;
    animation: marquee 20s linear infinite;
    white-space: nowrap;
}

.marquee-item {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    padding: 0 32px;
    font-size: 0.875rem;
    font-weight: 700;
    color: #FF6B00;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.marquee-separator {
    color: #ccc;
}

/* Right Side Visual */
.hero-visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.construction-badge {
    position: absolute;
    top: 20%;
    right: 10%;
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    gap: 12px;
    animation: float-badge 4s ease-in-out infinite;
}

.badge-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #FF6B00, #FF8C00);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.badge-text {
    font-size: 0.8rem;
}

.badge-text strong {
    display: block;
    color: #1e3a5f;
    font-size: 1rem;
}

/* ==========================================================================
   3. LANDING PAGE - FEATURES SECTION
   ========================================================================== */
.feature-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #FF6B00, #FF8C00);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-color: #FF6B00;
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-icon-wrapper {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

/* ==========================================================================
   4. LANDING PAGE - TESTIMONIALS SECTION
   ========================================================================== */
.testimonial-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.testimonial-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #FF6B00, #FF8C00);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 107, 0, 0.4);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.testimonial-card:hover::before {
    transform: scaleX(1);
}

/* ==========================================================================
   5. LANDING PAGE - TEAM SECTION
   ========================================================================== */
.team-card {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
}

.team-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-color: #FF6B00;
}

.team-image-wrapper {
    width: 120px;
    height: 140px;
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
}

.team-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.team-card:hover .team-image {
    transform: scale(1.05);
}

.team-social-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid #FF6B00;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FF6B00;
    transition: all 0.3s ease;
    text-decoration: none;
}

.team-social-icon:hover {
    background: #FF6B00;
    color: white;
}

/* ==========================================================================
   6. ANIMATIONS
   ========================================================================== */
@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.2); }
}

@keyframes pulse-glow {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.2); opacity: 0.2; }
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@keyframes fade-in-up {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float-badge {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.animate-fade-in-up {
    animation: fade-in-up 0.8s ease-out forwards;
}

.delay-100 { animation-delay: 0.1s; opacity: 0; }
.delay-200 { animation-delay: 0.2s; opacity: 0; }
.delay-300 { animation-delay: 0.3s; opacity: 0; }
.delay-400 { animation-delay: 0.4s; opacity: 0; }

/* ==========================================================================
   7. RESPONSIVE - LANDING PAGE
   ========================================================================== */
@media (max-width: 1024px) {
    .hero-visual {
        display: none;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.2rem;
    }
    
    .btn-orange-primary,
    .btn-orange-outline {
        width: 100%;
        justify-content: center;
    }
    
    .feature-module {
        justify-content: center;
    }
    
    .trust-indicator {
        flex-direction: column;
        text-align: center;
    }
}

/* ==========================================================================
   8. MVC ADMIN DASHBOARD STYLES
   ========================================================================== */
.navbar {
    background-color: #2563eb;
    color: white;
    padding: 1rem 2rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.navbar h1 {
    font-size: 1.5rem;
    display: inline-block;
}

.navbar nav {
    display: inline-block;
    margin-left: 2rem;
}

.navbar a {
    color: white;
    text-decoration: none;
    margin-right: 1.5rem;
    opacity: 0.9;
}

.navbar a:hover {
    opacity: 1;
}

.container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.alert {
    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 1rem;
}

.alert-success {
    background-color: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.alert-error {
    background-color: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

th, td {
    text-align: left;
    padding: 0.75rem;
    border-bottom: 1px solid #e5e7eb;
}

th {
    font-weight: 600;
    color: #6b7280;
    font-size: 0.875rem;
    text-transform: uppercase;
}

tr:hover {
    background-color: #f9fafb;
}

/* Dashboard Buttons */
.btn {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background-color: #2563eb;
    color: white;
}

.btn-primary:hover {
    background-color: #1d4ed8;
}

.btn-danger {
    background-color: #dc2626;
    color: white;
}

.btn-danger:hover {
    background-color: #b91c1c;
}

.btn-secondary {
    background-color: #6b7280;
    color: white;
}

.btn-secondary:hover {
    background-color: #4b5563;
}

.btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
}

/* Form Styles */
.form-group {
    margin-bottom: 1rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #374151;
}

input, select, textarea {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    font-size: 1rem;
    font-family: inherit;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.actions {
    display: flex;
    gap: 0.5rem;
}

.header-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.filter-form {
    display: flex;
    gap: 1rem;
    align-items: flex-end;
    margin-bottom: 1rem;
}

.filter-form .form-group {
    margin-bottom: 0;
}

/* Status Badges */
.status-badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.status-present {
    background-color: #d1fae5;
    color: #065f46;
}

.status-absent {
    background-color: #fee2e2;
    color: #991b1b;
}

.status-late {
    background-color: #fef3c7;
    color: #92400e;
}

.status-half_day {
    background-color: #dbeafe;
    color: #1e40af;
}

.status-leave {
    background-color: #e5e7eb;
    color: #374151;
}
