/* Delivery Dashboard Styles */

.delivery-dashboard-container {
    margin-top: 20px;
}

/* Tabs */
.nav-tab-wrapper {
    margin-bottom: 20px;
}

.nav-tab {
    position: relative;
}

.nav-tab .badge {
    background: #0073aa;
    color: white;
    border-radius: 10px;
    padding: 2px 6px;
    font-size: 11px;
    margin-left: 5px;
}

/* Tab Content */
.tab-content {
    background: #fff;
    border: 1px solid #ccd0d4;
    border-top: none;
    padding: 20px;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

/* Delivery Grid */
.delivery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

/* Delivery Cards */
.delivery-card {
    background: #fff;
    border: 1px solid #ccd0d4;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
}

.delivery-card:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.delivery-card.completed {
    opacity: 0.7;
    background: #f9f9f9;
}

.delivery-card.today {
    border-left: 4px solid #0073aa;
}

.delivery-card.tomorrow {
    border-left: 4px solid #ff9800;
}

.delivery-card-header {
    padding: 15px;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.delivery-card-title h3 {
    margin: 0 0 5px 0;
    color: #23282d;
    font-size: 16px;
}

.delivery-card-title .customer-name {
    margin: 0;
    color: #666;
    font-size: 13px;
}

.delivery-card-actions {
    display: flex;
    gap: 5px;
}

.delivery-card-actions .button {
    padding: 4px 8px;
    font-size: 11px;
    height: auto;
    line-height: 1.4;
}

.delivery-card-content {
    padding: 15px;
}

.delivery-info {
    margin-bottom: 15px;
}

.info-item {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    font-size: 13px;
    color: #666;
}

.info-item:last-child {
    margin-bottom: 0;
}

.info-item .dashicons {
    margin-right: 8px;
    color: #0073aa;
    font-size: 16px;
    width: 16px;
    height: 16px;
}

.delivery-status {
    border-top: 1px solid #f0f0f0;
    padding-top: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.delivery-status label {
    display: flex;
    align-items: center;
    font-size: 13px;
    cursor: pointer;
}

.delivery-status input[type="checkbox"] {
    margin-right: 8px;
}

.status-badge {
    background: #46b450;
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
}

.status-badge.completed {
    background: #46b450;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    background: #f9f9f9;
    border: 2px dashed #ccd0d4;
    border-radius: 8px;
}

.empty-state .dashicons {
    font-size: 48px;
    color: #ccd0d4;
    margin-bottom: 15px;
}

.empty-state h3 {
    margin: 0 0 10px 0;
    color: #666;
}

.empty-state p {
    margin: 0 0 20px 0;
    color: #999;
}

/* Actions */
.delivery-dashboard-actions {
    margin-top: 30px;
    text-align: center;
}

.delivery-dashboard-actions .button {
    padding: 12px 24px;
    font-size: 14px;
    height: auto;
}

.delivery-dashboard-actions .dashicons {
    margin-right: 5px;
}

/* Form Styles */
.delivery-form-container {
    max-width: 600px;
    background: #fff;
    padding: 20px;
    border: 1px solid #ccd0d4;
    border-radius: 8px;
    margin-top: 20px;
}

.delivery-form .form-table th {
    width: 150px;
}

.delivery-form .form-table td {
    padding: 15px 10px;
}

.delivery-form .submit {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .delivery-grid {
        grid-template-columns: 1fr;
    }
    
    .delivery-card-header {
        flex-direction: column;
        gap: 10px;
    }
    
    .delivery-card-actions {
        justify-content: flex-start;
    }
    
    .delivery-status {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
}

/* Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.delivery-card {
    animation: fadeIn 0.3s ease-out;
}

/* WordPress Admin Integration */
.wrap .nav-tab-wrapper {
    border-bottom: 1px solid #c3c4c7;
    margin: 0;
    padding-top: 0;
}

.wrap .nav-tab {
    margin-left: 0;
    margin-right: 0;
    padding: 5px 10px;
    font-size: 14px;
    line-height: 24px;
    font-weight: 600;
    background: #dcdcde;
    color: #2c3338;
    text-decoration: none;
    white-space: nowrap;
    border: 1px solid #c3c4c7;
    border-bottom: none;
}

.wrap .nav-tab:hover {
    background-color: #f1f1f2;
    border-color: #8c8f94;
}

.wrap .nav-tab-active,
.wrap .nav-tab-active:focus,
.wrap .nav-tab-active:focus:active,
.wrap .nav-tab-active:hover {
    border-bottom: 1px solid #f0f0f1;
    background: #f0f0f1;
    color: #000;
}
