/* Custom Styles for Returns Manager */

:root {
    --primary-color: #0d6efd;
    --success-color: #198754;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

/* Card styling */
.card {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    margin-bottom: 1.5rem;
}

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

/* Table styling */
.table th {
    font-weight: 600;
    background-color: #f8f9fa;
}

.table-hover tbody tr:hover {
    background-color: #f8f9fa;
    cursor: pointer;
}

/* Badge styling */
.badge {
    font-weight: 500;
    padding: 0.35em 0.65em;
}

/* Status indicators */
.status-pending {
    color: var(--warning-color);
}

.status-approved {
    color: var(--primary-color);
}

.status-received {
    color: var(--success-color);
}

/* Photo gallery */
#photoGallery img {
    max-height: 200px;
    object-fit: cover;
    transition: transform 0.2s;
}

#photoGallery img:hover {
    transform: scale(1.05);
}

/* Internal Notes */
#notesList .card {
    background-color: #f8f9fa;
    transition: box-shadow 0.2s;
}

#notesList .card:hover {
    box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.1);
}

#notesList .card p {
    white-space: pre-wrap;
    word-wrap: break-word;
}

#addNoteForm textarea {
    resize: vertical;
    min-height: 80px;
}

/* Form improvements */
.form-label {
    font-weight: 500;
    margin-bottom: 0.5rem;
}

/* Loading spinner */
.spinner-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

/* Alert styling */
.alert {
    border-radius: 0.5rem;
}

/* Footer */
.footer {
    margin-top: auto;
    border-top: 1px solid #dee2e6;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .table-responsive {
        font-size: 0.875rem;
    }

    h1 {
        font-size: 1.75rem;
    }

    .btn {
        font-size: 0.875rem;
    }
}

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

    .card {
        box-shadow: none;
        border: 1px solid #dee2e6;
    }
}
