/* Quantum Action Plugin Styles */

.quantum-action-container {
    max-width: 600px;
    margin: 40px auto;
    padding: 0 20px;
}

.quantum-action-form {
    background: #ffffff;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.qa-title {
    font-size: 28px;
    font-weight: 700;
    color: #2c3e50;
    margin: 0 0 12px 0;
    text-align: center;
}

.qa-description {
    font-size: 15px;
    color: #7f8c8d;
    text-align: center;
    margin: 0 0 32px 0;
    line-height: 1.6;
}

.qa-form-group {
    margin-bottom: 24px;
}

.qa-form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #34495e;
    margin-bottom: 8px;
}

.qa-form-group .required {
    color: #e74c3c;
}

.qa-form-group input[type="date"],
.qa-form-group input[type="time"],
.qa-form-group input[type="text"] {
    width: 100%;
    padding: 12px 16px;
    font-size: 15px;
    border: 2px solid #e0e6ed;
    border-radius: 8px;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.qa-form-group input:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.qa-help-text {
    display: block;
    font-size: 13px;
    color: #95a5a6;
    margin-top: 6px;
}

.qa-theme-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: 12px;
}

.qa-radio-option {
    cursor: pointer;
}

.qa-radio-option input[type="radio"] {
    display: none;
}

.qa-radio-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: #f8f9fa;
    border: 2px solid #e0e6ed;
    border-radius: 10px;
    transition: all 0.3s ease;
    min-height: 100px;
}

.qa-radio-option input[type="radio"]:checked + .qa-radio-label {
    background: #e3f2fd;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.qa-radio-label:hover {
    border-color: #3498db;
    transform: translateY(-2px);
}

.qa-theme-icon {
    font-size: 32px;
    margin-bottom: 8px;
}

.qa-theme-text {
    font-size: 15px;
    font-weight: 600;
    color: #2c3e50;
}

.qa-submit-btn {
    width: 100%;
    padding: 16px;
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 8px;
    position: relative;
}

.qa-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.qa-submit-btn:active {
    transform: translateY(0);
}

.qa-submit-btn:disabled {
    background: #95a5a6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.qa-spinner {
    margin-left: 8px;
}

.qa-result {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 32px;
    margin-top: 24px;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.qa-result-title {
    font-size: 22px;
    font-weight: 700;
    color: #2c3e50;
    margin: 0 0 20px 0;
    text-align: center;
}

.qa-result-content {
    font-size: 15px;
    line-height: 1.8;
    color: #34495e;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.qa-secondary-btn {
    width: 100%;
    padding: 12px;
    font-size: 14px;
    font-weight: 600;
    color: #667eea;
    background: #ffffff;
    border: 2px solid #667eea;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 20px;
}

.qa-secondary-btn:hover {
    background: #667eea;
    color: #ffffff;
}

.qa-error {
    background: #fee;
    border: 2px solid #e74c3c;
    border-radius: 8px;
    padding: 16px;
    margin-top: 16px;
    color: #c0392b;
    font-size: 14px;
    animation: shake 0.5s ease;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}

/* レスポンシブ対応 */
@media (max-width: 600px) {
    .quantum-action-form {
        padding: 24px;
    }
    
    .qa-title {
        font-size: 24px;
    }
    
    .qa-theme-options {
        grid-template-columns: 1fr;
    }
    
    .qa-result {
        padding: 20px;
    }
}
