/* ====================================================
   LUMEN - Medical Waste Collection System
   Main Stylesheet
   ==================================================== */

/* ====================================================
   CSS Variables (Color Palette)
   ==================================================== */
:root {
    /* Primary Colors */
    --primary-green: #2E7D32;
    --primary-green-dark: #1B5E20;
    --primary-green-light: #4CAF50;
    
    /* Secondary Colors */
    --secondary-teal: #00897B;
    --secondary-teal-dark: #00695C;
    --secondary-teal-light: #26A69A;
    
    /* Accent Colors */
    --accent-blue: #1565C0;
    --accent-blue-dark: #0D47A1;
    --accent-blue-light: #42A5F5;
    
    /* Background Colors */
    --bg-white: #FFFFFF;
    --bg-light: #F5F7FA;
    --bg-gray: #ECEFF1;
    
    /* Text Colors */
    --text-dark: #263238;
    --text-gray: #546E7A;
    --text-light: #90A4AE;
    
    /* Status Colors */
    --success: #4CAF50;
    --warning: #FF9800;
    --danger: #F44336;
    --info: #2196F3;
    
    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 15px rgba(0,0,0,0.1);
    --shadow-xl: 0 20px 25px rgba(0,0,0,0.15);
    
    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* ====================================================
   Global Styles
   ==================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-dark);
    background-color: var(--bg-light);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

img {
    max-width: 100%;
    height: auto;
}

/* ====================================================
   Utility Classes
   ==================================================== */
.text-primary { color: var(--primary-green) !important; }
.text-secondary { color: var(--secondary-teal) !important; }
.text-accent { color: var(--accent-blue) !important; }
.text-success { color: var(--success) !important; }
.text-warning { color: var(--warning) !important; }
.text-danger { color: var(--danger) !important; }
.text-info { color: var(--info) !important; }

.bg-primary { background-color: var(--primary-green) !important; }
.bg-secondary { background-color: var(--secondary-teal) !important; }
.bg-accent { background-color: var(--accent-blue) !important; }
.bg-light { background-color: var(--bg-light) !important; }

.shadow-sm { box-shadow: var(--shadow-sm); }
.shadow-md { box-shadow: var(--shadow-md); }
.shadow-lg { box-shadow: var(--shadow-lg); }
.shadow-xl { box-shadow: var(--shadow-xl); }

.rounded-sm { border-radius: var(--radius-sm); }
.rounded-md { border-radius: var(--radius-md); }
.rounded-lg { border-radius: var(--radius-lg); }
.rounded-xl { border-radius: var(--radius-xl); }

/* ====================================================
   Navigation Bar
   ==================================================== */
.navbar {
    background: linear-gradient(135deg, var(--primary-green), var(--secondary-teal));
    box-shadow: var(--shadow-md);
    padding: 1rem 0;
}

.navbar-brand {
    font-size: 1.75rem;
    font-weight: 700;
    color: white !important;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.navbar-brand i {
    font-size: 2rem;
}

.navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 500;
    margin: 0 0.5rem;
    padding: 0.5rem 1rem !important;
    border-radius: var(--radius-md);
    transition: var(--transition-fast);
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    background: rgba(255, 255, 255, 0.1);
    color: white !important;
}

.btn-nav {
    padding: 0.5rem 1.5rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    transition: var(--transition-fast);
}

.btn-login {
    background: transparent;
    border: 2px solid white;
    color: white;
}

.btn-login:hover {
    background: white;
    color: var(--primary-green);
}

.btn-register {
    background: white;
    color: var(--primary-green);
    border: 2px solid white;
}

.btn-register:hover {
    background: var(--accent-blue);
    border-color: var(--accent-blue);
    color: white;
}

/* ====================================================
   Hero Section
   ==================================================== */
.hero-section {
    background: linear-gradient(135deg, var(--primary-green), var(--secondary-teal));
    color: white;
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="40" fill="rgba(255,255,255,0.05)"/></svg>');
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.hero-buttons .btn {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: var(--radius-lg);
    margin: 0.5rem;
    transition: var(--transition-normal);
}

.btn-get-started {
    background: white;
    color: var(--primary-green);
}

.btn-get-started:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.btn-learn-more {
    background: transparent;
    border: 2px solid white;
    color: white;
}

.btn-learn-more:hover {
    background: white;
    color: var(--primary-green);
}

.hero-image {
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

/* ====================================================
   Section Styles
   ==================================================== */
.section {
    padding: 80px 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-green);
    margin-bottom: 1rem;
    text-align: center;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--text-gray);
    margin-bottom: 3rem;
    text-align: center;
}

