:root {
    --bg-main: #f5f7fa;
    --bg-header: #e4e7ef;
    --bg-accent: #d8def0;
    --bg-hover: #c5cce4;

    --text-main: #2b2f3a;
    --text-accent: #3d4f91;

    --border-light: #c9cdd8;
    --radius: 6px;
    --transition: 0.25s ease;
}

html {
    font-family: "Segoe UI", sans-serif;
    font-size: 16px;
}

body {
    margin: 0;
    padding: 0;
    background: var(--bg-main);
    color: var(--text-main);
}

/* Universal reset */
*, *::before, *::after {
    box-sizing: border-box;
}

/* HEADER */
header {
    width: 100%;
    height: 60px;
    background: var(--bg-header);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}

header a {
    text-decoration: none;
    color: var(--text-accent);
    padding: 10px 16px;
    border-radius: var(--radius);
    transition: var(--transition);
}

header a:hover {
    background: var(--bg-hover);
}

/* SUBMENU */
.submenu {
    display: flex;
    justify-content: center;
    margin: 20px 0;
    gap: 15px;
}

.submenu a {
    padding: 8px 14px;
    background: var(--bg-accent);
    border-radius: var(--radius);
    text-decoration: none;
    color: var(--text-accent);
    transition: var(--transition);
}

.submenu a:hover {
    background: var(--bg-hover);
}

.select {
    text-decoration: underline;
    text-decoration-style: solid;
    font-weight: 600;
}

/* SUCCESS / ERROR */
.success {
    color: #0f5132;
    background: #d1e7dd;
    border-left: 4px solid #0f5132;
    padding: 10px;
    width: fit-content;
    margin: 10px auto;
}

.error {
    color: #842029;
    background: #f8d7da;
    border-left: 4px solid #842029;
    padding: 10px;
    width: fit-content;
    margin: 10px auto;
}

/* FORMS */
.add, 
.edit-select form, 
.delete-select form {
    width: 100%;
    max-width: 480px;
    margin: 20px auto;
    padding: 20px;
    background: #fff;
    border-radius: var(--radius);
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

label {
    margin-bottom: 4px;
    font-weight: 600;
}

input, select, textarea {
    width: 100%;
    padding: 10px;
    font-size: 15px;
    color: var(--text-main);
    background: #fff;
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    margin-bottom: 12px;
    transition: var(--transition);
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--text-accent);
    outline: none;
    box-shadow: 0 0 5px rgba(61,79,145,0.25);
}

/* BUTTONS */
.form-btn {
    width: 100%;
    height: 45px;
    background: var(--text-accent);
    color: #fff;
    border: none;
    border-radius: var(--radius);
    transition: var(--transition);
    font-size: 16px;
}

.form-btn:hover {
    background: #27376e;
    cursor: pointer;
}

/* TABLE */
table {
    margin: 20px auto;
    border-collapse: collapse;
    width: 95%;
    background: #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

td, th {
    padding: 10px;
    border-bottom: 1px solid var(--border-light);
    font-size: 14px;
}

th {
    background: var(--bg-accent);
    color: var(--text-accent);
    text-align: left;
}

/* PAGINATION */
.pagination {
    text-align: center;
    margin: 20px 0;
}

.pagination a,
.pagination span {
    padding: 6px 10px;
    margin: 0 4px;
    border-radius: var(--radius);
    background: var(--bg-accent);
    color: var(--text-accent);
    text-decoration: none;
    transition: var(--transition);
}

.pagination a:hover {
    background: var(--bg-hover);
}

/* FOOTER */
footer {
    width: 100%;
    height: 50px;
    background: var(--bg-header);
    position: fixed;
    bottom: 0;
    left: 0;
    box-shadow: 0 -1px 4px rgba(0,0,0,0.1);
}
