/* MB4 Meeting Request System Styles */

:root {
    --primary-blue: #0056b3;
    --dark-blue: #003d82;
    --light-blue: #e6f0ff;
    --gray: #6c757d;
    --light-gray: #f8f9fa;
    --border-gray: #dee2e6;
    --success: #28a745;
    --danger: #dc3545;
    --warning: #ffc107;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

/* Header */
.header {
    background-color: white;
    padding: 15px 30px;
    border-bottom: 4px solid var(--primary-blue);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary-blue);
}

.logo-img {
    height: 40px;
    width: auto;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.sign-out-link {
    color: var(--gray);
    text-decoration: none;
    font-size: 14px;
    cursor: pointer;
}

.sign-out-link:hover {
    color: var(--primary-blue);
    text-decoration: underline;
}

/* Main Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px;
}

.container-narrow {
    max-width: 600px;
}

.container-form {
    max-width: 900px;
    padding-left: 1in;
}

/* Landing Page */
.landing-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 100px);
    padding: 30px;
}

.password-section {
    background: white;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    width: 100%;
    max-width: 400px;
}

.password-section h2 {
    margin-bottom: 20px;
    color: var(--primary-blue);
}

.password-input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-gray);
    border-radius: 4px;
    font-size: 16px;
    margin-bottom: 15px;
}

.password-input:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 2px rgba(0, 86, 179, 0.2);
}

/* Navigation Options */
.nav-options {
    display: none;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
    margin-top: 40px;
}

.nav-options.visible {
    display: flex;
}

.nav-card {
    background: white;
    padding: 30px 40px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    text-decoration: none;
    color: inherit;
    min-width: 200px;
}

.nav-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.nav-card-icon {
    font-size: 48px;
    margin-bottom: 15px;
    color: var(--primary-blue);
}

.nav-card h3 {
    color: var(--dark-blue);
    margin-bottom: 10px;
}

.nav-card p {
    color: var(--gray);
    font-size: 14px;
}

.admin-link {
    margin-top: 30px;
    color: var(--gray);
    text-decoration: none;
    font-size: 14px;
}

.admin-link:hover {
    color: var(--primary-blue);
    text-decoration: underline;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    transition: background-color 0.2s;
}

.btn-primary {
    background-color: var(--primary-blue);
    color: white;
}

.btn-primary:hover {
    background-color: var(--dark-blue);
}

.btn-secondary {
    background-color: var(--gray);
    color: white;
}

.btn-secondary:hover {
    background-color: #5a6268;
}

.btn-danger {
    background-color: var(--danger);
    color: white;
}

.btn-danger:hover {
    background-color: #c82333;
}

.btn-small {
    padding: 6px 12px;
    font-size: 14px;
}

.btn-block {
    width: 100%;
}

/* Forms */
.form-section {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.form-section h2 {
    color: var(--primary-blue);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--light-blue);
}

.form-section h3 {
    color: var(--dark-blue);
    margin: 20px 0 15px;
    font-size: 18px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #333;
}

.form-group label.required::after {
    content: " *";
    color: var(--danger);
}

.form-control {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border-gray);
    border-radius: 4px;
    font-size: 16px;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 2px rgba(0, 86, 179, 0.2);
}

.form-control:disabled {
    background-color: var(--light-gray);
    cursor: not-allowed;
}

select.form-control {
    appearance: auto;
}

