* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Mina', sans-serif;
}

body {
    background-color: #f9f9f9;
    color: #111;
    line-height: 1.6;
    font-size: 16px;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.error-message {
    background-color: #fdecea;
    border: 1px solid #e57373;
    color: #b71c1c;
    padding: 12px 16px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-size: 0.95em;
    text-align: center;
}

.checkbox-group {
    display: inline-flex;
    align-items: center;
    margin-bottom: 15px;
    font-size: 0.85em;
    color: #333;
    gap: 8px;
}

.checkbox-group input[type="checkbox"] {
    accent-color: #111;
}

.checkbox-group label {
    font-weight: 600;
}

a.button {
    display: inline-block;
    background-color: #111;
    color: white;
    padding: 12px 24px;
    border-radius: 10px;
    font-size: 1em;
    font-weight: 500;
    text-decoration: none;
    text-align: center;
    transition: background-color 0.25s ease, transform 0.15s ease;
}

a.button:hover {
    background-color: #444;
    transform: translateY(-2px);
}

.login-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
    background-color: #e2e2e2;
}

.login-box {
    background-color: #fff;
    padding: 40px 35px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    width: 100%;
    max-width: 380px;
}

.login-box h2 {
    margin-bottom: 25px;
    font-size: 1.6em;
    text-align: center;
    color: #222;
}

.input-group {
    position: relative;
    margin-bottom: 18px;
}

.input-group input {
    width: 100%;
    padding: 14px 12px;
    font-size: 0.95em;
    border: 1px solid #ddd;
    border-radius: 8px;
    background-color: #fff;
    outline: none;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.input-group input:focus {
    border-color: #111;
    box-shadow: 0 0 0 3px rgba(17, 17, 17, 0.1);
}

.input-group label {
    position: absolute;
    top: 50%;
    left: 12px;
    transform: translateY(-50%);
    background: #fff;
    padding: 0 4px;
    color: #888;
    font-size: 0.85em;
    pointer-events: none;
    transition: 0.2s ease all;
}

.input-group input:focus + label,
.input-group input:not(:placeholder-shown) + label {
    top: -8px;
    font-size: 0.75em;
    color: #111;
}

header {
    width: 100%;
    background-color: #1e1e1e;
    padding: 15px 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.navbar .logo a {
    color: white;
    font-size: 1.5em;
    text-decoration: none;
    font-weight: 700;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 20px;
}

nav li a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9em;
    transition: color 0.25s ease;
}

nav li a:hover {
    color: #ddd;
}

.dashboard-container {
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.05);
    width: 100%;
    max-width: 1650px;
    padding: 40px;
    margin-top: 90px;
    margin-left: auto;
    margin-right: auto;
}

.dashboard-container .button {
    margin-bottom: 25px;
    display: inline-block;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    flex-wrap: wrap;
    gap: 12px; 
}

.button.add-btn {
    background-color: #2e7d32;
    font-weight: 600;
    font-size: 0.95em;
    padding: 12px 20px;
    border-radius: 8px;
    text-decoration: none;
    color: white;
    transition: background-color 0.25s ease, transform 0.15s ease;
}

.button.add-btn:hover {
    background-color: #1b5e20;
    transform: translateY(-2px);
}

h1 {
    font-size: 2em;
    color: #111;
    margin-bottom: 25px;
    text-align: center;
    font-weight: 600;
}

h3 {
    text-align: center;
}

.content h2 {
    font-size: 1.4em;
    margin-bottom: 20px;
    color: #333;
    font-weight: 500;
    text-align: center;
}

table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
}

table th, table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

table th {
    background-color: #1e1e1e;
    color: white;
    font-weight: 600;
    padding: 14px;
    font-size: 0.95em;
}

table td {
    padding: 14px;
    font-size: 0.9em;
    vertical-align: middle;
}

table tr:hover {
    background-color: #f0f0f0;
    transition: background-color 0.2s ease;
}

table tr:nth-child(even) {
    background-color: #f7f7f7;
}

