/* Parcel Hub Styles */
.parcel-hub-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.parcel-header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem;
    background: linear-gradient(135deg, #334EAC 0%, #081F5C 100%);
    border-radius: 15px;
    color: white;
    box-shadow: 0 8px 32px rgba(8, 31, 92, 0.15);
}

.parcel-header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.parcel-header p {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Service Login Section */
.service-login-section {
    margin-bottom: 3rem;
}

.login-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    max-width: 400px;
    margin: 0 auto;
}

.login-card h2 {
    color: #334EAC;
    margin-bottom: 1.5rem;
    text-align: center;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #333;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #334EAC;
    box-shadow: 0 0 0 3px rgba(51, 78, 172, 0.1);
}

/* Service Dashboard */
.service-dashboard {
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    margin-bottom: 3rem;
    overflow: hidden;
}

.dashboard-header {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dashboard-header h2 {
    margin: 0;
    font-size: 1.5rem;
}

.add-parcel-section {
    padding: 2rem;
}

.add-parcel-section h3 {
    color: #334EAC;
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

/* Buttons */
.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, #334EAC 0%, #081F5C 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(51, 78, 172, 0.3);
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #5a6268;
    transform: translateY(-2px);
}

.btn-success {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

.btn-danger {
    background: #dc3545;
    color: white;
}

.btn-danger:hover {
    background: #c82333;
    transform: translateY(-2px);
}

/* Parcel Tracking Section */
.parcel-tracking-section {
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.tracking-header {
    background: linear-gradient(135deg, #334EAC 0%, #081F5C 100%);
    color: white;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.tracking-header h2 {
    margin: 0;
    font-size: 1.5rem;
}

.search-box {
    display: flex;
    gap: 0.5rem;
    max-width: 400px;
}

.search-box input {
    flex: 1;
    padding: 0.75rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
}

.search-box input:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
}

/* Status Filter */
.status-filter {
    padding: 1rem 2rem;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.5rem 1rem;
    border: 2px solid #dee2e6;
    background: white;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.filter-btn:hover {
    border-color: #334EAC;
    color: #334EAC;
}

.filter-btn.active {
    background: #334EAC;
    border-color: #334EAC;
    color: white;
}

/* Parcels Container */
.parcels-container {
    padding: 2rem;
    min-height: 400px;
}

.parcels-list {
    display: grid;
    gap: 1rem;
}

.parcel-card {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    position: relative;
}

.parcel-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.parcel-header-info {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.parcel-recipient {
    font-size: 1.2rem;
    font-weight: 600;
    color: #334EAC;
}

.parcel-status {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
}

.parcel-status.pending {
    background: #fff3cd;
    color: #856404;
}

.parcel-status.collected {
    background: #d4edda;
    color: #155724;
}

.parcel-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.parcel-detail {
    display: flex;
    flex-direction: column;
}

.parcel-detail-label {
    font-size: 0.85rem;
    color: #6c757d;
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.parcel-detail-value {
    font-weight: 600;
    color: #333;
}

.parcel-actions {
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
}

.parcel-actions .btn {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

.parcel-collected-text {
    color: #28a745;
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.parcel-pending-text {
    color: #ffc107;
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Loading and Empty States */
.loading-spinner,
.no-parcels {
    text-align: center;
    padding: 3rem;
    color: #6c757d;
}

.loading-spinner i {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #334EAC;
}

.no-parcels i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #dee2e6;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: white;
    margin: 15% auto;
    padding: 2rem;
    border-radius: 15px;
    width: 90%;
    max-width: 500px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    right: 1rem;
    top: 1rem;
}

.close:hover {
    color: #000;
}

#modal-message {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 8px;
    font-weight: 500;
}

#modal-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

#modal-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Responsive Design */
@media (max-width: 768px) {
    .parcel-hub-container {
        padding: 1rem;
    }

    .parcel-header h1 {
        font-size: 2rem;
    }

    .tracking-header {
        flex-direction: column;
        align-items: stretch;
    }

    .search-box {
        max-width: none;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .parcel-header-info {
        flex-direction: column;
        gap: 1rem;
    }

    .parcel-details {
        grid-template-columns: 1fr;
    }

    .parcel-actions {
        justify-content: stretch;
    }

    .parcel-actions .btn {
        flex: 1;
    }
}

@media (max-width: 480px) {
    .status-filter {
        justify-content: center;
    }

    .filter-btn {
        font-size: 0.9rem;
        padding: 0.4rem 0.8rem;
    }
}