/* Card Set Activity Styles */

/* Success message section */
.success-message {
    display: none;
    text-align: center;
    padding: 40px 20px;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 30px;
}

.success-message h2 {
    color: #28a745;
    margin-bottom: 20px;
}

.url-display {
    background: white;
    padding: 15px;
    border-radius: 5px;
    margin: 20px 0;
    border: 1px solid #ddd;
}

.activity-url {
    color: #007bff;
    text-decoration: none;
    font-weight: bold;
    word-break: break-all;
}

.action-buttons {
    margin-top: 20px;
}

.action-buttons .create_button {
    background: #007bff;
    color: white;
    text-decoration: none;
    padding: 12px 20px;
    border-radius: 5px;
    display: inline-block;
    margin: 5px 10px;
    transition: background 0.3s;
}

.action-buttons .create_button:hover {
    background: #0056b3;
    color: white;
    text-decoration: none;
}

/* 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;
}

.buttonBar {
    margin-bottom: 20px;
}

.nav-button {
    display: inline-block;
    padding: 10px 20px;
    margin-right: 10px;
    background: #007bff;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s;
}

.nav-button:hover {
    background: #0056b3;
    text-decoration: underline;
}

.version-notice {
    background: #e7f3ff;
    padding: 15px;
    border-radius: 5px;
    margin: 20px 0;
    border-left: 4px solid #007bff;
}

.workflow-steps {
    margin: 20px 0;
}

.step-item {
    display: inline-block;
    background: #f8f9fa;
    padding: 8px 15px;
    margin-right: 10px;
    border-radius: 20px;
    font-size: 14px;
    color: #666;
}

.user-status {
    padding: 15px;
    border-radius: 5px;
    margin: 20px 0;
    display: flex;
    align-items: center;
}

.logged-in {
    background: #d4edda;
    border-left: 4px solid #28a745;
}

.logged-out {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
}

.status-icon {
    font-weight: bold;
    margin-right: 10px;
}

/* Form sections */
.exercise-creator {
    max-width: 800px;
    margin: 0 auto;
}

.form-section {
    background: white;
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 25px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.form-section h2 {
    margin-bottom: 20px;
    color: #333;
    border-bottom: 2px solid #007bff;
    padding-bottom: 10px;
}

.create_formhead {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #555;
}

.create_textinput {
    width: 100% !important;
    padding: 12px !important;
    border: 2px solid #ddd !important;
    border-radius: 5px !important;
    font-size: 16px !important;
    margin-bottom: 15px !important;
    box-sizing: border-box;
}

.create_textinput:focus {
    border-color: #007bff;
    outline: none;
}

.create_textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    margin-bottom: 15px;
    min-height: 100px;
    resize: vertical;
    box-sizing: border-box;
}

.create_textarea:focus {
    border-color: #007bff;
    outline: none;
}

