/* Admin and Login Styling */

/* Login Page */
.login-section {
    padding: 10rem 1.5rem 8rem;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 80vh;
    background: radial-gradient(circle at 10% 20%, rgba(29, 46, 76, 0.05) 0%, rgba(246, 248, 251, 1) 90%);
}

.login-card {
    background: var(--color-glass);
    border: var(--border-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 3rem;
    border-radius: 24px;
    width: 100%;
    max-width: 480px;
    box-shadow: var(--shadow-medium);
    text-align: center;
    animation: loginFadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes loginFadeUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.login-card h1 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
    background: linear-gradient(135deg, var(--club-primary-color) 30%, var(--club-secondary-color) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.login-card p {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.login-error {
    background-color: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: #ef4444;
    padding: 1rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9rem;
    text-align: left;
}

.login-form {
    text-align: left;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    color: var(--club-primary-color);
}

.form-group input[type="text"],
.form-group input[type="password"],
.form-group textarea {
    width: 100%;
    padding: 0.9rem 1.2rem;
    border: 1.5px solid rgba(29, 46, 76, 0.1);
    border-radius: 12px;
    font-family: inherit;
    font-size: 0.95rem;
    background: white;
    color: var(--club-primary-color);
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--club-secondary-color);
    box-shadow: 0 0 0 4px rgba(174, 138, 54, 0.15);
}

.login-submit-btn {
    width: 100%;
    padding: 1rem;
    background: var(--club-secondary-gradient);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px rgba(174, 138, 54, 0.25);
    margin-top: 1rem;
}

.login-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 25px rgba(174, 138, 54, 0.35);
    filter: brightness(1.05);
}

/* Admin Dashboard Section */
.admin-section {
    padding: 10rem 8% 8rem;
    max-width: 1400px;
    margin: 0 auto;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
    padding-bottom: 1.5rem;
    border-bottom: 1.5px solid rgba(29, 46, 76, 0.08);
}

.admin-header h1 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--club-primary-color);
    margin-bottom: 0.25rem;
}

.admin-header p {
    color: var(--color-text-muted);
    font-size: 1.05rem;
}

.logout-btn {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.8rem 1.6rem;
    background: white;
    border: 1.5px solid rgba(29, 46, 76, 0.15);
    color: var(--club-primary-color);
    font-weight: 600;
    text-decoration: none;
    border-radius: 12px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.logout-btn:hover {
    background: #fff0f0;
    border-color: #ff3333;
    color: #ff3333;
}

/* Admin Alerts */
.admin-alert {
    padding: 1.25rem 1.5rem;
    border-radius: 14px;
    margin-bottom: 2.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1rem;
    font-weight: 500;
    animation: alertSlideIn 0.5s ease forwards;
}

@keyframes alertSlideIn {
    from { opacity: 0; transform: translateY(-15px); }
    to { opacity: 1; transform: translateY(0); }
}

.alert-success {
    background-color: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.2);
    color: #15803d;
}

.alert-error {
    background-color: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: #b91c1c;
}

/* Admin Grid Layout */
.admin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
    gap: 3rem;
}

@media (max-width: 1024px) {
    .admin-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
}

.admin-card {
    background: white;
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(29, 46, 76, 0.04);
}

.admin-card h2 {
    font-size: 1.6rem;
    font-weight: 750;
    color: var(--club-primary-color);
    margin-bottom: 0.5rem;
}

.card-subtitle {
    color: var(--color-text-muted);
    font-size: 0.9rem;
    margin-bottom: 2rem;
}

/* Form Styling inside Admin Cards */
.admin-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

