/* Custom styles for the Ultimate Algebra Engine */

/* General styles */
body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: #0d1117;
}

main {
    flex: 1;
}

/* Math output styling */
.math-display {
    font-size: 1.2rem;
    overflow-x: auto;
    padding: 0.5rem;
}

/* Enhanced feature cards with spotlight effect */
.feature-card {
    height: 100%;
    transition: all 0.3s ease;
    border-color: var(--bs-gray-700) !important;
    position: relative;
    overflow: hidden;
    background: linear-gradient(145deg, #1a1e24, #0f1418);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--bs-info) !important;
    box-shadow: 0 6px 12px rgba(13, 202, 240, 0.15);
}

.feature-card::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        to bottom right,
        rgba(13, 202, 240, 0.1) 0%,
        rgba(13, 202, 240, 0) 30%,
        rgba(13, 202, 240, 0) 70%,
        rgba(13, 202, 240, 0.1) 100%
    );
    transform: rotate(45deg);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.feature-card:hover::before {
    opacity: 1;
}

/* Badge styling */
.badge.bg-success {
    background-color: #0dcaf0 !important;
    color: #000 !important;
    font-size: 0.7rem;
    padding: 0.35em 0.65em;
    box-shadow: 0 0 10px rgba(13, 202, 240, 0.5);
}

.badge.bg-info {
    background-color: #6c757d !important;
    font-size: 0.7rem;
    padding: 0.35em 0.65em;
}

/* Example items styling */
.example-item {
    cursor: pointer;
    transition: all 0.2s ease;
    border: none !important;
    border-radius: 4px;
}

.example-item:hover {
    background-color: var(--bs-gray-700) !important;
    color: var(--bs-info) !important;
    transform: translateX(5px);
}

/* Accordion styling */
.accordion-button:not(.collapsed) {
    color: var(--bs-info) !important;
    background-color: var(--bs-gray-800) !important;
    box-shadow: none !important;
}

.accordion-button:focus {
    box-shadow: none !important;
    border-color: var(--bs-gray-600) !important;
}

.accordion-button::after {
    filter: brightness(0) invert(1);
}

/* Input field styling */
.form-control:focus {
    border-color: var(--bs-info);
    box-shadow: 0 0 0 0.25rem rgba(13, 202, 240, 0.25);
}

/* Button improvements */
.btn-check:checked + .btn-outline-secondary {
    background-color: var(--bs-info);
    border-color: var(--bs-info);
    color: var(--bs-dark);
}

/* Enhanced results display */
#resultsPanel {
    border-color: rgba(13, 202, 240, 0.6) !important;
    box-shadow: 0 0 15px rgba(13, 202, 240, 0.15);
}

/* Steps accordion enhancements */
.step-explanation {
    border-left: 3px solid var(--bs-info);
    padding-left: 0.75rem;
    margin-top: 0.75rem;
    margin-bottom: 0.3rem;
    font-style: italic;
}

/* Enhanced example cards */
.p-2.border.rounded {
    background-color: #0d1117;
    border-color: #30363d !important;
    font-family: 'Courier New', monospace;
    padding: 0.5rem !important;
    transition: all 0.2s ease;
    cursor: pointer;
}

.p-2.border.rounded:hover {
    border-color: var(--bs-info) !important;
    background-color: #161b22;
    transform: scale(1.02);
}

/* Create soft glow for some elements */
.text-info, .alert-info, .text-warning {
    text-shadow: 0 0 10px rgba(13, 202, 240, 0.3);
}

/* Card styling */
.card.bg-dark {
    background-color: #161b22 !important;
    border-color: #30363d !important;
}

/* Input highlight effect */
@keyframes highlight-pulse {
    0% { box-shadow: 0 0 0 0 rgba(13, 202, 240, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(13, 202, 240, 0); }
    100% { box-shadow: 0 0 0 0 rgba(13, 202, 240, 0); }
}

.highlight-pulse {
    animation: highlight-pulse 1s ease-out;
    border-color: var(--bs-info) !important;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #0d1117;
}

::-webkit-scrollbar-thumb {
    background: #30363d;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #3f464e;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .btn-group {
        flex-direction: column;
    }
    
    .btn-group > .btn {
        border-radius: 0.25rem !important;
        margin-bottom: 0.25rem;
    }
}
