/* WhatsApp Order Plugin Styles */

.wwo-whatsapp-notice {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 2px solid #28a745;
    border-radius: 12px;
    padding: 25px;
    margin: 25px 0;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    animation: slideIn 0.5s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.wwo-whatsapp-notice h3 {
    color: #28a745;
    margin-bottom: 15px;
    font-size: 24px;
    font-weight: bold;
}

.wwo-whatsapp-notice p {
    font-size: 16px;
    margin-bottom: 20px;
    color: #495057;
    line-height: 1.5;
}

.wwo-whatsapp-notice .button {
    background: #25d366 !important;
    border-color: #25d366 !important;
    color: white !important;
    font-size: 16px;
    padding: 12px 24px;
    text-decoration: none;
    display: inline-block;
    border-radius: 25px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(37, 211, 102, 0.3);
}

.wwo-whatsapp-notice .button:hover {
    background: #22c55e !important;
    border-color: #22c55e !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(37, 211, 102, 0.4);
}

/* 密码表单样式 */
.wwo-password-form {
    max-width: 400px;
    margin: 100px auto;
    padding: 30px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.wwo-password-form h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #333;
}

.wwo-password-form input[type="password"] {
    width: 100%;
    padding: 12px;
    margin-top: 5px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

.wwo-password-form button {
    width: 100%;
    padding: 12px;
    background: #0073aa;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.3s ease;
}

.wwo-password-form button:hover {
    background: #005a87;
}

/* 订单列表样式 */
.wwo-orders-container {
    max-width: 1200px;
    margin: 20px auto;
    padding: 20px;
}

.wwo-orders-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e9ecef;
}

.wwo-orders-header h1 {
    color: #333;
    margin: 0;
}

.wwo-logout-link {
    color: #dc3545;
    text-decoration: none;
    padding: 8px 16px;
    border: 1px solid #dc3545;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.wwo-logout-link:hover {
    background: #dc3545;
    color: white;
}

.wwo-orders-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    border-radius: 8px;
    overflow: hidden;
}

.wwo-orders-table th {
    padding: 15px 12px;
    background: #f8f9fa;
    border-bottom: 2px solid #dee2e6;
    text-align: left;
    font-weight: 600;
    color: #495057;
}

.wwo-orders-table td {
    padding: 12px;
    border-bottom: 1px solid #dee2e6;
    vertical-align: top;
}

.wwo-orders-table tr:hover {
    background: #f8f9fa;
}

.wwo-status-badge {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
}

.wwo-status-processing {
    background: #ffc107;
    color: #212529;
}

.wwo-status-completed {
    background: #28a745;
    color: white;
}

.wwo-status-on-hold {
    background: #6c757d;
    color: white;
}

.wwo-view-details-btn {
    padding: 6px 12px;
    background: #007cba;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.3s ease;
}

.wwo-view-details-btn:hover {
    background: #005a87;
}

/* 模态框样式 */
.wwo-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.wwo-modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 30px;
    border-radius: 8px;
    max-width: 600px;
    width: 90%;
    max-height: 80%;
    overflow-y: auto;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.wwo-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #dee2e6;
}

.wwo-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #6c757d;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wwo-modal-close:hover {
    color: #dc3545;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .wwo-orders-container {
        padding: 10px;
    }
    
    .wwo-orders-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .wwo-orders-table {
        font-size: 14px;
    }
    
    .wwo-orders-table th,
    .wwo-orders-table td {
        padding: 8px 6px;
    }
    
    .wwo-modal-content {
        width: 95%;
        padding: 20px;
    }
}

/* 消息提示样式 */
.wwo-message {
    padding: 10px 15px;
    border-radius: 4px;
    margin: 15px 0;
    text-align: center;
}

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

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

/* 加载动画 */
.wwo-loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #007cba;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