@media (max-width: 600px) {
    .form-row {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

/* File Upload Drag-Drop simulation styling */
.file-upload-wrapper {
    position: relative;
    width: 100%;
}

.file-upload-wrapper input[type="file"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
}

.file-upload-box {
    border: 2px dashed rgba(29, 46, 76, 0.15);
    border-radius: 12px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    background: var(--color-bg-light);
    color: var(--color-text-muted);
    transition: all 0.3s ease;
    text-align: center;
}

.file-upload-box svg {
    color: var(--club-secondary-color);
    width: 32px;
    height: 32px;
    transition: transform 0.3s ease;
}

.file-upload-wrapper:hover .file-upload-box {
    border-color: var(--club-secondary-color);
    background: rgba(174, 138, 54, 0.03);
}

.file-upload-wrapper:hover .file-upload-box svg {
    transform: translateY(-3px);
}

.file-upload-box.selected {
    border-color: #22c55e;
    background: rgba(34, 197, 94, 0.03);
    color: #15803d;
}

.file-upload-box.selected svg {
    color: #22c55e;
}

.admin-submit-btn {
    padding: 1rem 2rem;
    background: var(--club-primary-gradient);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px rgba(29, 46, 76, 0.15);
    margin-top: 1rem;
    align-self: flex-start;
}

.admin-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 25px rgba(29, 46, 76, 0.25);
    filter: brightness(1.1);
}

.admin-card:last-child .admin-submit-btn {
    background: var(--club-secondary-gradient);
    box-shadow: 0 10px 20px rgba(174, 138, 54, 0.2);
}

.admin-card:last-child .admin-submit-btn:hover {
    box-shadow: 0 15px 25px rgba(174, 138, 54, 0.3);
}

/* Admin Tables & Badges */
.admin-data-section {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    margin-top: 3rem;
}

.table-responsive {
    overflow-x: auto;
    margin-top: 1rem;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 0.95rem;
}

.admin-table th {
    padding: 1rem 1.25rem;
    background: var(--color-bg-light);
    color: var(--club-primary-color);
    font-weight: 750;
    border-bottom: 2px solid rgba(29, 46, 76, 0.08);
}

.admin-table td {
    padding: 1.2rem 1.25rem;
    border-bottom: 1px solid rgba(29, 46, 76, 0.05);
    color: var(--club-primary-color);
    max-width: 250px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.admin-table tbody tr:hover {
    background: rgba(29, 46, 76, 0.01);
}

.font-bold {
    font-weight: 600;
}

.motivation-cell {
    font-style: italic;
    color: var(--color-text-muted);
}

.no-data {
    color: var(--color-text-muted);
    font-style: italic;
    padding: 2rem 0;
    text-align: center;
}

/* Badges */
.status-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-badge.lid {
    background-color: rgba(34, 197, 94, 0.1);
    color: #15803d;
}

.status-badge.schacht {
    background-color: rgba(174, 138, 54, 0.1);
    color: #8c6b24;
}

.status-badge.commilito {
    background-color: rgba(59, 130, 246, 0.1);
    color: #1d4ed8;
}

.status-badge.sympathisant {
    background-color: rgba(107, 114, 128, 0.1);
    color: #4b5563;
}

/* ===================================
   Admin Settings Card & Select
   =================================== */
.admin-card-settings {
    border-top: 3px solid var(--club-primary-color, #ae8a36);
    background: linear-gradient(135deg, rgba(174, 138, 54, 0.04) 0%, rgba(255,255,255,0) 100%);
}

.admin-select {
    width: 100%;
    padding: 0.85rem 1rem;
    border: 1.5px solid var(--color-border, #e2e8f0);
    border-radius: 12px;
    font-size: 1rem;
    font-family: inherit;
    background: white;
    color: var(--color-text, #1a1a2e);
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23718096' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 16px;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.admin-select:focus {
    outline: none;
    border-color: var(--club-primary-color, #ae8a36);
    box-shadow: 0 0 0 3px rgba(174, 138, 54, 0.15);
}

.settings-form .admin-submit-btn {
    margin-top: 0.5rem;
}

.current-setting-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    color: #15803d;
    background: rgba(34, 197, 94, 0.08);
    border: 1px solid rgba(34, 197, 94, 0.2);
    padding: 0.4rem 0.9rem;
    border-radius: 20px;
    margin-bottom: 0.75rem;
}

