/* Custom SWOT Tool Styles */

:root {
    --primary-color: #2563eb;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
        'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
        sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Smooth transitions */
button,
a,
select,
textarea,
input {
    transition: all 0.2s ease;
}

/* Button hover effects */
button:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Focus states */
textarea:focus,
input:focus,
select:focus {
    outline: none;
}

/* SVG Diagram Styles */
#swot-svg {
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
    border-radius: 0.5rem;
}

/* Responsive design */
@media (max-width: 1024px) {
    .sticky {
        position: relative;
        top: 0;
    }
}

/* Animation for loading state */
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.animate-spin {
    animation: spin 1s linear infinite;
}

/* Message styling */
.message-success {
    background-color: #d1fae5;
    border-left: 4px solid #10b981;
    color: #065f46;
}

.message-error {
    background-color: #fee2e2;
    border-left: 4px solid #ef4444;
    color: #7f1d1d;
}

.message-info {
    background-color: #dbeafe;
    border-left: 4px solid #3b82f6;
    color: #1e3a8a;
}

/* Theme transitions */
#swot-svg rect {
    transition: fill 0.3s ease;
}

/* Typography improvements */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 600;
    line-height: 1.2;
}

/* Accessibility improvements */
details > summary::-webkit-details-marker {
    color: var(--primary-color);
}

details[open] > summary {
    color: var(--primary-color);
}

/* Print styles */
@media print {
    header,
    footer,
    .no-print {
        display: none;
    }

    #swot-svg {
        max-width: 100%;
        height: auto;
    }
}

/* Dark mode support (optional future enhancement) */
@media (prefers-color-scheme: dark) {
    body {
        background-color: #1f2937;
        color: #f3f4f6;
    }

    .bg-white {
        background-color: #111827;
    }

    textarea,
    input,
    select {
        background-color: #1f2937;
        color: #f3f4f6;
        border-color: #374151;
    }
}
