/* style.css - add share button style */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f5f5f5;
    margin: 0;
    padding: 20px;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

header {
    text-align: center;
    margin-bottom: 30px;
}

header h1 {
    color: #2c3e50;
    margin-bottom: 5px;
}

.input-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 6px;
}

.input-section label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.input-section input, .input-section select {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

#queryBtn {
    grid-column: 1 / -1;
    padding: 12px;
    background: #3498db;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s;
}

#queryBtn:hover {
    background: #2980b9;
}

.loading {
    text-align: center;
    padding: 40px;
    font-size: 18px;
    color: #7f8c8d;
}

.orders-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.order-card {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    background: white;
    box-shadow: 0 1px 5px rgba(0,0,0,0.1);
}

.order-card h3 {
    margin: 0 0 10px;
    color: #2c3e50;
}

.preview-link {
    word-break: break-all;
    font-family: monospace;
    font-size: 12px;
    color: #3498db;
    background: #f8f9fa;
    padding: 5px;
    border-radius: 3px;
    margin-bottom: 10px;
}

.order-info {
    font-size: 14px;
    margin-bottom: 10px;
}

.order-buttons {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
}

.order-btn {
    flex: 1;
    min-width: 100px;
    padding: 8px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    transition: background 0.3s;
}

.copy-express {
    background: #27ae60;
    color: white;
}

.copy-express:hover {
    background: #229954;
}

.view-logistics {
    background: #e67e22;
    color: white;
}

.view-logistics:hover {
    background: #d35400;
}

.view-progress {
    background: #9b59b6;
    color: white;
}

.view-progress:hover {
    background: #8e44ad;
}

.get-preview {
    background: #34495e;
    color: white;
}

.get-preview:hover {
    background: #2c3e50;
}

.share-order {
    background: #e74c3c;
    color: white;
}

.share-order:hover {
    background: #c0392b;
}

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

.modal-content {
    background: white;
    margin: 5% auto;
    padding: 20px;
    border-radius: 8px;
    width: 90%;
    max-width: 800px;
    max-height: 80%;
    overflow-y: auto;
}

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

.close:hover {
    color: black;
}

.logistics-item, .progress-item, .preview-item {
    padding: 10px;
    border-bottom: 1px solid #eee;
    margin-bottom: 5px;
}

.progress-list, .preview-list {
    max-height: 300px;
    overflow-y: auto;
}

.preview-item label {
    font-weight: bold;
    display: block;
    margin-bottom: 5px;
}

.preview-item a {
    word-break: break-all;
    color: #3498db;
    text-decoration: none;
}

.preview-item a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .input-section {
        grid-template-columns: 1fr;
    }

    .orders-grid {
        grid-template-columns: 1fr;
    }

    .order-buttons {
        flex-direction: column;
    }
}
