:root {
    --wesb-red: #c3202d;
    --wesb-black: #1e1e1e;
    --wesb-gray: #666;
    --wesb-orange: #e67700;
    --wesb-green: #2bb673;
}

/* === Base === */
body {
    background-color: var(--wesb-black);
    color: #f1f1f1;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding-bottom: 80px;
}

.container {
    max-width: 1100px;
    margin: auto;
    padding: 20px;
}

h1, h2, h3, h4, h5 {
    color: var(--wesb-red);
}

/* === Buttons === */
.btn,
.btn-accent,
.btn-primary {
    padding: 10px 16px;
    border-radius: 4px;
    text-transform: uppercase;
    font-weight: bold;
    transition: all 0.3s ease;
    border: none;
    color: #fff;
}

.btn-accent {
    background-color: var(--wesb-red);
}

    .btn-accent:hover {
        background-color: var(--wesb-orange);
    }

.btn-primary {
    background-color: var(--wesb-red);
}

    .btn-primary:hover {
        background-color: var(--wesb-orange);
    }

/* === Forms === */
input[type="text"],
input[type="password"],
input[type="email"],
select,
textarea {
    background-color: #2c2c2c;
    color: #f1f1f1;
    border: 1px solid #555;
    padding: 10px;
    border-radius: 4px;
    width: 100%;
}

    input:focus,
    select:focus,
    textarea:focus {
        outline: none;
        border-color: var(--wesb-red);
        box-shadow: 0 0 5px var(--wesb-red);
    }

/* === Validation === */
.alert-danger,
.field-validation-error {
    color: #ff6b6b;
}

.validation-summary-errors {
    background-color: #ffcccc;
    border-left: 5px solid red;
    padding: 10px;
    margin-bottom: 20px;
}

/* === Modal === */
.modal-content {
    background-color: #2c2c2c;
    color: #fff;
    border: 1px solid #444;
}

.modal-header,
.modal-footer {
    border-color: #444;
}

/* === Footer === */
.footer {
    background-color: #000;
    color: #fff;
    padding: 30px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2em;
    font-weight: bold;
    border-top: 3px solid #333;
    flex-direction: column;
}

.footer-logo {
    height: 150px;
    margin-top: 10px;
}

/* === Brand Header === */
.brand-header {
    background-image: url('../Supporting_Doc/WESB.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    height: 150px;
    margin-bottom: 20px;
}

/* === Links === */
a {
    color: var(--wesb-red);
    text-decoration: none;
}

    a:hover {
        text-decoration: underline;
    }

/* === Tables === */
table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

    table th,
    table td {
        border: 1px solid #555;
        padding: 8px;
        color: #eee;
    }

    table th {
        background-color: #333;
    }

    table tr:nth-child(even) {
        background-color: #2c2c2c;
    }

/* === Utility === */
.text-right {
    text-align: right;
}

.text-center {
    text-align: center;
}

/* === Homepage Elements === */
.homepage-container {
    background-color: #1a1a1a;
    color: #fff;
}

.hero {
    text-align: center;
    padding: 60px 20px;
    background-color: #121212;
}

.logo {
    max-height: 150px;
    margin-bottom: 20px;
}

.hero h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
    color: #ccc;
}

.hero p {
    font-size: 1.25em;
    margin-bottom: 20px;
    color: #aaa;
}

.cta-button {
    background-color: #e63946;
    color: #fff;
    padding: 12px 24px;
    font-size: 1.1em;
    text-decoration: none;
    border-radius: 6px;
    transition: background-color 0.3s ease;
}

    .cta-button:hover {
        background-color: #d62839;
    }

.features {
    display: flex;
    justify-content: space-around;
    padding: 40px 20px;
    background-color: #222;
    flex-wrap: wrap;
}

.feature-box {
    background-color: #2b2b2b;
    border-radius: 10px;
    padding: 20px;
    width: 300px;
    margin: 10px;
    text-align: center;
    color: #eee;
}
/* Package Name styling (black box, white text) */
.form-control.pkg-name,
input.pkg-name {
    background-color: var(--wesb-black) !important; /* #1e1e1e */
    color: #fff !important;
    border: 1px solid #555;
    caret-color: #fff;
}

    /* Focus ring stays on-brand */
    .form-control.pkg-name:focus,
    input.pkg-name:focus {
        border-color: var(--wesb-red);
        box-shadow: 0 0 5px var(--wesb-red);
    }

    /* Placeholder color */
    .form-control.pkg-name::placeholder,
    input.pkg-name::placeholder {
        color: #fff;
        opacity: 0.6;
    }

    /* Keep autofill readable on dark bg */
    input.pkg-name:-webkit-autofill,
    input.pkg-name:-webkit-autofill:focus {
        -webkit-text-fill-color: #fff !important;
        -webkit-box-shadow: 0 0 0px 1000px var(--wesb-black) inset !important;
        box-shadow: 0 0 0px 1000px var(--wesb-black) inset !important;
    }

/* === PWA Install Banner === */
.pwa-install-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #2c2c2c;
    color: #f1f1f1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    z-index: 9999;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.4);
    border-top: 2px solid var(--wesb-red);
}

.pwa-install-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.pwa-install-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
}

.pwa-install-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.pwa-install-btn {
    background-color: var(--wesb-red);
    color: #fff;
    border: none;
    padding: 8px 20px;
    font-weight: bold;
    text-transform: uppercase;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.pwa-install-btn:hover {
    background-color: var(--wesb-orange);
}

.pwa-install-close {
    background: none;
    border: none;
    color: #999;
    font-size: 1.4rem;
    cursor: pointer;
    padding: 4px 8px;
    line-height: 1;
}

.pwa-install-close:hover {
    color: #fff;
}

/* === SW Update Banner === */
.sw-update-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--wesb-red);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 12px 16px;
    z-index: 10000;
    font-weight: bold;
}

.sw-update-btn {
    background-color: #fff;
    color: var(--wesb-red);
    border: none;
    padding: 6px 16px;
    font-weight: bold;
    text-transform: uppercase;
    border-radius: 4px;
    cursor: pointer;
}

.sw-update-btn:hover {
    background-color: #f0f0f0;
}

.sw-update-dismiss {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.3rem;
    cursor: pointer;
    padding: 4px 8px;
    line-height: 1;
}

.sw-update-dismiss:hover {
    color: #fff;
}

/* === Offline Banner === */
.offline-banner {
    background-color: #e67700;
    color: #fff;
    text-align: center;
    padding: 8px 16px;
    font-weight: bold;
    font-size: 0.9rem;
}
