:root {
    --primary-color: #e63946;
    --secondary-color: #f1faee;
    --accent-color: #a8dadc;
    --dark-color: #1d3557;
    --light-color: #f8f9fa;
    --success-color: #2a9d8f;
    --font-main: 'Inter', sans-serif;
}

body {
    font-family: var(--font-main);
    background-color: var(--secondary-color);
    color: var(--dark-color);
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

header {
    background-color: var(--primary-color);
    color: white;
    padding: 1rem 2rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

header nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header a {
    color: white;
    text-decoration: none;
    margin-left: 1.5rem;
    font-weight: 500;
}

header .logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    margin-left: 0;
}

header .logo img {
    max-height: 60px;
    height: auto;
}

header .logo span {
    font-size: 1.5rem;
    font-weight: 700;
}

main {
    flex: 1;
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}

.container {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

h1,
h2,
h3 {
    color: var(--dark-color);
}

button,
.btn {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.3s;
    text-decoration: none;
    display: inline-block;
}

button:hover,
.btn:hover {
    background-color: #d62828;
}

.btn-secondary {
    background-color: var(--dark-color);
}

.btn-secondary:hover {
    background-color: #457b9d;
}

input[type="text"],
input[type="email"],
input[type="password"],
select {
    width: 100%;
    padding: 0.75rem;
    margin-bottom: 1rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

th,
td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid #eee;
}

th {
    background-color: var(--light-color);
}

footer {
    background-color: var(--dark-color);
    color: white;
    text-align: center;
    padding: 1rem;
    margin-top: auto;
}

.alert {
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 4px;
}

.alert-error {
    background-color: #fee2e2;
    color: #b91c1c;
}

.alert-success {
    background-color: #d1fae5;
    color: #065f46;
}

/* Animation for Revelation */
#revealBox {
    text-align: center;
    padding: 3rem;
}

.reveal-text {
    font-size: 2rem;
    font-weight: bold;
    margin: 2rem 0;
    min-height: 3rem;
}

.hidden {
    display: none;
}

/* General Styles for new classes */
.restriction-item {
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 4px;
}

.form-actions {
    display: flex;
    align-items: center;
    margin-top: 1rem;
}

.draw-options {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
}

/* Responsive Design */
@media (max-width: 768px) {

    /* Header */
    header nav {
        flex-direction: column;
        gap: 1rem;
    }

    header a {
        margin-left: 0;
        display: block;
        text-align: center;
        padding: 0.5rem;
        width: 100%;
        box-sizing: border-box;
    }

    header .logo {
        margin-bottom: 0.5rem;
    }

    header nav>div:last-child {
        display: flex;
        flex-direction: column;
        width: 100%;
        gap: 0.5rem;
    }

    /* Layout */
    main {
        padding: 1rem;
    }

    .container {
        padding: 1rem;
    }

    .page-header {
        flex-direction: column;
        align-items: stretch !important;
        gap: 1rem;
    }

    .page-header .actions {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
        width: 100%;
    }

    .page-header .actions .btn {
        width: 100%;
        text-align: center;
        box-sizing: border-box;
    }

    /* Forms */
    .responsive-form {
        flex-direction: column !important;
        align-items: stretch !important;
    }

    .responsive-form>div {
        width: 100%;
    }

    .responsive-form button {
        width: 100%;
        margin-top: 0.5rem;
    }

    /* Tables - Card View */
    table,
    thead,
    tbody,
    th,
    td,
    tr {
        display: block;
    }

    thead tr {
        position: absolute;
        top: -9999px;
        left: -9999px;
    }

    tr {
        margin-bottom: 1rem;
        border: 1px solid #eee;
        border-radius: 8px;
        padding: 1rem;
        background: #fff;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    }

    td {
        border: none;
        border-bottom: 1px solid #eee;
        position: relative;
        padding-left: 0;
        text-align: left;
        padding-top: 0.75rem;
        padding-bottom: 0.75rem;
        display: flex;
        flex-direction: column;
        gap: 0.25rem;
    }

    td:before {
        content: attr(data-label);
        font-weight: 600;
        color: var(--dark-color);
        font-size: 0.9rem;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

    td:last-child {
        border-bottom: none;
        gap: 0.5rem;
        margin-top: 0.5rem;
    }

    td:last-child:before {
        display: none;
    }

    td:last-child .btn {
        display: block;
        text-align: center;
        width: 100%;
        box-sizing: border-box;
        margin-bottom: 0.5rem;
    }

    td:last-child .btn:last-child {
        margin-bottom: 0;
    }

    /* Restrictions List */
    .restriction-item {
        flex-direction: column;
        align-items: stretch !important;
        gap: 0.5rem;
    }

    .restriction-item form {
        width: 100%;
    }

    .restriction-item button {
        width: 100%;
    }

    /* Form Actions */
    .form-actions {
        flex-direction: column;
        gap: 0.5rem;
    }

    .form-actions .btn,
    .form-actions button {
        width: 100%;
        margin-left: 0 !important;
    }

    /* Draw Options */
    .draw-options {
        flex-direction: column;
        gap: 1rem;
    }
}