/* Overall layout */
body {
    margin: 0;
    font-family: Arial, sans-serif;
    background-color: #084164;
}

/* Background wrapper */
.app-background {
    min-height: 100vh;
    display: flex;
    align-items: flex-start; /* start from top so tall tables scroll naturally */
    justify-content: center;
    padding: 8px; /* narrow side margins */
}

/* Main white card */
.card {
    background-color: #ffffff;
    border-radius: 12px;
    padding: 16px 18px 20px;
    max-width: 1200px;  /* much wider than before; good for tablets */
    width: 100%;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
}

/* Slightly different feel on very small screens */
@media (max-width: 768px) {
    .app-background {
        padding: 0;
    }
    .card {
        border-radius: 0;
        max-width: 100%;
        width: 100%;
        padding: 12px 10px 16px;
        box-shadow: none;
    }
}

/* Logo area */
.card-logo {
    text-align: center;
    margin-bottom: 16px;
}

/* Nav buttons (Home / Back) */
.card-nav {
    display: flex;
    gap: 10px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.nav-btn {
    background-color: #084164;
    color: #ffffff;
    padding: 6px 12px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.9rem;
}

.nav-btn:hover {
    opacity: 0.9;
}

/* Main card content */
.card-content h1,
.card-content h2,
.card-content h3 {
    margin-top: 0;
}

/* Home page big buttons */
.home-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.home-button {
    flex: 1 1 200px;
    padding: 14px 16px;
    text-align: center;
    border-radius: 10px;
    background-color: #084164;
    color: #ffffff;
    text-decoration: none;
    font-size: 1rem;
    font-weight: bold;
}

.home-button:hover {
    opacity: 0.9;
}

/* Scrollable area with sticky headers (used for participant tables) */
.table-wrapper {
    max-height: 70vh;      /* table area can scroll while header stays */
    overflow-y: auto;
    margin-top: 8px;
}

/* Base table styles */
.table {
    width: 100%;
    border-collapse: collapse;
}

/* Sticky header row */
.table thead th {
    padding: 8px;
    border-bottom: 1px solid #eeeeee;
    text-align: left;
    background-color: #084164;
    color: #ffffff;
    position: sticky;
    top: 0;
    z-index: 2;
}

/* Table body cells */
.table td {
    padding: 8px;
    border-bottom: 1px solid #eeeeee;
    text-align: left;
}

/* Buttons */
.btn {
    border: none;
    border-radius: 6px;
    padding: 6px 10px;
    cursor: pointer;
    font-size: 0.9rem;
}

.btn-primary {
    background-color: #084164;
    color: #ffffff;
}

.btn-danger {
    background-color: #c0392b;
    color: #ffffff;
}

.btn-secondary {
    background-color: #777777;
    color: #ffffff;
}

.btn[disabled] {
    opacity: 0.5;
    cursor: default;
}

/* Action buttons cell on Sign-In/Out sheets */
.actions-cell {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.actions-cell form {
    margin: 0;
}

.actions-cell a {
    text-decoration: none;
}
