/* Conference-specific styles and overrides */

/* Conference page specific styles */
.dashboard-section {
    max-width: 2400px !important;
    margin: 0 auto;
    padding: 2rem;
}

.schedule-section, .resolutions-section, .submit-resolution, .admin-section, .amendments-section {
    background: var(--secondary-color);
    border-radius: 8px;
    padding: 3rem;
    margin: 0 -1rem 2rem -1rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    color: var(--text-light);
    width: calc(100% + 2rem);
    }

.resolution-form {
        width: 100%;
    margin-top: 2rem;
    }

.resolution-form:not(.hidden) {
    display: block !important;
}

.hidden {
    display: none !important;
}

.resolution-form .form-group {
    margin-bottom: 2rem;
    }

.resolution-form input[type="text"],
.resolution-form textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid var(--primary-color);
    border-radius: 4px;
    background: white;
    color: var(--text-dark);
    font-size: 1rem;
}

.co-signatures {
        display: flex;
    flex-wrap: wrap;
        gap: 1rem;
    margin-bottom: 1rem;
    }

.co-signature {
    background: rgba(255, 255, 255, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 4px;
    display: flex;
        align-items: center;
        gap: 0.5rem;
    }

.co-signature button {
    background: none;
  border: none;
    color: var(--text-light);
    cursor: pointer;
    padding: 0.25rem;
}

h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--primary-color);
}

.login-section {
    max-width: 500px;
    margin: 4rem auto;
    background: var(--secondary-color);
    padding: 3rem;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(87, 87, 87, 0.25);
    color: #ffffff;
}

.login-section h2 {
    color: #ffffff !important;
    text-align: center;
    margin-bottom: 1.5rem;
    font-size: 1.75rem;
}

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

.login-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #ffffff;
}

.login-form input[type="text"],
.login-form input[type="password"] {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    font-size: 1rem;
}

.login-form input[type="text"]::placeholder,
.login-form input[type="password"]::placeholder {
    color: rgba(255, 255, 255, 0.55);
}

.login-form input[type="text"]:focus,
.login-form input[type="password"]:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(var(--primary-color-rgb), 0.35);
    background: rgba(255, 255, 255, 0.16);
}

