﻿/* Decision Maker - Tool Styles */

/* Tool Options */
.tool-options {
    padding: 1.25rem;
    margin-bottom: 1.5rem;
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
}

.tool-options .option-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.tool-options .option-group label {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-color);
}

.tool-options select {
    padding: 0.8rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    background: var(--surface-color);
    color: var(--text-color);
    cursor: pointer;
    width: 100%;
}

.tool-options select:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* Error Message */
.error-msg {
    background: #fee;
    border: 1px solid #fcc;
    border-radius: var(--radius-md);
    color: #c33;
    padding: 1rem;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    display: none;
}

.error-msg.show {
    display: block;
}

/* Input Group */
.input-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 2rem;
    display: none;
}

.input-group.active {
    display: flex;
}

.input-group label {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-color);
}

.input-area {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.input-group textarea {
    padding: 1rem;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    resize: vertical;
    background: var(--surface-color);
    color: var(--text-color);
    border: none;
}

.input-group textarea:focus {
    outline: none;
}

/* Spinner Container */
.spinner-container {
    margin-bottom: 2rem;
    text-align: center;
}

.wheel-wrapper {
    position: relative;
    width: 250px;
    height: 250px;
    margin: 2rem auto 2rem;
}

.pointer {
    position: absolute;
    top: -5px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    width: 0;
    height: 0;
    border-left: 12px solid transparent;
    border-right: 12px solid transparent;
    border-top: 15px solid var(--primary-color);
}

.wheel {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    transform-origin: center center;
}

/* Result Display */
.result-display {
    background: var(--surface-color);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    margin-bottom: 1.5rem;
    border: 1px solid var(--border-color);
}

.result-label {
    font-size: 0.9rem;
    color: var(--text-color-secondary);
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.result-text {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--text-color);
    min-height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Tool Actions */
.tool-actions-horizontal {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.action-btn {
    padding: 0.8rem 1.5rem;
    background: var(--border-color);
    color: var(--text-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 150px;
    justify-content: center;
}

.action-btn:hover:not(:disabled) {
    background: var(--text-color-secondary);
    border-color: var(--text-color-secondary);
}

.action-btn.primary {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.action-btn.primary:hover:not(:disabled) {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
}

.action-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Sidebar */
.tool-sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.related-tools,
.tool-tips {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.related-tools h4,
.tool-tips h4 {
    margin-top: 0;
    margin-bottom: 1rem;
    color: var(--primary-color);
    font-size: 1rem;
}

.related-tools ul,
.tool-tips ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.related-tools li,
.tool-tips li {
    margin-bottom: 0.75rem;
    padding-left: 1.5rem;
    position: relative;
    font-size: 0.95rem;
}

.related-tools li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

.tool-tips li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

.related-tools li:last-child,
.tool-tips li:last-child {
    margin-bottom: 0;
}

.related-tools a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.2s;
}

.related-tools a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

/* Tool Section */
.tool-section {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.5rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .wheel-wrapper {
        width: 250px;
        height: 250px;
    }

    .use-case-grid {
        grid-template-columns: 1fr;
    }

    .tool-sidebar {
        flex-direction: column;
        gap: 1.5rem;
    }

    .result-text {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .wheel-wrapper {
        width: 200px;
        height: 200px;
        margin: 0 auto 1.5rem;
    }

    .spinner-container {
        margin-bottom: 1.5rem;
    }

    .result-display {
        padding: 1rem;
    }

    .result-text {
        font-size: 1.3rem;
    }
}
