/* Tic Tac Toe Creator Styles */
*:focus {
    outline: none !important;
    box-shadow: none !important;
}

:root {
    --primary-color: #007bff;
    --secondary-color: #6c757d;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #17a2b8;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
    --border-color: #dee2e6;
    --text-color: #495057;
    --background-color: #ffffff;
}

/* 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;
}

.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;
}

.user-status.logged-in {
    background: #d4edda;
    border-left: 4px solid #28a745;
}

.user-status.logged-out {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
}

.status-icon {
    font-weight: bold;
    margin-right: 10px;
}

/* Form Styles */
.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;
}

/* Word Input Groups */
.word-input-group {
    position: relative;
    margin-bottom: 1rem;
}

.char-counter {
    font-size: 0.75rem;
    color: var(--secondary-color);
    text-align: right;
    margin-top: 0.25rem;
    font-weight: 500;
}

/* 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;
    color: #007bff;
}

.method-toggle.active {
    background: #007bff;
    color: white;
}

.input-method {
    margin-bottom: 1rem;
}

.bulk-help {
    color: #666;
    font-size: 14px;
    margin: 10px 0;
    font-style: italic;
}

/* 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;
}

/* Success Message */
.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;
}

.activity-url:hover {
    text-decoration: underline;
}

.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;
}

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

.action-buttons .create_button.secondary:hover {
    background: #545b62;
}

/* Navigation */
.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;
    line-height: 1.2;
}

.nav-button:hover {
    background: #0056b3;
    text-decoration: underline;
}

/* Games Grid */
.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.game-card {
    background-color: var(--background-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
}

.game-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.game-card h3 {
    color: var(--dark-color);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.game-card p {
    color: var(--text-color);
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.game-link {
    background-color: var(--primary-color);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.3s ease;
    display: inline-block;
}

.game-link:hover {
    background-color: #357abd;
    color: white;
    text-decoration: none;
}

.game-actions {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.edit-link {
    background-color: var(--info-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.9rem;
    transition: background-color 0.3s ease;
}

.edit-link:hover {
    background-color: #138496;
    color: white;
    text-decoration: none;
}

.delete-link {
    background-color: var(--danger-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.9rem;
    transition: background-color 0.3s ease;
}

.delete-link:hover {
    background-color: #c82333;
    color: white;
    text-decoration: none;
}

.create-section {
    text-align: center;
    margin: 3rem 0;
    padding: 2rem;
    background-color: var(--light-color);
    border-radius: 8px;
}

.create-section h2 {
    color: var(--dark-color);
    margin-bottom: 1rem;
}

.create-section p {
    color: var(--text-color);
    margin-bottom: 1.5rem;
}

.no-games {
    text-align: center;
    padding: 3rem;
    background-color: var(--light-color);
    border-radius: 8px;
    margin: 2rem 0;
}

.no-games h2 {
    color: var(--dark-color);
    margin-bottom: 1rem;
}

.no-games p {
    color: var(--text-color);
    margin-bottom: 1.5rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .workflow-steps {
        flex-direction: column;
        gap: 1rem;
    }
    
    .step-item {
        text-align: center;
    }
    
    .form-section {
        padding: 1rem;
    }
    
    .action-buttons .create_button {
        display: block;
        margin: 0.5rem 0;
    }
    
    .word-input-group {
        padding-right: 0;
    }
    
    .games-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .game-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .game-actions a {
        width: 100%;
        max-width: 200px;
        text-align: center;
    }
} 