/* -------------------------------------------------------------------------
 * Notices
 * ---------------------------------------------------------------------- */

.ot-notice {
    padding: 12px 16px;
    margin-bottom: 20px;
    border-radius: 4px;
    max-width: 600px;
}
.ot-notice-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}
.ot-notice-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* -------------------------------------------------------------------------
 * Shared form styles
 * ---------------------------------------------------------------------- */

.ot-report-event-form label,
.ot-report-enrollment-form label {
    display: inline-block;
    margin-bottom: 4px;
}
.ot-report-event-form p,
.ot-report-enrollment-form p {
    margin-bottom: 16px;
}

/* -------------------------------------------------------------------------
 * Event cards  [officials_my_events]
 * ---------------------------------------------------------------------- */

.ot-my-events {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.ot-event-card {
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 16px 20px;
    background: #fafafa;
}
.ot-event-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}
.ot-event-title {
    font-size: 1.1em;
}
.ot-badge {
    font-size: 0.75em;
    padding: 2px 8px;
    border-radius: 3px;
    font-weight: 600;
    text-transform: uppercase;
}
.ot-badge-current {
    background: #cce5ff;
    color: #004085;
}
.ot-event-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px 20px;
    font-size: 0.95em;
}
.ot-event-notes {
    grid-column: 1 / -1;
}
.ot-detail-label {
    font-weight: 600;
    margin-right: 4px;
}

@media (max-width: 600px) {
    .ot-event-details {
        grid-template-columns: 1fr;
    }
}

/* -------------------------------------------------------------------------
 * Profile card + edit form  [officials_profile]
 * ---------------------------------------------------------------------- */

.ot-profile-card {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 24px;
    background: #fafafa;
    max-width: 600px;
}
.ot-profile-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}
.ot-profile-avatar img {
    border-radius: 50%;
    width: 80px;
    height: 80px;
    object-fit: cover;
}
.ot-profile-name {
    margin: 0 0 4px 0;
    font-size: 1.3em;
}
.ot-profile-email {
    margin: 0;
    color: #666;
    font-size: 0.95em;
}
.ot-profile-info {
    margin-bottom: 20px;
}
.ot-profile-row {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}
.ot-profile-row:last-child {
    border-bottom: none;
}
.ot-profile-label {
    font-weight: 600;
    margin-right: 8px;
}
.ot-profile-stats {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}
.ot-stat {
    flex: 1;
    min-width: 100px;
    text-align: center;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 14px 8px;
}
.ot-stat-number {
    display: block;
    font-size: 1.6em;
    font-weight: 700;
    color: #333;
}
.ot-stat-label {
    display: block;
    font-size: 0.8em;
    color: #777;
    margin-top: 4px;
}
.ot-profile-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

/* Scoped so nothing outside can interfere with profile card buttons */
.ot-profile-actions .ot-profile-btn {
    display: inline-flex !important;
    align-items: center;
    white-space: nowrap;
    flex-shrink: 0;
}
.ot-btn {
    display: inline-block;
    padding: 8px 20px;
    font-size: 14px;
    cursor: pointer;
    border: 1px solid #333;
    background: #333;
    color: #fff;
    border-radius: 4px;
    text-decoration: none;
}
.ot-btn:hover {
    background: #555;
}
.ot-btn-secondary {
    background: #fff;
    color: #333;
}
.ot-btn-secondary:hover {
    background: #f0f0f0;
}
.ot-edit-profile-section {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 24px;
    background: #fafafa;
    max-width: 600px;
    margin-top: 20px;
}
.ot-edit-profile-section h3 {
    margin-top: 0;
}
.ot-edit-profile-section label {
    display: inline-block;
    margin-bottom: 4px;
}
.ot-edit-profile-section p {
    margin-bottom: 16px;
}
.ot-edit-avatar-section {
    margin-bottom: 20px;
}
.ot-edit-avatar-row {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 8px;
}
.ot-edit-avatar-preview img {
    border-radius: 50%;
    width: 80px;
    height: 80px;
    object-fit: cover;
}
.ot-edit-avatar-controls small {
    display: block;
    color: #777;
    margin-top: 4px;
}

