body {
    font-family: 'Segoe UI', Arial, sans-serif;
    background: #f4f6fa;
    color: #222;
    margin: 0;
    padding: 0;
}

h1, h2 {
    color: #224466;
    margin-top: 24px;
}

ul {
    padding: 0;
    list-style: none;
}

li {
    margin: 12px 0;
}

a {
    color: #2a70e0;
    text-decoration: none;
    font-weight: 500;
}

a:hover {
    text-decoration: underline;
}

.admin-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fff;
    color: #B71C1C;
    bottom-boarder: 6px solid #e3be44;
    padding: 0 24px;
    height: 64px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.admin-nav-left, .admin-nav-center, .admin-nav-right {
    display: flex;
    align-items: center;
    height: 64px;
}

.admin-nav-center {
    flex: 1;
    justify-content: center;
    text-align: center;
    background: #fff;
}

.club-name {
    font-size: 1.5rem;
    font-weight: bold;
    color: #FFD700;
    margin-left: 12px;
    letter-spacing: 1px;
    text-shadow: 1px 1px 0 #222;
    white-space: nowrap;
}

.logout-btn {
    background: #fff;
    color: #B71C1C;
    border: 2px solid #e3be44;
    padding: 8px 18px;
    border-radius: 6px;
    font-weight: bold;
    margin-left: 20px;
    cursor: pointer;
    transition: background 0.2s;
    text-decoration: none;
    display: inline-block;
}
.logout-btn:hover {
    background: #e3be44;
}

.dropdown {
    position: relative;
    display: inline-block;
}

.dropbtn {
    background: #FFF;
    color: #B71C1C;
    font-weight: bold;
    padding: 8px 18px;
    border: 1px solid #e3be44;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
    box-shadow: 0 2px 6px rgba(0,0,0,0.04);
    margin-right: 12px;
}

.dropbtn:focus, .dropbtn.active {
    border: 2px solid #B8860B;
    background: #faf8ef;
}

.dropdown-content {
    display: none;
    position: absolute;
    left: 0;
    top: 100%;
    min-width: 180px;
    background: #fff;
    border: 1.5px solid #e3be44; /* Updated gold */
    border-radius: 8px;
    box-shadow: 0 4px 18px rgba(80, 60, 0, 0.11);
    z-index: 999;
    font-weight: 500;
}

.dropdown-content a {
    color: #B71C1C;
    background: #fff;
    font-weight: 500;
    padding: 11px 18px;
    text-shadow: 0 1px 0 #fff, 0 0.5px 1px #0002;
    text-decoration: none;
    display: block;
    border-bottom: 1px solid #e3be44; /* Updated gold */
    border-radius: 0;
    font-size: 1.08rem;
    letter-spacing: 0.5px;
}
.dropdown-content a:last-child {
    border-bottom: none;
}

.dropdown-content a:hover {
    background-color: #f7ecd1;
}