.login-form .remember-group {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.login-form .remember-group input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 1.25rem;
    height: 1.25rem;
    margin: 0;
    flex-shrink: 0;
    border: 2px solid rgba(255, 255, 255, 0.65);
    border-radius: 4px;
    background: transparent;
    cursor: pointer;
    position: relative;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.login-form .remember-group input[type="checkbox"]:checked {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.login-form .remember-group input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    left: 0.3rem;
    top: 0.05rem;
    width: 0.35rem;
    height: 0.65rem;
    border: solid #ffffff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.login-form .remember-group input[type="checkbox"]:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(var(--primary-color-rgb), 0.35);
}

.login-form .remember-group label {
    display: inline;
    margin: 0;
    font-size: 0.95rem;
    font-weight: 500;
    color: #ffffff;
    cursor: pointer;
    user-select: none;
}

.login-form .login-forgot {
    color: #ffffff;
    text-decoration: underline;
    text-underline-offset: 3px;
    opacity: 0.9;
}

.login-form .login-forgot:hover {
    color: var(--primary-color-light);
    opacity: 1;
}

.login-form button,
.login-form .button {
    width: 100%;
    padding: 0.85rem;
    background: var(--primary-color);
    border: none;
    border-radius: 8px;
    color: #ffffff;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
    margin-top: 0.5rem;
}

.login-form button:hover,
.login-form .button:hover {
    background: var(--primary-color-dark);
}

/* Amendment status badges */
.amendment-status {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-weight: bold;
    margin-right: 1rem;
}

.status-hidden {
    background: #6c757d;
    color: white;
}

.status-debate {
    background: #ffc107;
    color: black;
}

.status-passed {
    background: #28a745;
    color: white;
}

.status-failed {
    background: #dc3545;
    color: white;
}

.amendment-votes {
    margin-top: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.vote-count {
    display: flex;
    gap: 2rem;
    margin-top: 0.5rem;
}

.vote-for, .vote-against, .vote-abstain {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Amendment section specific styles */
.amendments-section .card {
    margin-bottom: 1.5rem;
    border: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.amendments-section .card-header {
    border-bottom: none;
    font-weight: 600;
}

.amendments-section .card-header i {
    margin-right: 0.5rem;
}

.amendments-section .card-body {
    padding: 1.5rem;
}

.amendments-section .mb-3 {
    border-left: 4px solid var(--primary-color);
    background: rgba(255, 255, 255, 0.05);
}

.amendments-section .card-title {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1rem;
}

.amendments-section .card-text {
    line-height: 1.6;
    margin-bottom: 1rem;
}

.amendments-section .badge {
    font-size: 0.75rem;
    padding: 0.375rem 0.75rem;
}

.resolution-link {
    display: block;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    margin-bottom: 2rem;
    color: var(--text-light);
    text-decoration: none;
    transition: all 0.3s ease;
}

.resolution-link:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.resolution-link i {
    margin-right: 1rem;
}

.confirm-dialog {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--secondary-color);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    max-width: 500px;
    width: 90%;
}

.confirm-dialog.visible {
    display: block;
}

.confirm-dialog-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
}

.confirm-dialog-overlay.visible {
    display: block;
}

/* TinyMCE Editor Styles */
.tox-tinymce {
    width: 100% !important;
    min-height: 500px !important;
}

.tox .tox-edit-area {
    visibility: visible !important;
    display: block !important;
    background-color: white !important;
}

.tox .tox-edit-area__iframe {
    visibility: visible !important;
    display: block !important;
    background: white !important;
}

.tox .tox-editor-container {
    background: white !important;
}

.tox .tox-toolbar {
    background: white !important;
}

.tox .tox-toolbar__primary {
    background: white !important;
}

.tox .tox-statusbar {
    background: white !important;
} 

/* Contact Form Notifications */
.contact-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    max-width: 400px;
    min-width: 300px;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.3s ease-in-out;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
}

.contact-notification.show {
    opacity: 1;
    transform: translateX(0);
}

.contact-notification.success {
    background: linear-gradient(135deg, #28a745, #20c997);
    border-left: 5px solid #1e7e34;
}

.contact-notification.error {
    background: linear-gradient(135deg, #dc3545, #fd7e14);
    border-left: 5px solid #721c24;
}

.notification-content {
    display: flex;
    align-items: flex-start;
    padding: 1.5rem;
    color: white;
    position: relative;
}

.notification-content > i {
    font-size: 1.5rem;
    margin-right: 1rem;
    margin-top: 0.2rem;
    flex-shrink: 0;
}

.notification-text {
    flex: 1;
}

.notification-text h4 {
    margin: 0 0 0.5rem 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.notification-text p {
    margin: 0;
    font-size: 0.9rem;
    opacity: 0.95;
    line-height: 1.4;
}

.notification-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: white;
    font-size: 1rem;
    cursor: pointer;
    padding: 0.2rem;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}

.notification-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Loading state for contact form button */
.contact-form button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.contact-form button:disabled:hover {
    transform: none;
    box-shadow: none;
}

/* Animation for spinner */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.fa-spinner.fa-spin {
    animation: spin 1s linear infinite;
}

/* Mobile responsiveness for notifications */
@media (max-width: 768px) {
    .contact-notification {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
        min-width: auto;
    }
    
    .notification-content {
        padding: 1rem;
    }
    
    .notification-text h4 {
        font-size: 1rem;
    }
    
    .notification-text p {
        font-size: 0.85rem;
    }
} 

@media (max-width: 768px) {
    .dashboard-section, .schedule-section, .resolutions-section, .submit-resolution, .admin-section, .amendments-section {
        padding: 1rem !important;
        margin: 0 !important;
        width: 100% !important;
    }
    .container {
        padding: 0.5rem !important;
        width: 100% !important;
        max-width: 100vw !important;
    }
    .table {
        font-size: 0.95rem;
        width: 100% !important;
        overflow-x: auto;
        display: block;
    }
    .navbar {
        flex-direction: column;
        align-items: flex-start;
        padding: 0.5rem 1rem !important;
    }
    .navbar .nav-links {
        flex-direction: column;
        width: 100%;
        gap: 0.5rem;
    }
    .navbar .nav-logo {
        margin: 0.5rem 0;
    }
    h2, h3, h4 {
        font-size: 1.2rem !important;
    }
    .content {
        padding: 0.5rem !important;
    }
}

/* Static pages + conference login background */
body.page-about,
body.page-info,
body.page-conference-login {
    background-color: #fdfdfd !important;
}

body.page-about main.content,
body.page-info main.content,
body.page-conference-login main.content {
    background-color: #fdfdfd !important;
}

body.page-about .static-page-content,
body.page-info .static-page-content {
    background-color: #fdfdfd;
    min-height: calc(100vh - 100px);
}

/* Login form: white text on grey box */
body.page-conference-login .login-section {
    background: var(--secondary-color);
    color: #ffffff;
}

body.page-conference-login .login-form label,
body.page-conference-login .login-form .remember-group label,
body.page-conference-login .login-form .login-forgot {
    color: #ffffff;
}

body.page-conference-login .login-form input[type="text"],
body.page-conference-login .login-form input[type="password"] {
    color: #ffffff;
}

body.page-conference-login .login-form input:-webkit-autofill,
body.page-conference-login .login-form input:-webkit-autofill:hover,
body.page-conference-login .login-form input:-webkit-autofill:focus {
    -webkit-text-fill-color: #ffffff;
    caret-color: #ffffff;
    box-shadow: 0 0 0 1000px rgba(255, 255, 255, 0.12) inset;
    transition: background-color 5000s ease-in-out 0s;
}

body.page-conference-login .login-form .remember-group input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 1.25rem;
    height: 1.25rem;
    border: 2px solid rgba(255, 255, 255, 0.65);
    border-radius: 4px;
    background: transparent;
    cursor: pointer;
    position: relative;
    flex-shrink: 0;
    transition: border-color 0.2s ease, background 0.2s ease;
}

body.page-conference-login .login-form .remember-group input[type="checkbox"]:hover {
    border-color: var(--primary-color);
}

body.page-conference-login .login-form .remember-group input[type="checkbox"]:checked {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

body.page-conference-login .login-form .remember-group input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    left: 0.3rem;
    top: 0.05rem;
    width: 0.35rem;
    height: 0.65rem;
    border: solid #ffffff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

body.page-conference-login .login-form .remember-group input[type="checkbox"]:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(var(--primary-color-rgb), 0.35);
} 