/* SmartSign Validator - Custom Styles */

/* General */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* Upload Zone */
.upload-zone {
    transition: all 0.3s ease;
    cursor: pointer;
    background-color: #f8f9fa;
}

.upload-zone:hover {
    border-color: #198754 !important;
    background-color: rgba(25, 135, 84, 0.05);
}

.upload-zone.dragover {
    border-color: #198754 !important;
    background-color: rgba(25, 135, 84, 0.1);
}

/* Border dashed */
.border-dashed {
    border-style: dashed !important;
}

/* Cards */
.card {
    border-radius: 0.75rem;
}

.card-header {
    border-radius: 0.75rem 0.75rem 0 0 !important;
}

/* Badges */
.badge {
    font-weight: 500;
}

/* Accordion */
.accordion-button:not(.collapsed) {
    background-color: rgba(25, 135, 84, 0.05);
    color: #198754;
}

.accordion-button:focus {
    box-shadow: 0 0 0 0.25rem rgba(25, 135, 84, 0.25);
}

/* Status Cards */
.status-ok {
    border-left: 4px solid #198754;
}

.status-warning {
    border-left: 4px solid #ffc107;
}

.status-ko {
    border-left: 4px solid #dc3545;
}

/* Print Styles */
@media print {
    .navbar, footer, .btn {
        display: none !important;
    }

    .card {
        break-inside: avoid;
        box-shadow: none !important;
        border: 1px solid #dee2e6 !important;
    }

    .accordion-collapse {
        display: block !important;
    }

    .accordion-button::after {
        display: none;
    }

    body {
        background: white !important;
    }
}

/* RTL Support */
[dir="rtl"] .me-2 {
    margin-right: 0 !important;
    margin-left: 0.5rem !important;
}

[dir="rtl"] .ms-2 {
    margin-left: 0 !important;
    margin-right: 0.5rem !important;
}

[dir="rtl"] .text-start {
    text-align: right !important;
}

[dir="rtl"] .text-end {
    text-align: left !important;
}

/* Spinner */
.spinner-border-sm {
    width: 1rem;
    height: 1rem;
    border-width: 0.15em;
}

/* Table in details */
.table-sm td, .table-sm th {
    padding: 0.4rem 0.6rem;
    font-size: 0.875rem;
}

/* Code styling */
code {
    background-color: #f8f9fa;
    padding: 0.125rem 0.375rem;
    border-radius: 0.25rem;
    font-size: 0.85em;
    color: #495057;
}

/* Form file input */
.form-control[type="file"] {
    padding: 0.375rem 0.75rem;
}

/* Animation for status icons */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.bi-check-circle-fill, .bi-x-circle-fill, .bi-exclamation-triangle-fill {
    animation: pulse 2s infinite;
}

/* Navbar brand */
.navbar-brand {
    font-size: 1.25rem;
}

/* List group items in validation steps */
.list-group-item {
    border-left: none;
    border-right: none;
}

.list-group-item:first-child {
    border-top: none;
}

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

    .card-body {
        padding: 1rem;
    }

    .upload-zone {
        padding: 2rem !important;
    }

    .upload-zone i {
        font-size: 2rem !important;
    }
}
