/* Cutting Records Page Styles */

@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700;900&display=swap');

html, body {
    height: 100%;
    min-height: 100vh;
}

body {
    font-family: 'Roboto', sans-serif;
    --eecol-blue: #0058B3;
}

.eecol-blue-bg {
    background-image: linear-gradient(to bottom, var(--eecol-blue) 20%, white 80%);
}

.header-gradient {
    background-image: linear-gradient(90deg, var(--eecol-blue), #004a99);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

.cut-record-item {
    padding: 4px 0;
    border-bottom: 1px dashed #e5e7eb;
}

.cut-record-item:last-child {
    border-bottom: none;
}

.loading-spinner {
    border: 2px solid #f3f3f3;
    border-top: 2px solid #0058B3;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Styling for Documentation Glossary */
.glossary dt {
    font-weight: 700;
}

.glossary dd {
    margin-left: 1rem;
}

/* Enhanced mobile responsive improvements */
@media (max-width: 640px) {
    /* Hide certain elements on mobile for cleaner UI */
    .record-item-mobile {
        display: block !important;
    }
    .hide-on-mobile {
        display: none !important;
    }
    .mobile-stack {
        flex-direction: column !important;
        gap: 0.5rem !important;
    }

    /* Better form stacking for touch devices */
    .mobile-form-stack {
        flex-direction: column !important;
        gap: 1rem !important;
    }
    .mobile-form-group {
        width: 100% !important;
        margin-bottom: 0.75rem;
    }

    /* Touch-friendly input sizing */
    .mobile-touch-input {
        padding: 0.75rem !important;
        font-size: 16px !important; /* Prevent zoom on iOS */
        min-height: 44px !important; /* Apple's minimum touch target */
    }

    /* Better button stacking */
    .mobile-button-stack {
        flex-direction: column !important;
        gap: 0.5rem !important;
        width: 100%;
    }
    .mobile-button-stack button,
    .mobile-button-stack a {
        width: 100% !important;
        margin: 0 !important;
        padding: 0.75rem 1rem !important;
        min-height: 44px !important;
    }

    /* Horizontal scroll for record lists that might overflow */
    .record-list-mobile-scroll {
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        padding-bottom: 1rem;
    }

    /* Compact spacing for mobile */
    .mobile-compact-spacing {
        gap: 0.5rem !important;
        padding: 0.75rem !important;
    }

    /* Full width lists on mobile */
    .mobile-full-width {
        width: 100% !important;
        box-sizing: border-box !important;
    }

    /* Better text wrapping for cut records */
    .cut-record-item {
        word-break: break-word !important;
        padding: 1rem 0.75rem !important;
        border-bottom: 1px dashed rgba(229, 231, 235, 0.5) !important;
    }
    .cut-record-item p {
        margin-bottom: 0.25rem !important;
        font-size: 0.75rem !important;
        line-height: 1.3 !important;
    }

    /* Form spacing improvements */
    .space-y-4 > * + * {
        margin-top: 0.75rem !important;
    }
    .space-y-6 > * + * {
        margin-top: 1rem !important;
    }

    /* Better batch entry scrolling */
    #batchCutList {
        max-height: 200px !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
    }

    /* Compact statistics grid */
    .grid.grid-cols-3 {
        grid-template-columns: 1fr !important;
        gap: 0.25rem !important;
    }
    .grid.grid-cols-3 > div {
        padding: 0.5rem !important;
        font-size: 0.75rem !important;
    }
}

/* Additional touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    /* Touch device specific enhancements */
    .touch-device-friendly {
        min-height: 44px !important;
        min-width: 44px !important;
    }
    button, input, select {
        min-height: 44px !important;
    }
}

