/* ===== SENTENCE MATCHING PAGE STYLES ===== */

/* Page Header */
.page-header {
    padding: 30px 0;
    margin-bottom: 30px;
}

.page-header h1 {
    color: #495057;
    margin-bottom: 25px;
    font-size: 2.2em;
    text-align: center;
}

/* Navigation Button */
.nav-button {
    display: inline-block;
    background: #6c757d;
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    margin-bottom: 20px;
    transition: background-color 0.3s ease;
}

.nav-button:hover {
    background: #5a6268;
    text-decoration: underline;
}

/* Workflow Steps */
.workflow-steps {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 20px 0;
    flex-wrap: wrap;
}

.step-item {
    color: #6c757d;
    font-size: 0.9em;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 4px;
    border: 1px solid #dee2e6;
}

/* User Status */
.user-status {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    border-radius: 6px;
    margin-top: 20px;
}

.user-status.logged-in {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.user-status.logged-out {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    color: #856404;
}

.status-icon {
    font-size: 1.2em;
    margin-right: 10px;
}

.user-status p {
    margin: 0;
}

.user-status a {
    color: inherit;
    text-decoration: underline;
}

/* Exercise Creator */
.exercise-creator {
    max-width: 800px;
    margin: 0 auto;
}

/* Form Sections */
.form-section {
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.form-section h2 {
    color: #495057;
    margin-bottom: 20px;
    font-size: 1.5em;
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 10px;
}

.sentences-section {
    border-left: 4px solid #28a745;
}

.instruction-text {
    color: #6c757d;
    font-size: 0.95em;
    line-height: 1.5;
    margin-bottom: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 6px;
    border-left: 3px solid #28a745;
}

/* Success Message */
.success-message {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 30px;
    text-align: center;
}

.success-message h2 {
    color: #28a745;
    margin-bottom: 15px;
    font-size: 1.8em;
    font-weight: 600;
}

.success-message p {
    color: #666;
    margin-bottom: 20px;
    font-size: 1.1em;
}

.url-display {
    background: white;
    border: 1px solid #c3e6cb;
    border-radius: 6px;
    padding: 15px;
    margin: 20px 0;
}

.activity-url {
    color: #007bff;
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1em;
}

.activity-url:hover {
    color: #0056b3;
    text-decoration: underline;
}

.action-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 20px;
}

.action-buttons .create_button {
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-size: 1em;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.action-buttons .create_button:first-child {
    background: #007bff;
    color: white;
}

.action-buttons .create_button.secondary {
    background: #6c757d;
    color: white;
}

.action-buttons .create_button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.action-buttons .create_button.secondary:hover {
    background: #5a6268;
}

/* Sentence Pairs */
.sentence-pair {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    padding: 20px;
    margin-bottom: 15px;
}

.sentence-pair-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.sentence-pair-number {
    font-weight: 600;
    color: #495057;
    font-size: 1.1em;
}

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

.sentence-half {
    display: flex;
    flex-direction: column;
}

.sentence-half label {
    font-weight: 500;
    color: #495057;
    margin-bottom: 8px;
    font-size: 0.9em;
}

/* Form Elements */
.create_formhead {
    display: block;
    font-weight: 600;
    color: #495057;
    margin-bottom: 8px;
    font-size: 1em;
}

.create_textinput {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #dee2e6;
    border-radius: 6px;
    font-size: 1em;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.create_textinput:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.create_textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #dee2e6;
    border-radius: 6px;
    font-size: 1em;
    font-family: inherit;
    resize: vertical;
    min-height: 80px;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.create_textarea:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.create_checkboxLabel {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.create_checkboxLabel:hover {
    background: #e9ecef;
}

.create_checkboxLabel input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #007bff;
}

/* Buttons */
.create_button {
    background: #007bff;
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-size: 1em;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.create_button:hover {
    background: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.create_button:disabled {
    background: #6c757d;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.add-sentence-btn {
    background: #28a745;
    margin-top: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    white-space: nowrap;
    min-height: 44px;
}

.add-sentence-btn:hover {
    background: #218838;
}

.create-activity-btn {
    background: #007bff;
    font-size: 1.1em;
    padding: 15px 30px;
    width: 100%;
    margin-top: 20px;
}

.create-activity-btn:hover {
    background: #0056b3;
}

/* Error and Success Messages */
.error {
    color: #dc3545;
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 6px;
    padding: 12px 15px;
    margin: 15px 0;
    font-weight: 500;
    min-height: 0;
}

.error:empty {
    display: none;
}

.success {
    color: #155724;
    background: #d4edda;
    border: 1px solid #c3e6cb;
    border-radius: 6px;
    padding: 12px 15px;
    margin: 15px 0;
    font-weight: 500;
}

/* Create Section */
.create-section {
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 25px;
    margin-top: 30px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}



/* Responsive Design */
@media (max-width: 768px) {
    .sentence-inputs {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .workflow-steps {
        flex-direction: column;
        align-items: center;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .action-buttons .create_button {
        width: 100%;
    }
    
    .page-header h1 {
        font-size: 1.8em;
    }
    
    .form-section {
        padding: 20px;
    }
} 