/* Custom Styles for Delivery App */

:root {
    --primary-gradient: linear-gradient(135deg, #0d6efd 0%, #0a58ca 100%);
    --success-gradient: linear-gradient(135deg, #198754 0%, #146c43 100%);
    --warning-gradient: linear-gradient(135deg, #ffc107 0%, #ffb300 100%);
    --info-gradient: linear-gradient(135deg, #0dcaf0 0%, #0aa2c0 100%);
}

/* Screen Management */
.screen {
    display: none;
}

.screen.active {
    display: block;
}

/* Login Screen */
.login-card {
    border-radius: 20px;
    animation: fadeInUp 0.5s ease-out;
}

.logo-img {
    width: 125px;
    height: 125px;
    object-fit: contain;
    border-radius: 15px;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Header */
.header-logo {
    width: 35px;
    height: 35px;
    border-radius: 8px;
}

/* Navigation Tabs */
.nav-pills .nav-link {
    border-radius: 0;
    color: #6c757d;
    padding: 0.75rem 0.5rem;
    font-size: 0.75rem;
}

.nav-pills .nav-link.active {
    background-color: #0d6efd;
    color: white;
}

.nav-pills .nav-link i {
    font-size: 1.25rem;
}

/* Stats Cards */
.stat-card {
    border: none;
    border-radius: 15px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.15) !important;
}

.stat-primary {
    background: var(--primary-gradient);
}

.stat-success {
    background: var(--success-gradient);
}

.stat-warning {
    background: var(--warning-gradient);
}

.stat-info {
    background: var(--info-gradient);
}

/* List Items */
.list-item {
    border: none;
    border-radius: 12px;
    margin-bottom: 0.75rem;
    transition: all 0.3s;
    cursor: pointer;
}

.list-item:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1) !important;
}

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

/* Buttons */
.btn {
    border-radius: 10px;
    font-weight: 500;
    transition: all 0.3s;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

/* Cards */
.card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.card-header {
    border-bottom: 1px solid #e9ecef;
    border-radius: 15px 15px 0 0 !important;
}

/* Loading Spinner */
.spinner-border {
    width: 3rem;
    height: 3rem;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: #6c757d;
}

.empty-state i {
    font-size: 4rem;
    opacity: 0.3;
    margin-bottom: 1rem;
}

/* Toast */
.toast {
    border-radius: 10px;
}

/* Table */
.table {
    border-radius: 10px;
    overflow: hidden;
}

.table thead {
    background-color: #f8f9fa;
}

/* Fix for table-bordered with border-radius */
.table-bordered {
    border-collapse: separate !important;
    border-spacing: 0;
}

.table-bordered thead th:first-child {
    border-top-left-radius: 10px;
    border-left: 1px solid #dee2e6;
}

.table-bordered thead th:last-child {
    border-top-right-radius: 10px;
    border-right: 1px solid #dee2e6;
}

.table-bordered tbody tr:last-child td:first-child {
    border-bottom-left-radius: 10px;
}

.table-bordered tbody tr:last-child td:last-child {
    border-bottom-right-radius: 10px;
}

.table-bordered thead th {
    border-top: 1px solid #dee2e6;
    border-bottom: 2px solid #dee2e6;
}

.table-bordered tbody tr:last-child td {
    border-bottom: 1px solid #dee2e6;
}

/* Responsive Adjustments */
@media (max-width: 576px) {
    .stat-card .card-body {
        padding: 1rem;
    }
    
    .stat-card h3 {
        font-size: 1.5rem;
    }
    
    .nav-pills .nav-link {
        padding: 0.5rem 0.25rem;
        font-size: 0.7rem;
    }
    
    .nav-pills .nav-link i {
        font-size: 1rem;
    }
}

/* Animation */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.tab-pane.active {
    animation: slideIn 0.3s ease-out;
}

/* Badge */
.badge {
    padding: 0.35em 0.65em;
    border-radius: 8px;
}

/* Input Group */
.input-group-text {
    background-color: #f8f9fa;
    border-color: #dee2e6;
}

/* Custom Scrollbar */
::-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;
}

/* PWA Install Banner */
.install-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 100%);
    color: white;
    padding: 12px 16px;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
    z-index: 10500;
    animation: slideUp 0.3s ease-out;
}

.install-banner-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 100%;
}

.install-banner-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    object-fit: contain;
    background: white;
    padding: 4px;
}

.install-banner-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

/* Hide install banner when app is installed */
@media (display-mode: standalone) {
    .install-banner {
        display: none !important;
    }
}

