/**
 * Tailoring Shop Management System - Custom Styles
 */

/* General Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
}

/* Navigation Bar */
.navbar-brand {
    font-weight: bold;
    font-size: 1.3rem;
}

/* Cards */
.card {
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    border: none;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.card-header {
    border-radius: 8px 8px 0 0 !important;
    font-weight: 600;
}

/* Footer */
.footer {
    background-color: #f8f9fa;
    border-top: 1px solid #dee2e6;
    position: relative;
    bottom: 0;
    width: 100%;
}

/* Dashboard Cards */
.card.text-white h2 {
    font-weight: bold;
    margin: 0;
}

.card.text-white h6 {
    font-size: 0.9rem;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Tables */
.table-hover tbody tr:hover {
    background-color: rgba(0,0,0,0.03);
    cursor: pointer;
}

/* Badges */
.badge {
    padding: 0.4em 0.8em;
    font-weight: 500;
}

/* Buttons */
.btn {
    border-radius: 5px;
    font-weight: 500;
    padding: 0.5rem 1rem;
}

.btn-sm {
    padding: 0.25rem 0.5rem;
}

.btn-lg {
    padding: 0.75rem 1.5rem;
}

/* Forms */
.form-control, .form-select {
    border-radius: 5px;
}

.form-control:focus, .form-select:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.2rem rgba(13,110,253,0.25);
}

/* Breadcrumb */
.breadcrumb {
    background-color: transparent;
    padding: 0;
    margin-bottom: 1rem;
}

/* Pagination */
.pagination {
    margin-top: 1.5rem;
}

/* Alert Messages */
.alert {
    border-radius: 5px;
    border: none;
}

/* Print Styles */
@media print {
    .no-print {
        display: none !important;
    }
    
    body {
        background: white;
    }
    
    .card {
        box-shadow: none;
        border: 1px solid #ddd;
    }
    
    .navbar, .footer {
        display: none;
    }
}

/* Print-only elements */
.print-only {
    display: none;
}

@media print {
    .print-only {
        display: block !important;
    }
}

/* Login Page */
.min-vh-100 {
    min-height: 100vh;
}

/* Responsive Table */
.table-responsive {
    overflow-x: auto;
}

/* Status Badges Colors */
.badge.bg-pending {
    background-color: #ffc107 !important;
}

.badge.bg-fitting {
    background-color: #0dcaf0 !important;
}

.badge.bg-delivered {
    background-color: #198754 !important;
}

.badge.bg-active {
    background-color: #0d6efd !important;
}

.badge.bg-returned {
    background-color: #198754 !important;
}

/* Measurement Fields */
input[type="text"].form-control[placeholder*="Largo"],
input[type="text"].form-control[placeholder*="Contorno"],
input[type="text"].form-control[placeholder*="Ancho"],
input[type="text"].form-control[placeholder*="Pecho"],
input[type="text"].form-control[placeholder*="Espalda"] {
    font-size: 0.9rem;
}

/* Dashboard Statistics Cards */
.card.bg-warning,
.card.bg-info,
.card.bg-primary,
.card.bg-success {
    transition: transform 0.2s;
}

.card.bg-warning:hover,
.card.bg-info:hover,
.card.bg-primary:hover,
.card.bg-success:hover {
    transform: translateY(-2px);
}

/* Empty State */
.text-center.py-5 i.display-1,
.text-center.py-4 i.display-4 {
    opacity: 0.3;
}

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

/* Custom scrollbar for webkit browsers */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Utility Classes */
.fw-semibold {
    font-weight: 600;
}

.text-small {
    font-size: 0.875rem;
}

.text-xsmall {
    font-size: 0.75rem;
}

/* Receipt Styles */
.receipt-container {
    background: white;
    padding: 2rem;
}

.company-header h1 {
    color: #333;
    margin-bottom: 0.5rem;
}

.receipt-table table {
    margin-bottom: 2rem;
}

.total-section {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 5px;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .navbar-brand {
        font-size: 1rem;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    .btn {
        padding: 0.4rem 0.8rem;
    }
    
    h1, h2 {
        font-size: 1.5rem;
    }
    
    h3, h4 {
        font-size: 1.25rem;
    }
}

/* Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card {
    animation: fadeIn 0.3s ease-in;
}