.container {
    max-width: 800px;
    margin: 40px auto;
    background: #fff;
    padding: 36px;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(50,80,130,0.08);
}
@media (hover: hover) and (pointer: fine) {
    .dropdown-content {
        display: none;
    }
    .dropdown:hover .dropdown-content,
    .dropdown:focus-within .dropdown-content {
        display: block !important;
    }
    .dropbtn:focus + .dropdown-content,
    .dropbtn.active + .dropdown-content {
        display: block !important;
    }
}
/* Zebra striping for tables */
table tr:nth-child(even) {
    background-color: #faf7ef;
}
/* Highlight row on hover */
table tr:hover {
    background-color: #f7ecd1;
}
/* Grey-out inactive dancers */
tr.inactive {
    color: #888;
    background-color: #f0f0f0 !important;
}
form {
    max-width: 420px;
    margin: 32px auto;
    background: #faf7ef;
    padding: 32px 28px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(80,80,30,0.05);
}
form label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    color: #B71C1C;
}
form input[type="text"], form input[type="tel"], form input[type="file"], form input[type="email"] {
    width: 100%;
    padding: 8px 10px;
    margin-bottom: 18px;
    border: 1px solid #e3be44;
    border-radius: 5px;
    font-size: 1rem;
}
form button, form a {
    margin-top: 16px;
    margin-right: 12px;
    padding: 8px 24px;
    border-radius: 6px;
    border: 1.5px solid #e3be44;
    font-size: 1rem;
    background: #fff;
    color: #B71C1C;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: background 0.15s;
}
form button:hover, form a:hover {
    background: #e3be44;
    color: #222;
}
.toggle-btn {
    background: #fff;
    color: #B71C1C;
    border: 1.5px solid #e3be44;
    border-radius: 6px;
    padding: 6px 18px;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
    margin-left: 12px;
}
.toggle-btn:hover {
    background: #e3be44;
    color: #222;
}
.history-btn {
    background: #fff;
    color: #B71C1C;
    border: 1.5px solid #e3be44;
    border-radius: 6px;
    padding: 7px 22px;
    font-weight: 500;
    text-decoration: none;
    margin-top: 18px;
    margin-right: 12px;
    display: inline-block;
    transition: background 0.15s, color 0.15s;
    float: right;
}
.history-btn:hover {
    background: #e3be44;
    color: #222;
}
.header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
    padding-top: 6px;
}

.profile-photo-edit {
    position: absolute;
    top: 48px;
    right: 48px;
    border-radius: 12px;
    border: 2.5px solid #e3be44;
    background: #fff;
    box-shadow: 0 2px 12px rgba(80,80,30,0.09);
    object-fit: cover;
}
.delete-btn {
    background: #fff;
    color: #B71C1C;
    border: 2px solid #B71C1C;
    border-radius: 6px;
    padding: 7px 20px;
    font-weight: bold;
    margin-top: 12px;
    cursor: pointer;
    transition: background 0.18s, color 0.18s;
}
.delete-btn:hover {
    background: #B71C1C;
    color: #fff;
}
.button-row {
    display: flex;
    flex-direction: row;
    gap: 16px;               /* Space between buttons/forms */
    justify-content: center;  /* or center */
    align-items: center;     /* Vertically center */
    margin-top: 18px;
}
.button-row form {
    margin: 0;
    padding: 0;
    display: inline;   /* Helps forms behave like inline-block */
    background: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
}
.button-row button {
    min-width: 140px;    /* Optional: Make buttons uniform */
}
.admin-table {
    border-collapse: collapse;
    width: 100%;
    margin-bottom: 24px;
    background: #fff;
}

.admin-table th,
.admin-table td {
    border: 1px solid #d8dde7;
    padding: 10px 12px;
    text-align: left;
}

.admin-table th {
    background: #f4f6fa;
    font-weight: 600;
}

.admin-table tr:nth-child(even) {
    background-color: #fafbfc;
}

.admin-table tr:nth-child(odd) {
    background-color: #fff;
}
/* Only dancers and reports use greyed-out for inactive */
.greyed-out {
    color: #aaa !important;
    background: #f6f6f6 !important;
}
.admin-table a,
.admin-table button {
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 15px;
    margin-right: 4px;
    background: #e9eef6;
    color: #224466;
    border: 1px solid #ccd5e0;
    text-decoration: none;
    transition: background 0.2s;
}
.admin-table a:hover,
.admin-table button:hover {
    background: #c2dafc;
    color: #000;
}
/* Center the last N columns (Actions/etc) in admin tables */
.admin-table td.actions,
.admin-table th.actions {
    text-align: center;
    vertical-align: middle;
}
.admin-table td.center,
.admin-table th.center {
    text-align: center;
    vertical-align: middle;
}
.flashes .error {
    color: #c00;
    background: #fff2f2;
    border: 1px solid #c00;
    padding: 6px 14px;
    border-radius: 6px;
    margin-bottom: 10px;
}

