/* Main stylesheet for the application */
* {
    box-sizing: border-box;
}

body {
    margin: 0px;
    padding: 0px;
    font-family: "Segoe UI", sans-serif;
    background-color: #f7f8fa;
    color: #222;
}

.top-bar {
    background: white;
    padding: 1em 2em;
    padding-top: 5px;
    padding-bottom: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
}

.top-bar h1 {
    font-size: 1.5em;
    display: flex;
    align-items: center;
    gap: 0.4em;
}

.nav {
    margin: 0px;
    padding: 0px;
    display: flex;
    gap: 1.5em;
    align-items: center;
}

.nav a {
    text-decoration: none;
    color: #444;
    font-weight: 500;
}

.nav a:hover {
    color: #000;
}

.nav .logout {
    color: #b00020;
}

main.content {
    max-width: 1100px;
    margin: auto;
    padding: 2em;
    padding-top: 20px;
}



input[type="text"] {
    width: 100%;
    padding: 0.75em 1em;
    margin: 1.5em 0 1em 0;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 1em;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}

th, td {
    text-align: left;
    padding: 1em;
    border-bottom: 1px solid #eee;
}

th {
    background: #fafafa;
    font-weight: 600;
    font-size: 0.95em;
}

tr:last-child td {
    border-bottom: none;
}

.button-link {
    background-color: #e0e7ff;
    color: #3730a3;
    padding: 0.4em 0.9em;
    border-radius: 6px;
    text-decoration: none;
}

.button-link:hover {
    background-color: #d8e0fd;
}

.button-link-red,
.button-link-red:visited {
    
    display: inline-block;
    background-color: #ffe4e4;
    color: #b00020;
    padding: 0.4em 0.9em;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font: inherit;
    text-decoration: none;
}

.button-link-red:hover {
    background-color: #fdd6d6;
}

.button-link-green,
.button-link-green:visited {
    background-color: #e0fce0;
    color: #197d19;
    padding: 0.4em 0.9em;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font: inherit;
    text-decoration: none;
    display: inline-block;
}

.button-link-green:hover {
    background-color: #c2f0c2;
}


.form-container {
    margin: 3rem auto;
    max-width: 50%;
    background: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 0 12px rgba(0,0,0,0.05);
}

.form-container label {
    font-weight: 600;
    margin-top: 1rem;
    display: block;
}

.form-container input[type="text"],
.form-container input[type="password"],
.form-container input[type="file"],
.form-container textarea {
    width: 100%;
    margin-top: 0.25rem;
    margin-bottom: 1rem;
    padding: 0.6rem;
    border: 1px solid #ccc;
    border-radius: 4px;
}


.upload-button {
    background: #4F46E5;
    color: white;
    padding: 0.6rem 1.2rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.upload-button:hover {
    background: #4338ca;
}

.success-msg {
    width: 600px;
    font-weight: bold;
    background-color: #e2ffe0;
    color: #30a33f;
    padding: 0.4em 0.9em;
    border-radius: 6px;
    margin-bottom: 20px;
}

.error-msg {
    color: red;
    font-weight: bold;
    margin-top: 1rem;
}

.admin-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin: 1.9rem auto;
    max-width: 900px;
}

.admin-box {
    background: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 0 12px rgba(0, 0, 0, 0.05);
}

.admin-box h3 {
    margin-bottom: 1rem;
}

.admin-form label {
    font-weight: 600;
    display: block;
    margin-top: 1rem;
}

.admin-form input,
.admin-form select {
    width: 100%;
    margin-top: 0.25rem;
    padding: 0.6rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1em;
    margin-bottom: 1rem;
}

.admin-form button {
    margin-top: 0.5rem;
}

#confirmationsTable {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0,0,0,0.05);
    margin-top: 2em;
}

#confirmationsTable th,
#confirmationsTable td {
    text-align: left;
    padding: 1em;
    border-bottom: 1px solid #eee;
}

#confirmationsTable th {
    background: #fafafa;
    font-weight: 600;
}

.back-link {
    display: inline-block;
    margin-bottom: 1em;
    color: #4F46E5;
    text-decoration: none;
    font-weight: 500;
}

.note-text {
    font-size: 0.70em;
    color: #555;
}

.actions {
    display: flex;
    gap: 0.5em;
}

#confirmationsTable td.actions-col {
    width: 1%;
    white-space: nowrap;
}

#confirmationsTable td.title-col {
    width: 49%;
}

