:root {
    --primary: #2c3e50;
    --secondary: #3498db;
    --success: #2ecc71;
    --warning: #f39c12;
    --info: #2980b9;
    --danger: #e74c3c;
    --accent: #e74c3c;
    --light: #f8f9fa;
    --dark: #1a2530;
    --indigo: #6610f2;
    --purple: #8e44ad;
    --orange: #fd7e14;
}

body {
    font-family: 'Segoe UI',  system-ui, sans-serif;
    padding-top: 80px;
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e8f0 100%);
    min-height: 100vh;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
}

.nav-link {
    color: white;
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
}

.nav-link:hover {
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 4px;
}

.navbar {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 60%);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.80);
    transition: all 0.3s ease;
    border-bottom-left-radius: 80px;
    border-bottom-right-radius: 80px;
    border-bottom: none;
}

/* Navbar scroll effect */
.navbar-scrolled {
    background-color: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
}

/* Notification badge */
.notification-badge {
    position: absolute;
    top: 5px;
    right: 5px;
    font-size: 0.6rem;
    padding: 2px 5px;
}

/* Mobile optimization */
@media (max-width: 992px) {
    .navbar-collapse {
        /* background-color: var(--primary); */
        padding: 1rem;
        border-radius: 0 0 10px 10px;
        margin-top: 10px;
    }
}

.appdata{
    min-height: 29.1rem;
}

footer{
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.footer-link {
    color: #adb5bd;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
    padding: 4px 0;
    position: relative;
}

.footer-link:hover {
    color: #fff;
    text-decoration: underline;
}

.footer-link::after {
    content: '•';
    margin-left: 12px;
    color: #6c757d;
}

.footer-link:last-child::after {
    content: '';
    margin-left: 0;
}

/* Social Icons */
.social-icons {
    gap: 10px;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: #adb5bd;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

.social-icon:hover {
    transform: translateY(-3px);
    color: white;
}

/* Brand-specific hover colors */
.social-icon:hover.bi-facebook { background-color: #1877F2; }
.social-icon:hover.bi-linkedin { background-color: #0A66C2; }
.social-icon:hover.bi-twitter { background-color: #1DA1F2; }
.social-icon:hover.bi-instagram { 
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
}
.social-icon:hover.bi-youtube { background-color: #FF0000; }

/* Responsive adjustments */
@media (max-width: 768px) {
    .footer-links {
        justify-content: center;
        margin-bottom: 1.5rem;
    }
    
    .social-icons {
        margin-bottom: 1.5rem;
    }
    
    .text-md-end {
        text-align: center !important;
    }
    
    .footer-link::after {
        content: '|';
        margin: 0 8px;
    }
    
    .footer-link:last-child::after {
        content: '';
        margin: 0;
    }
}

@media (max-width: 576px) {
    .footer-links {
        flex-direction: column;
        align-items: center;
        gap: 8px;
    }
    
    .footer-link::after {
        display: none;
    }
    
    .social-icon {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }
}

.hero-attendance {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
}

.hero-attendance::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 60%;
    height: 200%;
    background: rgba(255, 255, 255, 0.1);
    transform: rotate(30deg);
}

.hero-attendance-badge {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 50px;
    padding: 10px 25px;
    display: inline-block;
    margin-bottom: 20px;
}

/* Features Section */
.feature-attendance-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    height: 100%;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
    position: relative;
    overflow: hidden;
}

.feature-attendance-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: var(--secondary);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.feature-attendance-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.feature-attendance-card:hover::before {
    transform: scaleY(1);
}

.feature-attendance-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--secondary), var(--primary));
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: white;
    font-size: 1.8rem;
}

/* Workflow Section */
.workflow-attendance-timeline {
    position: relative;
    padding: 3rem 0;
}

.workflow-attendance-timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, var(--secondary), var(--primary));
    transform: translateX(-50%);
}

