/* Custom style additions for the clean Bootstrap toolbox site */

:root {
    --primary-color: #0d6efd;
    --primary-hover: #0b5ed7;
    --bg-light: #f8f9fa;
    --text-muted: #6c757d;
}

body {
    font-family: 'Outfit', 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: var(--bg-light);
    color: #212529;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1 0 auto;
}

/* Header & Navigation */
.navbar-brand {
    font-weight: 700;
    letter-spacing: -0.5px;
}

.nav-link {
    font-weight: 500;
}

/* Cards & Components */
.tool-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid rgba(0,0,0,0.08);
}

.tool-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.card-title {
    font-weight: 600;
}

/* Pi Calculator Specifics */
.pi-result-box {
    font-family: 'Courier New', Courier, monospace;
    font-size: 1.05rem;
    line-height: 1.5;
    word-break: break-all;
    max-height: 300px;
    overflow-y: auto;
    background-color: #fff;
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    padding: 1rem;
}

/* Lucky Draw Wheel Specifics */
.wheel-container {
    position: relative;
    max-width: 400px;
    margin: 0 auto;
}

#wheelCanvas {
    display: block;
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: 50%;
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

.wheel-pointer {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 18px solid transparent;
    border-right: 18px solid transparent;
    border-top: 32px solid #dc3545; /* Crimson Pointer pointing down */
    filter: drop-shadow(0 3px 5px rgba(0,0,0,0.25));
    z-index: 10;
}

/* Confetti styling */
.confetti-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 9999;
    overflow: hidden;
}

.confetti {
    position: absolute;
    width: 10px;
    height: 10px;
    background-color: #f00;
    opacity: 0.8;
    animation: fall linear forwards;
}

@keyframes fall {
    0% {
        transform: translateY(-10px) translateX(0px) rotate(0deg);
    }
    100% {
        transform: translateY(105vh) translateX(var(--drift, 0px)) rotate(360deg);
    }
}

/* Extensibility Info Box */
.extensible-badge {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
}