@media (max-width: 500px) {
    .ot-profile-stats {
        flex-direction: column;
    }
    .ot-stat {
        min-width: auto;
    }
    .ot-edit-avatar-row {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* -------------------------------------------------------------------------
 * Login / Register  [officials_login]
 * ---------------------------------------------------------------------- */

.ot-login-wrap {
    max-width: 460px;
    margin: 0 auto;
}
.ot-login-panel,
.ot-register-panel {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 28px 32px;
    background: #fafafa;
}
.ot-login-panel h3,
.ot-register-panel h3 {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 1.3em;
}
.ot-login-form p,
.ot-register-form p {
    margin-bottom: 16px;
}
.ot-login-form input[type="text"],
.ot-login-form input[type="password"],
.ot-register-form input[type="text"],
.ot-register-form input[type="email"],
.ot-register-form input[type="password"] {
    padding: 9px 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 15px;
    box-sizing: border-box;
}
.ot-btn-full {
    width: 100%;
    padding: 12px;
    font-size: 15px;
    text-align: center;
}
.ot-social-divider {
    display: flex;
    align-items: center;
    text-align: center;
    color: #999;
    font-size: 0.85em;
    margin: 20px 0;
}
.ot-social-divider::before,
.ot-social-divider::after {
    content: '';
    flex: 1;
    border-top: 1px solid #ddd;
}
.ot-social-divider span {
    padding: 0 12px;
}
.ot-social-buttons {
    margin-bottom: 20px;
    text-align: center;
}
.ot-toggle-link {
    margin-top: 20px;
    text-align: center;
    font-size: 0.9em;
    color: #555;
}
.ot-toggle-link a {
    color: #333;
    font-weight: 600;
    text-decoration: underline;
}

@media (max-width: 500px) {
    .ot-login-panel,
    .ot-register-panel {
        padding: 20px 16px;
    }
}

/* -------------------------------------------------------------------------
 * Legal pages  [sto_terms] / [sto_privacy]
 * ---------------------------------------------------------------------- */

.sto-legal {
    max-width: 800px;
    line-height: 1.7;
}
.sto-legal h2 {
    margin-top: 32px;
    font-size: 1.1em;
    font-weight: 700;
}
.sto-legal ul {
    padding-left: 20px;
    margin-bottom: 16px;
}
.sto-legal ul li {
    margin-bottom: 6px;
}
.sto-legal__updated {
    color: #777;
    font-size: 0.9em;
    margin-bottom: 24px;
}
.sto-legal__footer {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    color: #777;
    font-size: 0.9em;
}

/* -------------------------------------------------------------------------
 * Footer legal links  [sto_footer]
 * ---------------------------------------------------------------------- */

.sto-footer__legal {
    font-size: 14px;
    color: #ffffff;
    margin: 0 0 8px;
}
.sto-footer__legal-link {
    color: #ffffff;
    text-decoration: underline;
    transition: opacity 0.2s ease;
}
.sto-footer__legal-link:hover {
    opacity: 0.75;
    color: #ffffff;
}
.sto-footer__legal-sep {
    color: #ffffff;
    opacity: 0.5;
}

/* -------------------------------------------------------------------------
 * Nav menu — tablet: full-width container (removes the boxed constraint)
 * ---------------------------------------------------------------------- */

@media (max-width: 1199px) {
    #site-navigation .container {
        width: 100% !important;
        max-width: 100% !important;
        padding-left: 15px;
        padding-right: 15px;
        box-sizing: border-box;
    }
}

/* -------------------------------------------------------------------------
 * Nav menu — tablet font size (768px–1199px)
 * ---------------------------------------------------------------------- */

@media (max-width: 1199px) and (min-width: 768px) {
    .navbar-default .navbar-nav > li > a,
    #menu-non-homepage-mainmenu .nav-link,
    #menu-main-menu .nav-link {
        font-size: 12px;
        letter-spacing: 0.5px;
        padding-left: 8px;
        padding-right: 8px;
    }
}

