:root {
    --dim-gray:       #596869;
    --reseda-green:   #6C8976;
    --cambridge-blue: #79B791;
    --celadon:        #ABD1B5;
    --mint-cream:     #E6EFE6;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background: var(--mint-cream);
    color: var(--dim-gray);
}

a {
    color: var(--cambridge-blue);
    text-decoration: none;
}

.header {
    width: 100%;
    height: 100px;
    background-color: var(--dim-gray);
    display: flex;
    justify-content: center;
    position: sticky;
    top: 0;
}

.header-wrapper {
    width: 95%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.title h1 {
    color: #ffffff;
    font-size: 18px;
    letter-spacing: 2px;
    transition: .25s;
}

.title h1:hover {
    scale: 1.03;
    cursor: pointer;
}

.header-nav {
    display: flex;
    gap: 28px;
}

.header-nav a {
    color: var(--mint-cream);
    font-size: 14px;
    font-weight: bold;
    letter-spacing: 0.5px;
    transition: color .2s;
}

.header-nav a:hover {
    color: var(--celadon);
}

.buttons {
    display: flex;
    gap: 10px;
}

.header-button {
    width: 120px;
    height: 32px;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    font-weight: bold;
    font-size: 13px;
    transition: scale .2s;
}

.header-button:hover {
    scale: 1.05;
}

#primary {
    background-color: var(--cambridge-blue);
    color: #ffffff;
}

#secondary {
    background-color: var(--mint-cream);
    color: var(--dim-gray);
}

/* hero section */
.hero {
    min-height: calc(100vh - 100px);
    display: flex;
    align-items: center;

    background-image: linear-gradient(rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.55)), url('../media/dekuip.jpg');
    background-color: var(--dim-gray);
    background-size: cover;
    background-position: center;
}

.hero-content {
    padding: 0 80px;
    color: #ffffff;
    max-width: 700px;
}

.hero-label {
    font-size: 14px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--celadon);
    margin-bottom: 16px;
}

.hero-title {
    font-size: 42px;
    line-height: 1.3;
    margin-bottom: 32px;
    font-weight: bold;
}

.highlight {
    color: var(--cambridge-blue);
}

.hero-button {
    background-color: var(--cambridge-blue);
    color: #ffffff;
    border: none;
    padding: 14px 32px;
    font-size: 16px;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color .25s, scale .25s;
}

.hero-button:hover {
    background-color: var(--reseda-green);
    scale: 1.03;
}

/* info section */
.info-section {
    background-color: #ffffff;
    padding: 60px 0;
}

.info-wrapper {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    gap: 60px;
}

.info-column {
    flex: 1;
}

.info-column h2 {
    font-size: 22px;
    margin-bottom: 20px;
    color: var(--dim-gray);
}

.info-column ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.info-column ul li::before {
    content: '— ';
    color: var(--cambridge-blue);
    font-weight: bold;
}

.info-column p {
    color: var(--reseda-green);
    line-height: 1.7;
    font-size: 15px;
}

/* admin page */
.admin-page {
    width: 90%;
    max-width: 1000px;
    margin: 48px auto;
}

.admin-page h2 {
    font-size: 20px;
    color: var(--dim-gray);
    margin-bottom: 0;
}

/* admin table */

table {
    width: 100%;
    border-collapse: collapse;
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-top: 16px;
}

thead {
    background: var(--dim-gray);
    color: #ffffff;
}

th, td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--mint-cream);
}

tbody tr {
    transition: .25s;
}

/* zebra tiling */
tbody tr:nth-child(even) {
    background: var(--mint-cream);
}

tbody tr:hover {
    background: var(--celadon);
}

.action-cell {
    text-align: center;
}

/* form buttons */
button[type="submit"] {
    background: var(--cambridge-blue);
    color: #ffffff;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color .25s, scale .25s;
}

button[type="submit"]:hover {
    background: var(--reseda-green);
    scale: 1.01;
}

button[type="button"] {
    background: var(--mint-cream);
    color: var(--dim-gray);
    border: 1px solid var(--celadon);
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color .25s, scale .25s;
}

button[type="button"]:hover {
    background: var(--celadon);
    scale: 1.01;
}

/* login page */
.login-page {
    min-height: calc(100vh - 100px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-card {
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    padding: 40px 48px;
    width: 100%;
    max-width: 420px;
}

.login-card h2 {
    font-size: 24px;
    margin-bottom: 28px;
    color: var(--dim-gray);
}

.login-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 18px;
}

.login-field label {
    font-size: 13px;
    font-weight: bold;
    color: var(--dim-gray);
}

.login-field input {
    padding: 10px 12px;
    border: 1px solid var(--celadon);
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color .2s;
}

.login-field input:focus {
    border-color: var(--cambridge-blue);
}

.login-card button[type="submit"] {
    width: 100%;
    padding: 12px;
    font-size: 15px;
    border-radius: 6px;
    margin-top: 8px;
}

.login-error {
    color: #c0392b;
    font-size: 13px;
    margin-bottom: 16px;
}

/* form page */
.form-page {
    min-height: calc(100vh - 100px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.form-card {
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    padding: 40px 48px;
    width: 100%;
    max-width: 600px;
}

.form-card h2 {
    font-size: 22px;
    margin-bottom: 28px;
    color: var(--dim-gray);
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px 24px;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.form-field.full-width {
    grid-column: 1 / -1;
}

.form-field label {
    font-size: 13px;
    font-weight: bold;
    color: var(--dim-gray);
}

.form-field input,
.form-field select {
    padding: 10px 12px;
    border: 1px solid var(--celadon);
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color .2s;
    background: #ffffff;
}

.form-field input:focus,
.form-field select:focus {
    border-color: var(--cambridge-blue);
}

.form-actions {
    margin-top: 24px;
    display: flex;
    gap: 10px;
}

.form-error {
    color: #c0392b;
    font-size: 13px;
    margin-bottom: 4px;
    grid-column: 1 / -1;
    padding-left: 16px;
}

/* profile page */
.profile-page {
    min-height: calc(100vh - 100px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.profile-card {
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    padding: 40px 48px;
    width: 100%;
    max-width: 520px;
}

.profile-card h2 {
    font-size: 22px;
    margin-bottom: 24px;
    color: var(--dim-gray);
}

.profile-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px 24px;
    margin-bottom: 28px;
}

.profile-field label {
    font-size: 11px;
    font-weight: bold;
    color: var(--reseda-green);
    display: block;
    margin-bottom: 3px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

.profile-field p {
    font-size: 14px;
    color: var(--dim-gray);
}

.profile-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.btn-danger {
    background: #c0392b !important;
}