/* ===============================
   GLOBAL STYLES
================================ */
*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

body{
    font-family: 'Segoe UI', Arial, sans-serif;
    background:#f2f4f8;
    color:#333;
}

a{
    text-decoration:none;
    color:#1e90ff;
}

h1,h2,h3{
    margin-bottom:15px;
}

/* ===============================
   HEADER & NAVBAR
================================ */
header{
    background:linear-gradient(90deg,#0a3d62,#1e90ff);
    color:white;
    padding:20px;
    text-align:center;
}

nav{
    background:#0a3d62;
    padding:10px;
    text-align:center;
}

nav a{
    color:white;
    margin:0 15px;
    font-weight:600;
}

nav a:hover{
    text-decoration:underline;
}

/* ===============================
   CONTAINER
================================ */
.container{
    width:90%;
    max-width:1100px;
    margin:30px auto;
}

/* ===============================
   CARDS (Services)
================================ */
.services{
    display:flex;
    flex-wrap:wrap;
    justify-content:center;
}

.card{
    background:white;
    width:260px;
    margin:15px;
    padding:20px;
    border-radius:8px;
    box-shadow:0 6px 15px rgba(0,0,0,0.1);
    transition:0.3s;
}

.card:hover{
    transform:translateY(-5px);
}

.card h3{
    color:#0a3d62;
}

.card span{
    display:block;
    margin-top:10px;
    font-weight:bold;
}

/* ===============================
   BUTTONS
================================ */
.btn{
    display:inline-block;
    margin-top:10px;
    padding:10px 15px;
    background:#1e90ff;
    color:white;
    border-radius:5px;
    font-size:14px;
    border:none;
    cursor:pointer;
}

.btn:hover{
    background:#0a3d62;
}

.btn-danger{
    background:#e74c3c;
}

.btn-success{
    background:#27ae60;
}

.btn-back{
    background:#555;
}

/* ===============================
   FORMS (Login / Register / Apply)
================================ */
.form{
    width:100%;
    max-width:400px;
    background:white;
    padding:25px;
    margin:40px auto;
    border-radius:8px;
    box-shadow:0 5px 15px rgba(0,0,0,0.15);
}

.form h2{
    text-align:center;
    margin-bottom:20px;
    color:#0a3d62;
}

.form input,
.form select,
.form textarea{
    width:100%;
    padding:12px;
    margin-bottom:15px;
    border:1px solid #ccc;
    border-radius:5px;
    font-size:14px;
}

.form textarea{
    resize:none;
    height:90px;
}

.form button{
    width:100%;
}

/* ===============================
   TABLES (Admin + User Reports)
================================ */
table{
    width:100%;
    background:white;
    border-collapse:collapse;
    box-shadow:0 5px 15px rgba(0,0,0,0.1);
}

th, td{
    padding:12px;
    border:1px solid #ddd;
    font-size:14px;
}

th{
    background:#1e90ff;
    color:white;
}

tr:nth-child(even){
    background:#f9f9f9;
}

/* ===============================
   STATUS COLORS
================================ */
.pending{
    color:#e67e22;
    font-weight:bold;
}

.completed{
    color:#27ae60;
    font-weight:bold;
}

/* ===============================
   DASHBOARD
================================ */
.dashboard-links a{
    display:inline-block;
    margin:10px;
    padding:12px 18px;
    background:white;
    border-radius:6px;
    box-shadow:0 3px 8px rgba(0,0,0,0.15);
    font-weight:600;
}

/* ===============================
   FOOTER
================================ */
footer{
    background:#0a3d62;
    color:white;
    text-align:center;
    padding:15px;
    margin-top:40px;
}

/* ===============================
   RESPONSIVE (Mobile)
================================ */
@media(max-width:768px){
    nav a{
        display:block;
        margin:8px 0;
    }

    .services{
        flex-direction:column;
        align-items:center;
    }

    table, th, td{
        font-size:12px;
    }
}
/* =====================================
   ANIMATIONS
===================================== */

/* Fade In */
.fade-in{
    animation: fadeIn 0.8s ease-in-out;
}

@keyframes fadeIn{
    from{
        opacity:0;
        transform:translateY(20px);
    }
    to{
        opacity:1;
        transform:translateY(0);
    }
}

/* Slide from Left */
.slide-left{
    animation: slideLeft 0.8s ease;
}

@keyframes slideLeft{
    from{
        opacity:0;
        transform:translateX(-40px);
    }
    to{
        opacity:1;
        transform:translateX(0);
    }
}

/* Slide from Right */
.slide-right{
    animation: slideRight 0.8s ease;
}

@keyframes slideRight{
    from{
        opacity:0;
        transform:translateX(40px);
    }
    to{
        opacity:1;
        transform:translateX(0);
    }
}

/* Card Hover Animation */
.card{
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.card:hover{
    transform: translateY(-8px) scale(1.02);
    box-shadow:0 12px 25px rgba(0,0,0,0.2);
}

/* Button Hover Animation */
.btn{
    transition: all 0.3s ease;
}

.btn:hover{
    letter-spacing:0.5px;
}

/* =====================================
   RESPONSIVE DESIGN
===================================== */

/* Responsive Design */
        @media (max-width: 992px) {
            .services-grid {
                grid-template-columns: repeat(2, 1fr);
            }
        }
        
        @media (max-width: 768px) {
            header h1 {
                font-size: 2.2rem;
            }
            
            nav {
                flex-direction: column;
                gap: 0.5rem;
                align-items: center;
                padding: 1rem;
            }
            
            nav a {
                width: 100%;
                max-width: 300px;
                justify-content: center;
            }
            
            .hero {
                padding: 3rem 1.5rem;
            }
            
            .hero h2 {
                font-size: 2rem;
            }
            
            .hero p {
                font-size: 1.1rem;
            }
            
            .services-grid {
                grid-template-columns: 1fr;
            }
            
            .footer-links {
                flex-direction: column;
                gap: 1rem;
            }
        }
        
        /* Scroll Animation */
        .animate-on-scroll {
            opacity: 0;
            transform: translateY(30px);
            transition: opacity 0.8s ease, transform 0.8s ease;
        }
        
        .animate-on-scroll.animated {
            opacity: 1;
            transform: translateY(0);
        }
        
        /* Floating Elements */
        .floating-element {
            position: absolute;
            width: 50px;
            height: 50px;
            background: rgba(108, 99, 255, 0.1);
            border-radius: 15px;
            z-index: -1;
            animation: float 6s ease-in-out infinite;
        }
        
        @keyframes float {
            0%, 100% { transform: translateY(0) rotate(0deg); }
            50% { transform: translateY(-20px) rotate(5deg); }
        }
        
        .floating-1 {
            top: 20%;
            left: 5%;
            animation-delay: 0s;
        }
        
        .floating-2 {
            top: 60%;
            right: 8%;
            animation-delay: 2s;
            width: 70px;
            height: 70px;
        }
        
        .floating-3 {
            bottom: 30%;
            left: 10%;
            animation-delay: 4s;
            width: 40px;
            height: 40px;
        }