/* File: assets/css/style.css */

:root {
    --primary-orange: #ff6f00; /* Main brand color */
    --light-orange: #fff3e0;   /* Light background accents */
    --dark-grey: #333;         /* Text color */
    --white: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* 1. Global Layout Fix */
html, body {
    height: 100%; /* Required for flex-grow to work */
}

body {
    background-color: var(--white);
    color: var(--dark-grey);
    display: flex;
    flex-direction: column;
    min-height: 100vh; 
    margin: 0;
}

/* 2. The "Spring" - pushes footer to the bottom */
.content-wrapper {
    flex: 1 0 auto; /* Fills all empty space between header and footer */
    display: flex;
    flex-direction: column;
    width: 100%;
    margin-top: 80px; /* Moves content below the fixed header */
}

/* 3. Fixed Header Styling */
header.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px; 
    z-index: 1000;
    background-color: #ffffff !important; 
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 10%; 
    box-sizing: border-box;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-orange);
    text-decoration: none;
}

nav a {
    text-decoration: none;
    color: var(--dark-grey);
    margin-left: 20px;
    font-weight: 500;
}

nav a:hover {
    color: var(--primary-orange);
}

.btn-login {
    background-color: var(--primary-orange);
    color: var(--white) !important;
    padding: 10px 20px;
    border-radius: 5px;
    transition: 0.3s;
    text-decoration: none;
}

.btn-login:hover {
    background-color: #e65100;
}

/* 4. Hero Section - MODIFIED FOR DARK OVERLAY AND FULL SPACE */
.hero {
    flex: 1; /* Makes the hero stretch to fill the content-wrapper */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 50px 20px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    width: 100%;
}

.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* CHANGED: Dark semi-transparent black overlay for better readability */
    background: rgba(0, 0, 0, 0.55); 
    z-index: 1;
}

.hero > * {
    position: relative;
    z-index: 2;
}

/* Backgrounds */
.hero-home { background-image: url('../images/home-bg.jpg'); }
.hero-login { background-image: url('../images/login-bg.jpg'); }
.hero-register { background-image: url('../images/register-bg.jpg'); }

/* CHANGED: Ensure Hero text is white to contrast against dark background */
.hero h1 { 
    font-size: 2.5rem; 
    margin-bottom: 20px; 
    color: #ffffff; 
}
.hero p { 
    color: #ffffff; 
}
.hero span { 
    color: var(--primary-orange); 
}

/* Tracking Box */
.tracking-box {
    background: var(--white);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    display: flex;
    gap: 10px;
    max-width: 500px;
    width: 100%;
}

.tracking-box input {
    flex: 1;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    outline: none;
}

.tracking-box button {
    background-color: var(--primary-orange);
    color: var(--white);
    border: none;
    padding: 12px 25px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
}

/* 5. Footer Styling */
footer {
    flex-shrink: 0; 
    background-color: #222;
    color: var(--white);
    text-align: center;
    padding: 30px 10%;
    width: 100%;
}

/* --- Dashboard Styling --- */
.dashboard-container {
    padding: 40px 5%;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.stat-card {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    border-left: 5px solid var(--primary-orange);
    text-align: center;
}

.stat-card h3 {
    font-size: 2.5rem;
    color: var(--primary-orange);
    margin-bottom: 5px;
}

.recent-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    border-radius: 8px;
    overflow: hidden;
}

.recent-table th, .recent-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.recent-table th {
    background-color: var(--primary-orange);
    color: white;
}