@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;700&display=swap');

:root {
    --primary-color: #2e7d32;
    /* Golf Green */
    --accent-color: #ffd700;
    /* Gold */
    --bg-dark: #121212;
    --text-light: #f5f5f5;
    --text-muted: #a0a0a0;
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --error-color: #ff5252;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Outfit', sans-serif;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-light);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Background Image Handling */
.landing-bg {
    background-image: url('../images/LandingPage.jpeg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

/* Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    width: 100%;
}

.text-center {
    text-align: center;
}

.hidden {
    display: none !important;
}

/* Glassmorphism */
.glass-panel {
    background: rgba(30, 30, 30, 0.85);
    /* Fallback for no backdrop-filter support or where we want more opacity */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

.landing-login-box {
    background: rgba(255, 255, 255, 0.6);
    /* Semi-transparent white as requested */
    color: #000;
    /* Dark text for contrast against white */
}

.landing-login-box h2,
.landing-login-box label {
    color: #222;
}


/* Logos */
.logo-container {
    position: absolute;
    top: 20px;
    left: 20px;
    width: 16.6%;
    /* approx 1/6 */
    z-index: 10;
}

.logo-img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    /* Optional slight rounding */
}

.page-header-logo {
    width: 80px;
    height: auto;
    vertical-align: middle;
    margin-right: 15px;
}


/* Forms */
.form-group {
    margin-bottom: 20px;
    text-align: left;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="date"],
select {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #ccc;
    /* Generic border for white bg */
    background: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    transition: all 0.3s ease;
}

/* Dark mode inputs if not in landing box */
body:not(.landing-page) input,
body:not(.landing-page) select {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--glass-border);
    color: white;
}

body:not(.landing-page) select option {
    background-color: #1e1e1e;
    color: white;
}

body:not(.landing-page) input:focus,
body:not(.landing-page) select:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 2px rgba(46, 125, 50, 0.3);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: transform 0.2s, box-shadow 0.2s;
    font-size: 1rem;
    width: 100%;
    margin-top: 10px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), #43a047);
    color: white;
}

.btn-secondary {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.landing-login-box .btn-secondary {
    color: #2e7d32;
    border-color: #2e7d32;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.link-btn {
    background: none;
    border: none;
    color: var(--primary-color);
    /* Or blue */
    text-decoration: underline;
    cursor: pointer;
    font-size: 0.9rem;
    margin-top: 10px;
    display: inline-block;
}


/* Layouts */
.center-screen {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding-top: 80px;
    /* Space for logo if absolute */
}

/* Tables */
.data-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.data-table th,
.data-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid var(--glass-border);
}

.data-table th {
    background: rgba(255, 255, 255, 0.05);
    font-weight: 700;
    color: var(--accent-color);
    cursor: pointer;
    /* Sortable */
}

.data-table tr:hover {
    background: rgba(255, 255, 255, 0.02);
}

/* Dashboard Grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

/* Modal/Popup */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background: #1e1e1e;
    padding: 30px;
    border-radius: 16px;
    max-width: 500px;
    width: 90%;
    border: 1px solid var(--glass-border);
    color: white;
    /* Force white text in modals even if triggered from landing */
}


/* Specific Page Tweaks */
.page-contain {
    padding: 40px 20px;
}

.stat-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-color);
}

/* Mobile Optimizations */
@media (max-width: 768px) {
    .logo-container {
        width: 22%;
        /* approx 25% bigger than default 16.6% */
    }
}