/* ----------------- Reset and Body ----------------- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #6a11cb, #8aa6d5);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

/* ----------------- Card Container ----------------- */
.container {
    background-color: #ffffff;
    padding: 40px 30px;
    border-radius: 15px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.25);
    width: 380px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.container:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
}

/* ----------------- Headings ----------------- */
h2 {
    margin-bottom: 25px;
    font-size: 1.8em;
    color: #333;
    letter-spacing: 0.5px;
}

/* ----------------- Inputs ----------------- */
input {
    width: 90%;
    padding: 14px 12px;
    margin: 10px 0;
    border-radius: 8px;
    border: 1px solid #ccc;
    font-size: 16px;
    outline: none;
    transition: all 0.3s ease;
}

input:focus {
    border-color: #2575fc;
    box-shadow: 0 0 5px rgba(37, 117, 252, 0.5);
}

/* ----------------- Buttons ----------------- */
button {
    width: 95%;
    padding: 14px;
    background: linear-gradient(90deg, #6a11cb, #2575fc);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 15px;
    transition: all 0.3s ease;
}

button:hover {
    background: linear-gradient(90deg, #2575fc, #6a11cb);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37, 117, 252, 0.3);
}

/* ----------------- Error / Message ----------------- */
p.error {
    color: #ff4d4f;
    font-size: 0.9em;
    margin-top: 10px;
}

p.message {
    color: #28a745;
    font-size: 0.9em;
    margin-top: 10px;
}

/* ----------------- Links ----------------- */
a {
    display: inline-block;
    margin-top: 15px;
    color: #2575fc;
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: #6a11cb;
    text-decoration: underline;
}
/* Box wrapper for table */
.table-box {
    background-color: #ffffff;
    padding: 25px 20px;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    margin: 20px;
}

.table-box h2 {
    margin-bottom: 20px;
    color: #333;
    font-size: 1.5em;
}

/* Container for scrollable table if too wide */
.table-container {
    overflow-x: auto;
}

/* Styled table */
.styled-table {
    border-collapse: collapse;
    width: 100%;
    font-size: 0.95em;
    min-width: 900px; /* ensures horizontal scroll if needed */
    border-radius: 5px 5px 0 0;
    overflow: hidden;
}

.styled-table thead tr {
    background-color: #4CAF50;
    color: #ffffff;
    text-align: left;
    font-weight: bold;
}

.styled-table tbody tr {
    border-bottom: 1px solid #dddddd;
}

.styled-table tbody tr:nth-of-type(even) {
    background-color: #f3f3f3;
}

.styled-table tbody tr:last-of-type {
    border-bottom: 2px solid #4CAF50;
}

/* Optional: hover effect for rows */
.styled-table tbody tr:hover {
    background-color: #e0f7fa;
    transition: 0.3s;
}