.timeline-attendance-step {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    margin: 2rem 0;
    position: relative;
    width: 45%;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.timeline-attendance-step:nth-child(odd) {
    margin-left: 55%;
}

.timeline-attendance-step:nth-child(even) {
    margin-right: 55%;
}

.step-attendance-number {
    position: absolute;
    top: -20px;
    width: 40px;
    height: 40px;
    background: var(--secondary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
}

.timeline-attendance-step:nth-child(odd) .step-attendance-number {
    left: -60px;
}

.timeline-attendance-step:nth-child(even) .step-attendance-number {
    right: -60px;
}

/* Security Section */
.security-attendance-badge {
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    display: inline-block;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* CTA Section */
.cta-attendance-section {
    background: linear-gradient(135deg, var(--primary) 0%, #1a2530 100%);
    color: white;
    padding: 5rem 0;
    border-radius: 20px;
    margin: 5rem auto;
    position: relative;
    overflow: hidden;
}

.cta-attendance-section::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}

.cta-attendance-section::after {
    content: '';
    position: absolute;
    bottom: -100px;
    left: -100px;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}

/* Responsive Design */
@media (max-width: 768px) {
    .workflow-attendance-timeline::before {
        left: 30px;
    }
    
    .timeline-attendance-step {
        width: calc(100% - 60px);
        margin-left: 60px !important;
        margin-right: 0 !important;
    }
    
    .timeline-attendance-step:nth-child(odd) .step-attendance-number,
    .timeline-attendance-step:nth-child(even) .step-attendance-number {
        left: -50px;
        right: auto;
    }
    
    .hero-attendance-attendance {
        padding: 4rem 0;
        text-align: center;
    }
    
    .feature-attendance-card {
        margin-bottom: 1.5rem;
    }
}

/* Animation Classes */
.fade-attendance-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-attendance-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Custom Components */
.qr-code-attendance-demo {
    background:rgba(0, 0, 0, .2);;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.qr-code-attendance-demo::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--secondary), var(--primary));
}

.benefit-attendance-card {
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    margin: 1rem 0;
    border-left: 4px solid var(--success);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.subtitle {
    color: #aaa;
    font-size: 1.2rem;
}

.player-section {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

@media (min-width: 992px) {
    .player-section {
        flex-direction: row;
    }
}

.video-container {
    flex: 1;
    background-color: #000;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

#main-video {
    width: 100%;
    height: auto;
    display: block;
    max-height: 500px;
}

.playlist-container {
    width: 100%;
    max-width: 400px;
    background-color: #1e1e1e;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

@media (min-width: 992px) {
    .playlist-container {
        width: 350px;
    }
}

.playlist-header {
    background-color: #2a2a2a;
    padding: 15px 20px;
    border-bottom: 1px solid #333;
}

.playlist-header h2 {
    color: #4a9eff;
    display: flex;
    align-items: center;
    gap: 10px;
}

.playlist {
    max-height: 500px;
    overflow-y: auto;
}

.playlist-item {
    padding: 15px 20px;
    border-bottom: 1px solid #333;
    display: flex;
    align-items: center;
    gap: 15px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.playlist-item:hover {
    background-color: #2a2a2a;
}

.playlist-item.active {
    background-color: #2a2a2a;
    border-left: 4px solid #4a9eff;
}

.playlist-item .thumbnail {
    width: 80px;
    height: 45px;
    object-fit: cover;
    border-radius: 4px;
}

.playlist-item .video-info {
    flex: 1;
}

.playlist-item .video-title {
    font-weight: 600;
    margin-bottom: 5px;
}

.playlist-item .video-duration {
    color: #aaa;
    font-size: 0.9rem;
}

.controls {
    background-color: #1e1e1e;
    padding: 15px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.control-group {
    display: flex;
    align-items: center;
    gap: 15px;
}

.control-btn {
    background-color: #333;
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s;
}

.control-btn:hover {
    background-color: #4a9eff;
}

.progress-container {
    flex: 1;
    min-width: 200px;
    height: 8px;
    background-color: #333;
    border-radius: 4px;
    cursor: pointer;
    position: relative;
}

.progress-bar {
    height: 100%;
    background-color: #4a9eff;
    border-radius: 4px;
    width: 0%;
}

.time-display {
    color: #aaa;
    font-size: 0.9rem;
    white-space: nowrap;
}

.auto-play-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}

.toggle-switch {
    position: relative;
    width: 50px;
    height: 24px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #333;
    transition: .4s;
    border-radius: 24px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .toggle-slider {
    background-color: #4a9eff;
}

input:checked + .toggle-slider:before {
    transform: translateX(26px);
}

.instructions {
    background-color: #1e1e1e;
    border-radius: 10px;
    padding: 20px;
    margin-top: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.instructions h2 {
    color: #4a9eff;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.instructions ul {
    padding-left: 20px;
    margin-bottom: 15px;
}

.instructions li {
    margin-bottom: 8px;
}

.status {
    color: #4CAF50;
    font-weight: 600;
    padding: 10px;
    background-color: rgba(76, 175, 80, 0.1);
    border-radius: 5px;
    margin-top: 10px;
    display: none;
}

.status.active {
    display: block;
}

/* Scrollbar styling */
.playlist::-webkit-scrollbar {
    width: 8px;
}

.playlist::-webkit-scrollbar-track {
    background: #1e1e1e;
}

.playlist::-webkit-scrollbar-thumb {
    background: #444;
    border-radius: 4px;
}

.playlist::-webkit-scrollbar-thumb:hover {
    background: #555;
}