textarea.form-control {
    min-height: 100px;
    resize: vertical;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-row-3 {
    grid-template-columns: 1fr 1fr 1fr;
}

/* Radio and Checkbox Groups */
.radio-group, .checkbox-group {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.radio-option, .checkbox-option {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.radio-option input, .checkbox-option input {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

/* Meeting Type Selector */
.meeting-type-selector {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.type-option {
    flex: 1;
    padding: 20px;
    border: 2px solid var(--border-gray);
    border-radius: 8px;
    cursor: pointer;
    text-align: center;
    transition: border-color 0.2s, background-color 0.2s;
}

.type-option:hover {
    border-color: var(--primary-blue);
}

.type-option.selected {
    border-color: var(--primary-blue);
    background-color: var(--light-blue);
}

.type-option h4 {
    color: var(--dark-blue);
    margin-bottom: 5px;
}

.type-option p {
    color: var(--gray);
    font-size: 14px;
}

/* Dynamic Form Sections */
.inperson-fields, .virtual-fields {
    display: none;
}

.inperson-fields.visible, .virtual-fields.visible {
    display: block;
}

/* Equipment Section */
.equipment-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

/* Edit Page */
.meeting-list {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.meeting-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid var(--border-gray);
    cursor: pointer;
    transition: background-color 0.2s;
}

.meeting-item:last-child {
    border-bottom: none;
}

.meeting-item:hover {
    background-color: var(--light-gray);
}

.meeting-info h4 {
    color: var(--dark-blue);
    margin-bottom: 5px;
}

.meeting-info p {
    color: var(--gray);
    font-size: 14px;
}

.meeting-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.badge-inperson {
    background-color: #d4edda;
    color: #155724;
}

.badge-virtual {
    background-color: #cce5ff;
    color: #004085;
}

.badge-cancelled {
    background-color: #f8d7da;
    color: #721c24;
}

.badge-simple {
    background: #3498db;
    color: #ffffff;
}

/* Editable Field */
.editable-field {
    display: flex;
    align-items: center;
    gap: 10px;
}

.editable-field .form-control {
    flex: 1;
}

.change-btn {
    padding: 6px 12px;
    font-size: 14px;
}

/* Admin Table */
.admin-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.admin-table th, .admin-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid var(--border-gray);
}

.admin-table th {
    background-color: var(--primary-blue);
    color: white;
    font-weight: 500;
    cursor: pointer;
}

.admin-table th:hover {
    background-color: var(--dark-blue);
}

.admin-table tr:hover {
    background-color: var(--light-gray);
}

.admin-table .sortable::after {
    content: " ↕";
    opacity: 0.5;
}

/* Preview Modal */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal-overlay.visible {
    display: flex;
}

.modal {
    background: white;
    border-radius: 8px;
    max-width: 700px;
    max-height: 80vh;
    width: 90%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.modal-header {
    padding: 20px;
    background-color: var(--primary-blue);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
}

.modal-body {
    padding: 20px;
    overflow-y: auto;
    flex: 1;
}

.modal-footer {
    padding: 15px 20px;
    border-top: 1px solid var(--border-gray);
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

/* Preview Content */
.preview-section {
    margin-bottom: 20px;
}

.preview-section h4 {
    color: var(--primary-blue);
    margin-bottom: 10px;
    padding-bottom: 5px;
    border-bottom: 1px solid var(--light-blue);
}

.preview-row {
    display: flex;
    padding: 5px 0;
}

.preview-label {
    font-weight: 500;
    width: 200px;
    color: var(--gray);
}

.preview-value {
    flex: 1;
}

/* Alerts */
.alert {
    padding: 15px 20px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-warning {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
}

/* Filter Section */
.filter-section {
    display: flex;
    gap: 15px;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.filter-section select {
    min-width: 200px;
}

.filter-section label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

/* Back Link */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--primary-blue);
    text-decoration: none;
    margin-bottom: 20px;
}

.back-link:hover {
    text-decoration: underline;
}

/* Loading Spinner */
.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--light-gray);
    border-top-color: var(--primary-blue);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--gray);
}

.empty-state-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

/* Button Group */
.button-group {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

/* Responsive */
@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }

    .meeting-type-selector {
        flex-direction: column;
    }

    .header {
        flex-direction: column;
        gap: 10px;
    }

    .container-form {
        padding-left: 20px;
        padding-right: 20px;
    }

    .nav-options {
        flex-direction: column;
        align-items: center;
    }

    .filter-section {
        flex-direction: column;
        align-items: flex-start;
    }
}

.badge-simple {
    background: #3498db;
    color: #ffffff;
}