table td a {
    background-color: #eee;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.85em;
    margin-right: 6px;
    color: #111;
    text-decoration: none;
    transition: background-color 0.2s ease;
}

table td a:hover {
    background-color: #ddd;
}
form {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-top: 25px;
}

label {
    font-size: 0.95em;
    color: #333;
    font-weight: 500;
}

select {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 0.95em;
    width: 100%;
    background-color: #fff;
}

input[type="date"], input[type="number"] {
    padding-left: 15px;
}

button {
    background-color: #1e1e1e;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 1em;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.25s ease, transform 0.15s ease;
}

button:hover {
    background-color: #333;
    transform: translateY(-1px);
}

#phone-questions-popup {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.15);
    width: 80%;
    max-width: 600px;
    z-index: 9999;
    transition: all 0.3s ease-in-out;
}

#phone-questions-popup h2 {
    font-size: 1.4em;
    margin-bottom: 20px;
    color: #111;
    text-align: center;
}

#phone-questions-popup ul {
    list-style: none;
    padding: 0;
}

#phone-questions-popup li {
    font-size: 1em;
    margin: 10px 0;
}

#phone-questions-popup button {
    background-color: #111;
    color: white;
    padding: 12px 25px;
    border-radius: 8px;
    font-size: 1em;
    font-weight: 500;
    cursor: pointer;
    border: none;
    transition: background-color 0.25s ease;
    margin-top: 20px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

#phone-questions-popup button:hover {
    background-color: #444;
}

#phone-questions-overlay {
    display: none; 
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 9998;
}

.styled-form {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    max-width: 500px;
    margin: 30px auto;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.styled-form label {
    font-size: 0.95em;
    font-weight: 600;
    color: #222;
    margin-bottom: 5px;
}

.styled-form input[type="text"],
.styled-form input[type="email"],
.styled-form input[type="tel"],
.styled-form input[type="password"],
.styled-form input[type="number"],
.styled-form input[type="date"],
.styled-form select {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 0.95em;
    outline: none;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
    background-color: #fafafa;
}

.styled-form input:focus,
.styled-form select:focus {
    border-color: #111;
    box-shadow: 0 0 0 3px rgba(17, 17, 17, 0.1);
    background-color: #fff;
}

.styled-form button {
    align-self: flex-start;
    background-color: #1e1e1e;
    color: #fff;
    border: none;
    padding: 12px 22px;
    border-radius: 8px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.25s ease, transform 0.15s ease;
}

.styled-form button:hover {
    background-color: #333;
    transform: translateY(-2px);
}

.styled-formm {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    max-width: 1000px; 
    margin: 30px auto;
    display: grid;
    grid-template-columns: 1fr 1fr; 
    gap: 20px 30px;
}

.styled-formm h3 {
    grid-column: 1 / -1; 
    text-align: center;
}

.styled-formm label {
    font-size: 0.95em;
    font-weight: 600;
    color: #222;
    margin-bottom: 6px;
    display: block;
}

.styled-formm textarea {
    grid-column: 1 / -1; 
}

.styled-formm button[type="submit"] {
    grid-column: 1 / -1;
    justify-self: center;
}

.styled-formm input[type="text"],
.styled-formm input[type="email"],
.styled-formm input[type="tel"],
.styled-formm input[type="password"],
.styled-formm input[type="number"],
.styled-formm input[type="date"],
.styled-formm select {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 0.95em;
    outline: none;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
    background-color: #fafafa;
}



@media (max-width: 768px) {
    .dashboard-container {
        padding: 20px;
    }
    h1 {
        font-size: 1.5em;
    }
    table {
        font-size: 14px;
    }
    nav ul {
        flex-direction: column;
        gap: 10px;
        margin-bottom: 20px;
    }
    nav li {
        font-size: 1em;
        padding: 8px 0;
    }
    form {
        gap: 15px;
    }
    label {
        font-size: 0.9em;
    }
    input, select {
        font-size: 0.95em;
        padding: 10px;
    }
    button {
        font-size: 1em;
        padding: 10px 20px;
    }
}
