/* Custom styles for the sock pattern generator
   Palette aligned with biscotte-theme.css (saturated brand green) */

:root {
    --knitting-primary: #64AB55;
    --knitting-accent: #3F6136;
}

/* Custom theme adjustments */
.navbar-brand {
    font-weight: 600;
}

.text-primary {
    color: var(--knitting-primary) !important;
}

/* Pattern output specific styles */
.pattern-section {
    margin-bottom: 2rem;
}

.pattern-instructions {
    line-height: 1.6;
}

.pattern-instructions p {
    margin-bottom: 0.75rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .display-4 {
        font-size: 2rem;
    }

    .display-5 {
        font-size: 1.5rem;
    }
}

/* Print styles */
@media print {
    body {
        font-size: 12pt;
        line-height: 1.4;
    }

    .navbar,
    .btn,
    footer,
    .no-print {
        display: none !important;
    }

    .card {
        border: 1px solid #000 !important;
        box-shadow: none !important;
        page-break-inside: avoid;
        margin-bottom: 1rem;
    }

    .card-header {
        background-color: #f8f9fa !important;
        border-bottom: 1px solid #000 !important;
    }

    h1, h2, h3, h4, h5, h6 {
        color: #000 !important;
    }

    .text-muted {
        color: #666 !important;
    }
}

/* Loading animation */
.loading {
    display: inline-block;
    width: 1rem;
    height: 1rem;
    border: 2px solid rgba(100, 171, 85, 0.3);
    border-radius: 50%;
    border-top-color: var(--knitting-primary);
    animation: spin 0.8s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Form enhancements */
.form-floating {
    margin-bottom: 1rem;
}

/* Icon adjustments */
.fas {
    width: 1.2em;
    text-align: center;
}

/* Custom spacing utilities */
.mb-6 {
    margin-bottom: 3.5rem;
}

.mt-6 {
    margin-top: 3.5rem;
}

/* Pattern calculations highlight */
.pattern-calc {
    background-color: #EAF3E7;
    border-left: 4px solid var(--knitting-primary);
    padding: 1rem;
    margin: 1rem 0;
    border-radius: 0.25rem;
}

/* Success state for completed sections */
.section-complete {
    border-left: 4px solid var(--knitting-primary);
}

/* Warning state for attention needed */
.section-warning {
    border-left: 4px solid #ffc107;
}
