/* ===== GENERAL RESET ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    max-width: 100%;
    height: 100%;
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    overflow-x: hidden; /* Prevent horizontal scroll */
}

/* ===== RESET CONTAINER ===== */
.reset-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 140px); /* Space for header/footer */
    padding-top: 20px;
}

/* ===== RESET CARD ===== */
.reset-card {
    background: #fff;
    padding: 25px;
     padding-top: 25px;
    border-radius: 12px;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* ===== HEADINGS ===== */
.reset-card h2 {
    text-align: center;
    margin-bottom: 20px;
    color: #333;
}

/* ===== FORM LABELS & INPUTS ===== */
.reset-form label {
    display: block;
    font-weight: bold;
    margin-top: 12px;
    color: #555;
}

.reset-form input {
    width: 100%;
    padding: 10px;
    margin-top: 5px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 14px;
}

/* ===== PASSWORD ICON ===== */
.password-wrapper {
    position: relative;
}

.password-wrapper i {
    position: absolute;
    top: 50%;
    right: 12px;
    transform: translateY(-50%);
    cursor: pointer;
    color: #888;
}

/* ===== PASSWORD STRENGTH BAR ===== */
#strength-bar-container {
    width: 100%;
    height: 6px;
    background: #ddd;
    border-radius: 3px;
    margin-top: 5px;
}

#strength-bar {
    height: 100%;
    width: 0;
    border-radius: 3px;
}

/* ===== MESSAGES ===== */
.error {
    background: #f8d7da;
    color: #842029;
    padding: 10px;
    border-radius: 6px;
    margin-bottom: 10px;
    font-size: 14px;
}

.success {
    background: #d1e7dd;
    color: #0f5132;
    padding: 10px;
    border-radius: 6px;
    margin-bottom: 10px;
    font-size: 14px;
}

/* ===== BUTTONS ===== */
.reset-form button {
    margin-top: 20px;
    width: 100%;
    padding: 12px;
    background: #007bff;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    color: #fff;
    cursor: pointer;
    transition: background 0.3s ease;
}

.reset-form button:disabled {
    background: #bbb;
    cursor: not-allowed;
}

.reset-form button:hover:not(:disabled) {
    background: #0056b3;
}

/* ===== TABLES ===== */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background: white;
    overflow-x: auto;
    display: block; /* Makes table scrollable on small screens */
}

thead {
    background-color: #1d3557;
    color: white;
}

th, td {
    padding: 12px;
    text-align: left;
    border: 1px solid #ddd;
    white-space: nowrap;
}

tbody tr:nth-child(even) {
    background-color: #f2f2f2;
}

@media screen and (max-width: 768px) {
    table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    th, td {
        font-size: 14px;
    }
}

/* ===== NAVBAR ===== */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #1d3557;
    padding: 12px 20px;
    color: white;
}

.navbar .menu-toggle {
    display: none;
     color: white;
    font-size: 24px;
    cursor: pointer;
}

.navbar ul {
    list-style: none;
    display: flex;
    gap: 15px;
     color: white;
}

.navbar a {
    color: white;
    text-decoration: none;
}

/* ===== MOBILE NAVBAR ===== */
@media screen and (max-width: 768px) {
    .navbar ul {
        display: none;
        flex-direction: column;
        width: 100%;
        background: #1d3557;
        position: absolute;
        top: 60px;
        left: 0;
        padding: 10px 0;
    }
    .navbar ul.show {
        display: flex;
    }
    .navbar .menu-toggle {
        display: block;
    }
}

/* ===== FOOTER ===== */
footer {
    background: #1d3557;
    color: white;
    padding: 15px;
    text-align: center;
    margin-top: 20px;
}

/* ===== RESPONSIVE FORM ===== */
@media (max-width: 600px) {
    .reset-card {
        padding: 20px;
    }
    .reset-form label {
        font-size: 14px;
    }
    .reset-form input {
        font-size: 14px;
    }
    .reset-form button {
        font-size: 15px;
    }
}
