:root {
    --dark-blue: #002366;
    --navy-blue: #000080;
    --light-blue: #e3f2fd;
    --white: #ffffff;
}

body, html {
    margin: 0;
    padding: 0;
    font-family: 'Tahoma', 'Arial', sans-serif;
    height: 100%;
    background-color: var(--light-blue);
}

.a4-landscape-container {
    width: 95vw;
    max-width: 1120px; /* A4 Ratio */
    height: 80vh;
    margin: 5vh auto;
    background: var(--white);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    border-radius: 8px;
    overflow: hidden;
}

.split-box {
    display: flex;
    height: 100%;
}

.half {
    flex: 1;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.left-pane {
    background-color: var(--dark-blue);
    color: white;
}

.school-name { font-size: 2.2em; margin-bottom: 5px; }
.motto { font-style: italic; color: #ffc107; margin-bottom: 30px; }
.app-title { font-weight: normal; border-left: 4px solid #ffc107; padding-left: 15px; }

/* Photo Resize Section */
.photo-resize-section {
    margin-top: 50px;
    background: rgba(255,255,255,0.1);
    padding: 20px;
    border-radius: 5px;
}

.btn-util {
    background: #ffc107;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    font-weight: bold;
    margin-right: 10px;
}

/* Right Pane & Tabs */
.right-pane { text-align: center; }
.logo-box img { width: 150px; margin-bottom: 30px; }

.tabs-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
}

.dropdown { position: relative; width: 80%; }

.tab-btn {
    width: 100%;
    padding: 15px;
    border: none;
    color: white;
    font-weight: bold;
    font-size: 1.1em;
    cursor: pointer;
    border-radius: 4px;
}

.dark-blue { background-color: var(--dark-blue); }
.navy-blue { background-color: var(--navy-blue); }

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #f9f9f9;
    width: 100%;
    box-shadow: 0px 8px 16px rgba(0,0,0,0.2);
    z-index: 1;
}

.dropdown-content a {
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
}

.dropdown-content a:hover { background-color: #ddd; }
.dropdown:hover .dropdown-content { display: block; }

/* Signup Form Styles */
.signup-container {
    font-family: Arial, sans-serif;
    color: #333;
}
.form-row {
    margin-bottom: 15px;
    display: flex;
    flex-direction: column;
}
.form-row label {
    font-weight: bold;
    margin-bottom: 5px;
}
.form-row input, .form-row select, .form-row textarea {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
}
.form-actions button {
    padding: 10px 20px;
    cursor: pointer;
    border: none;
    border-radius: 4px;
}
#submitSignupBtn {
    background-color: #002366;
    color: white;
}
#submitSignupBtn:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
}

/* --- ADDED SPINNER & ANIMATION --- */
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--navy-blue); /* Using your CSS variable here */
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 20px auto; /* Centers it if used in a block */
}