/* Input method toggle */
.input-method-toggle {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.method-toggle {
    padding: 15px 30px;
    border: 2px solid #007bff;
    background: white;
    color: #007bff;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s;
    line-height: 1.2;
    height: auto;
    vertical-align: middle;
}

.method-toggle:hover {
    background: #f8f9fa;
}

.method-toggle.active {
    background: #007bff;
    color: white;
}

.input-method {
    transition: opacity 0.3s;
}

.bulk-help {
    color: #666;
    font-size: 14px;
    margin: 10px 0;
    font-style: italic;
}

/* Card input styling */
.card-input {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 15px;
    border: 1px solid #e9ecef;
}

.card-inputs {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 15px;
    align-items: end;
}

.input-group {
    display: flex;
    flex-direction: column;
}

.remove-button {
    background: #dc3545 !important;
    color: white !important;
    border: none !important;
    padding: 10px 15px !important;
    border-radius: 5px !important;
    cursor: pointer;
    font-size: 14px !important;
    transition: background 0.3s;
    margin-bottom: 0 !important;
    height: auto !important;
    line-height: normal !important;
    align-self: center !important;
    margin-top: 18px !important;
}

.remove-button:hover {
    background: #c82333;
}

.add-button {
    background: #28a745 !important;
    color: white !important;
    border: none !important;
    padding: 12px 20px !important;
    border-radius: 5px !important;
    cursor: pointer;
    font-size: 16px !important;
    margin-top: 15px;
    transition: background 0.3s;
    height: auto !important;
    line-height: normal !important;
}

.add-button:hover {
    background: #218838;
}

/* Buttons */
.create_button {
    background: #007bff;
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s;
    text-decoration: none;
    display: inline-block;
    margin-right: 10px;
    line-height: 1.2;
    height: auto;
    vertical-align: middle;
}

.create_button:hover {
    background: #0056b3;
    color: white;
    text-decoration: none;
}

.create_button.secondary {
    background: #6c757d;
}

.create_button.secondary:hover {
    background: #545b62;
}

.create-section {
    text-align: center;
    margin-top: 30px;
}

/* Error messages */
.error {
    color: #dc3545;
    text-align: center;
    margin: 15px 0;
    font-weight: bold;
}

/* Card display styles (for the actual card game) */
.cardBox {
    width: 100%;
    max-width: 600px;
    min-width: 400px;
    height: 300px;
    border: 5px solid #007bff;
    border-radius: 25px;
    margin-left: auto;
    margin-right: auto;
    display: table;
    background-image: url("/img/qbkls.png");
}

.cardBox p {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 2.4em;
    line-height: 120%;
    letter-spacing: 1px;
    word-spacing: 2px;
    color: #000000;
    padding-left: 20px;
    padding-right: 20px;
    text-align: center; 
    vertical-align: middle;
    display: table-cell; 
}

#question {
    transition: font-size 0.3s ease;
}

.myButton {
    background: #007bff;
    border: none;
    color: white;
    padding: 16px 32px;
    text-align: center;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 600;
    margin: 15px;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.2s ease;
    box-shadow: 0 4px 8px rgba(0, 123, 255, 0.3);
    min-width: 120px;
    white-space: nowrap;
}

.myButton:hover {
    background: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 123, 255, 0.4);
}

.myButton:active {
    background: #004085;
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 123, 255, 0.3);
}

.mode {
    cursor: pointer;
    padding: 4px 8px;
    margin: 0 2px;
    border-radius: 3px;
    transition: all 0.2s ease;
    font-weight: 400;
    color: #6c757d;
    font-size: 14px;
    border: 1px solid transparent;
}

.mode:hover {
    background-color: #f8f9fa;
    color: #495057;
    border-color: #dee2e6;
}

.mode.active {
    background-color: #e9ecef;
    color: #495057;
    font-weight: 500;
    border-color: #adb5bd;
}

.centerAlign {
    text-align: center;
    margin: 20px 0;
}

.controls-section {
    background: #f8f9fa;
    border-radius: 6px;
    padding: 15px;
    margin: 15px 0;
    border: 1px solid #dee2e6;
    opacity: 0.9;
}

.controls-section strong {
    font-size: 14px !important;
    font-weight: 600 !important;
}

/* Progress indicator */
.progress-indicator {
    display: none;
    margin: 20px 0;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-fill {
    height: 100%;
    background: #007bff;
    width: 0%;
    transition: width 0.3s;
}

.card-counter {
    font-size: 14px;
    color: #666;
}

/* Card fade animation */
.card-fade-in {
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsive design */
@media (max-width: 768px) {
    .card-inputs {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .cardBox {
        padding: 20px;
        min-height: 150px;
    }
    
    #question {
        font-size: 30px;
    }
    
    .step-item {
        display: block;
        margin-bottom: 10px;
    }
    
    .action-buttons .create_button {
        display: block;
        margin-bottom: 10px;
    }
    
    .input-method-toggle {
        flex-direction: column;
    }
    
    .method-toggle {
        width: 100%;
    }
} 