﻿/* Root variables */
:root {
    --primary-color: #ff6600; /* Orange for buttons, highlights */
    --primary-hover: #e65c00; /* Darker orange on hover */
    --bg-color: #ffffff; /* Light background */
    --text-color: #333333; /* Dark text for readability */
    --text-muted: #666666; /* Muted text */
    --card-bg: #f8f8f8; /* Light card background */
    --card-shadow: rgba(0,0,0,0.1);
    --navbar-bg: #ffffff;
    --navbar-text: #333333;
    --footer-bg: #f0f0f0;
    --footer-text: #555555;
    --link-color: var(--primary-color);
    --bg-orange: #ff6600;
}

/* Global */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    margin: 0;
}

.bg-orange {
    background-color: var(--bg-orange);
}
/* Navbar */
.navbar {
    background-color: var(--navbar-bg);
    padding: 12px 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.navbar-brand {
    font-weight: bold;
    font-size: 20px;
    color: var(--primary-color) !important;
}

.nav-link {
    color: var(--navbar-text) !important;
    transition: 0.3s;
}

    .nav-link:hover {
        color: var(--primary-color) !important;
    }

/* Hero Section */


.hero {
    position: relative;
    background: url('/images/train_6.jpg') center/cover no-repeat;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--bg-color); /* text color on top of overlay */
    overflow: hidden;
}

    /* Dark overlay */
    .hero::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.4); /* low opacity black overlay */
        z-index: 1;
    }

    /* Text above overlay */
    .hero h1,
    .hero p,
    .hero a {
        position: relative;
        z-index: 2;
    }
    .hero h1 {
        font-size: 40px;
        font-weight: bold;
    }

    .hero p {
        font-size: 18px;
    }

/* Cards */
.card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 4px 12px var(--card-shadow);
    background-color: var(--card-bg);
    color: var(--text-color);
}

/* Buttons */
.btn-primary {
    background-color: var(--primary-color);
    border: none;
    color: #fff;
    transition: 0.3s;
}

    .btn-primary:hover {
        background-color: var(--primary-hover);
    }

.btn-warning {
    background-color: #ffc107;
    border: none;
    color: #333;
}

/* Footer */
footer {
    background-color: var(--footer-bg);
    color: var(--footer-text);
    padding: 25px 0;
    text-align: center;
    border-top: 1px solid #ddd;
}

    footer a {
        color: var(--link-color);
        text-decoration: none;
    }

        footer a:hover {
            text-decoration: underline;
        }

/* Login & Register Pages */
.login-container {
    height: 90vh;
    background-color: var(--bg-color);
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-card {
    width: 100%;
    max-width: 400px;
    border-radius: 15px;
    box-shadow: 0 10px 30px var(--card-shadow);
    background-color: var(--card-bg);
    padding: 2rem;
}

    .login-card h2 {
        color: var(--primary-color);
        font-weight: bold;
    }

    .login-card .btn-primary {
        background-color: var(--primary-color);
        border: none;
        width: 100%;
        padding: 0.75rem;
    }

        .login-card .btn-primary:hover {
            background-color: var(--primary-hover);
        }

    .login-card .form-floating > label {
        color: var(--text-muted);
    }


/* Form Inputs - MUI style */
.form-floating input,
.form-floating select,
.form-floating textarea {
    border: 1px solid #ccc;
    border-radius: 8px;
    padding: 1rem 0.75rem 0.25rem 0.75rem;
    font-size: 0.95rem;
    background-color: #fff;
    transition: all 0.3s ease;
    color: var(--text-color);
    width: 100%;
}

    .form-floating input:focus,
    .form-floating select:focus,
    .form-floating textarea:focus {
        outline: none;
        border-color: var(--primary-color);
        box-shadow: 0 2px 8px rgba(255, 102, 0, 0.25);
        background-color: #fff;
    }

/* Floating Labels - MUI style */
.form-floating label {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    font-size: 0.95rem;
    color: var(--text-muted);
    transition: all 0.3s ease;
    pointer-events: none;
}

.form-floating input:focus + label,
.form-floating input:not(:placeholder-shown) + label,
.form-floating select:focus + label,
.form-floating select:not([value=""]) + label {
    top: -0.5rem;
    left: 0.75rem;
    font-size: 0.75rem;
    color: var(--primary-color);
    background-color: #fff;
    padding: 0 0.25rem;
}

/* Select arrow style */
.form-floating select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg width='12' height='12' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M2 4l4 4 4-4' stroke='%23ccc' stroke-width='2' fill='none' fill-rule='evenodd'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 12px;
    padding-right: 2rem;
}

    /* Disabled / readonly */
    .form-floating input:disabled,
    .form-floating select:disabled {
        background-color: #f0f0f0;
        cursor: not-allowed;
    }


/* Rounded Button Style */
.btn-rounded {
    border-radius: 50px; /* fully rounded edges */
    padding: 0.5rem 2rem; /* vertical and horizontal padding */
    font-weight: 600; /* slightly bold text */
    transition: all 0.3s ease;
}

    .btn-rounded:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    }



.form-box {
    width:100%;
}