/* ====================================================
   Cards
   ==================================================== */
.card {
    border: none;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transition: var(--transition-normal);
    overflow: hidden;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.card-header {
    background: linear-gradient(135deg, var(--primary-green), var(--secondary-teal));
    color: white;
    font-weight: 600;
    border: none;
}

.feature-card {
    text-align: center;
    padding: 2rem;
    height: 100%;
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-green), var(--secondary-teal));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: white;
}

.feature-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-green);
    margin-bottom: 1rem;
}

/* ====================================================
   Statistics Section
   ==================================================== */
.stats-section {
    background: linear-gradient(135deg, var(--primary-green), var(--secondary-teal));
    color: white;
}

.stat-card {
    text-align: center;
    padding: 2rem;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1.2rem;
    opacity: 0.95;
}

/* ====================================================
   Buttons
   ==================================================== */
.btn {
    border-radius: var(--radius-md);
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    transition: var(--transition-fast);
    border: none;
}

.btn-primary {
    background: var(--primary-green);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-green-dark);
    transform: translateY(-2px);
}

.btn-secondary {
    background: var(--secondary-teal);
    color: white;
}

.btn-secondary:hover {
    background: var(--secondary-teal-dark);
}

.btn-accent {
    background: var(--accent-blue);
    color: white;
}

.btn-accent:hover {
    background: var(--accent-blue-dark);
}

.btn-outline-primary {
    border: 2px solid var(--primary-green);
    color: var(--primary-green);
    background: transparent;
}

.btn-outline-primary:hover {
    background: var(--primary-green);
    color: white;
}

/* ====================================================
   Forms
   ==================================================== */
.form-control, .form-select {
    border-radius: var(--radius-md);
    border: 1px solid #ddd;
    padding: 0.75rem 1rem;
    transition: var(--transition-fast);
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-green);
    box-shadow: 0 0 0 0.2rem rgba(46, 125, 50, 0.25);
}

.form-label {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

/* ====================================================
   Footer
   ==================================================== */
.footer {
    background: var(--text-dark);
    color: rgba(255, 255, 255, 0.8);
    padding: 3rem 0 1rem;
}

.footer-title {
    color: white;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition-fast);
}

.footer-links a:hover {
    color: white;
    padding-left: 5px;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    margin-right: 0.5rem;
    transition: var(--transition-fast);
}

.social-links a:hover {
    background: var(--primary-green);
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    margin-top: 2rem;
    text-align: center;
}

/* ====================================================
   Dashboard Styles
   ==================================================== */
.dashboard-card {
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    background: white;
    box-shadow: var(--shadow-md);
    margin-bottom: 1.5rem;
    transition: var(--transition-normal);
}

.dashboard-card:hover {
    box-shadow: var(--shadow-lg);
}

.dashboard-icon {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-dark);
}

.stat-title {
    font-size: 0.9rem;
    color: var(--text-gray);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ====================================================
   Tables
   ==================================================== */
.table-responsive {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.table {
    margin-bottom: 0;
}

.table thead {
    background: linear-gradient(135deg, var(--primary-green), var(--secondary-teal));
    color: white;
}

.table thead th {
    border: none;
    font-weight: 600;
    padding: 1rem;
}

.table tbody tr {
    transition: var(--transition-fast);
}

.table tbody tr:hover {
    background-color: var(--bg-light);
}

/* ====================================================
   Badges
   ==================================================== */
.badge {
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    font-weight: 600;
}

/* ====================================================
   Alerts
   ==================================================== */
.alert {
    border-radius: var(--radius-md);
    border: none;
    padding: 1rem 1.5rem;
}

/* ====================================================
   Loading Spinner
   ==================================================== */
.spinner-border-custom {
    width: 3rem;
    height: 3rem;
    border: 0.3rem solid rgba(46, 125, 50, 0.2);
    border-top-color: var(--primary-green);
}

/* ====================================================
   Responsive Design
   ==================================================== */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-buttons .btn {
        display: block;
        width: 100%;
        margin: 0.5rem 0;
    }
}

/* ====================================================
   Animation
   ==================================================== */
.fade-in {
    animation: fadeIn var(--transition-slow);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
