/* Meeting Scheduler Styles */

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow-y: auto;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.modal-content {
    background-color: var(--bg-primary);
    margin: 2% auto;
    padding: 24px;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-xl);
    position: relative;
    animation: modalSlideIn 0.3s ease-out;
}

.modal-large .modal-content {
    max-width: 900px;
    max-height: 90vh;
    overflow-y: auto;
}

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

.close-modal {
    color: var(--text-light);
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    line-height: 20px;
    position: absolute;
    right: 16px;
    top: 16px;
}

.close-modal:hover,
.close-modal:focus {
    color: var(--primary-color);
}

.modal h2 {
    margin-top: 0;
    margin-bottom: 24px;
    color: var(--text-primary);
    font-size: 24px;
    font-weight: 700;
}

/* Form Styles */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-primary);
    font-weight: 500;
    font-size: 14px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid rgba(124, 58, 237, 0.2);
    border-radius: 8px;
    font-size: 16px;
    font-family: inherit;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    background-color: var(--bg-primary);
    color: var(--text-primary);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
}

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

/* Dashboard Tabs */
.dashboard-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    border-bottom: 2px solid rgba(124, 58, 237, 0.1);
}

.tab-btn {
    padding: 12px 24px;
    border: none;
    background: none;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    color: var(--text-secondary);
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: color 0.3s ease, border-color 0.3s ease;
}

.tab-btn:hover {
    color: var(--primary-color);
}

.tab-btn.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Meetings List */
#meetingsList {
    margin-top: 20px;
}

.meeting-item {
    background: var(--bg-secondary);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 16px;
    border: 1px solid rgba(124, 58, 237, 0.1);
}

.meeting-date-time {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.meeting-date-time strong {
    color: var(--text-primary);
    font-size: 18px;
}

.meeting-date-time span {
    color: var(--text-secondary);
    font-size: 14px;
}

.meeting-status {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.status-pending {
    background: #fef3c7;
    color: #92400e;
}

.status-confirmed {
    background: #d1fae5;
    color: #065f46;
}

.status-cancelled {
    background: #fee2e2;
    color: #991b1b;
}

.meeting-notes {
    color: var(--text-secondary);
    margin-top: 12px;
    font-size: 14px;
    line-height: 1.6;
}

.btn-cancel-meeting {
    margin-top: 12px;
    padding: 8px 16px;
    background: #fee2e2;
    color: #991b1b;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: background 0.3s ease;
}

.btn-cancel-meeting:hover {
    background: #fecaca;
}

.no-meetings {
    text-align: center;
    color: var(--text-secondary);
    padding: 40px;
}

/* Time Slots */
#timeSlotsContainer {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 8px;
    margin-top: 12px;
    max-height: 300px;
    overflow-y: auto;
    padding: 8px;
    border: 1px solid rgba(124, 58, 237, 0.1);
    border-radius: 8px;
    background: var(--bg-secondary);
}

.time-slot-btn {
    padding: 10px;
    border: 1px solid rgba(124, 58, 237, 0.2);
    background: white;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.time-slot-btn:hover {
    border-color: var(--primary-color);
    background: rgba(124, 58, 237, 0.05);
}

.time-slot-btn.selected {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* Success Message Popup */
.success-message-popup {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #10b981;
    color: white;
    padding: 16px 24px;
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    z-index: 10001;
    animation: slideInRight 0.3s ease-out;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Rich Text Editor */
#richTextEditor {
    background: white;
    border: 1px solid rgba(124, 58, 237, 0.2);
    border-radius: 8px;
    padding: 12px;
}

#editorToolbar {
    margin-bottom: 8px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(124, 58, 237, 0.1);
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.editor-btn {
    padding: 6px 12px;
    border: 1px solid rgba(124, 58, 237, 0.2);
    background: white;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.editor-btn:hover {
    background: rgba(124, 58, 237, 0.05);
    border-color: var(--primary-color);
}

#editorContent {
    min-height: 120px;
    outline: none;
    padding: 8px;
    line-height: 1.6;
}

#editorContent:empty:before {
    content: attr(placeholder);
    color: var(--text-light);
    pointer-events: none;
}

/* File Upload */
#fileUploadArea {
    border: 2px dashed rgba(124, 58, 237, 0.3);
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    background: var(--bg-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
}

#fileUploadArea:hover {
    border-color: var(--primary-color);
    background: rgba(124, 58, 237, 0.05);
}

#fileList {
    margin-top: 12px;
}

#fileListItems {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.file-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: white;
    border-radius: 6px;
    border: 1px solid rgba(124, 58, 237, 0.2);
}

.file-item-name {
    font-size: 14px;
    color: var(--text-primary);
}

.file-item-size {
    font-size: 12px;
    color: var(--text-secondary);
    margin-left: 8px;
}

.file-item-remove {
    background: #fee2e2;
    color: #991b1b;
    border: none;
    padding: 4px 8px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
}

.file-item-remove:hover {
    background: #fecaca;
}

/* Dashboard Profile */
.dashboard-profile {
    background: var(--bg-secondary);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 24px;
    border: 1px solid rgba(124, 58, 237, 0.1);
}

.dashboard-profile h3 {
    margin-top: 0;
    color: var(--text-primary);
}

#userProfile {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.profile-field {
    display: flex;
    flex-direction: column;
}

.profile-label {
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 4px;
}

.profile-value {
    font-size: 16px;
    color: var(--text-primary);
    margin: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        margin: 2% auto;
        padding: 20px;
        max-height: 95vh;
    }
    
    .modal-large .modal-content {
        max-width: 95%;
        max-height: 95vh;
    }
    
    #timeSlotsContainer {
        grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    }
    
    #userProfile {
        grid-template-columns: 1fr;
    }
    
    #editorToolbar {
        flex-wrap: wrap;
    }
    
    .form-group {
        margin-bottom: 16px;
    }
    
    .form-group input,
    .form-group textarea {
        padding: 10px;
        font-size: 14px;
    }
}

