/* Manager Interface Styles */

.sessions-list {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 20px;
}

.session-card {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    background: #f9f9f9;
    cursor: pointer;
    transition: background-color 0.2s;
    min-width: 250px;
}

.session-card:hover {
    background: #e9e9e9;
}

.session-card h3 {
    margin-top: 0;
    color: #333;
}

.session-date, .session-clients {
    font-size: 14px;
    color: #666;
    margin: 5px 0;
}

.action-buttons {
    margin-top: 20px;
    text-align: center;
}

.action-buttons button {
    margin: 0 10px;
    padding: 10px 20px;
}

/* Modal Styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background: white;
    padding: 20px;
    border-radius: 8px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
}

.modal-content h2 {
    margin-top: 0;
    color: #333;
}

.modal-header {
    border-bottom: 1px solid #ddd;
    margin-bottom: 15px;
    padding-bottom: 10px;
}

.close-button {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #999;
}

.close-button:hover {
    color: #333;
}

.file-selector {
    margin: 15px 0;
}

.file-selector h3 {
    margin-bottom: 10px;
    color: #555;
}

.file-selector select {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-bottom: 10px;
}

.file-selector button {
    padding: 8px 15px;
    background: #2196F3;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin-left: 10px;
}

.file-selector button:hover {
    background: #1976D2;
}

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

.form-row {
    display: block;
    margin-bottom: 15px;
}

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

.form-row input, .form-row textarea, .form-row select {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
}

.form-row textarea {
    resize: vertical;
    min-height: 60px;
}

.error-message {
    color: #d32f2f;
    background: #ffebee;
    padding: 10px;
    border-radius: 4px;
    margin-top: 10px;
    border: 1px solid #ffcdd2;
    font-weight: bold;
}

.danger-message {
    color: #f57c00;
    background: #fff3e0;
    padding: 10px;
    border-radius: 4px;
    margin-top: 10px;
    border: 1px solid #ffcc02;
}

/* Workspace Styles */
.workspace-layout {
    display: flex;
    gap: 20px;
    margin-top: 20px;
}

.left-panel, .right-panel {
    flex: 1;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #f9f9f9;
}

.client-item {
    padding: 8px;
    margin: 5px 0;
    background: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.2s;
}

.client-item:hover {
    background: #f5f5f5;
}

.checkbox input[type="checkbox"] {
    margin-right: 8px;
}

.checkbox {
    margin-bottom: 10px;
}

.checkbox label {
    font-weight: bold;
}

.page-item {
    padding: 8px;
    margin: 5px 0;
    background: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.preview-btn {
    background: #4CAF50;
    color: white;
    border: none;
    padding: 4px 8px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
}

.preview-btn:hover {
    background: #45a049;
}

.upload-btn {
    background: #2196F3;
    color: white;
    border: none;
    padding: 4px 8px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    margin-left: 5px;
}

.upload-btn:hover {
    background: #1976D2;
}

.loading-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 5px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.progress-bar {
    width: 100%;
    height: 20px;
    background-color: #f3f3f3;
    border-radius: 20px;
    margin-top: 10px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background-color: #4CAF50;
    border-radius: 20px;
    width: 0%;
    transition: width 0.3s;
}

.preview-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.preview-modal iframe {
    width: 90%;
    height: 80%;
    border-radius: 8px;
    background: white;
    border: none;
}

.preview-modal .close-preview-btn {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #f44336;
    color: white;
    border: none;
    padding: 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    z-index: 2001;
}

.preview-modal .close-preview-btn:hover {
    background: #d32f2f;
}

/* Import navbar styles */
.btn {
    background: #007cba;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
}

.btn:hover {
    background: #005a87;
}

.btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* Responsive Design */
@media (max-width: 768px) {
    .workspace-layout {
        flex-direction: column;
    }

    .sessions-list {
        flex-direction: column;
    }

    .session-card {
        width: 100%;
    }

    .modal-content {
        width: 95%;
        margin: 10px;
    }

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