* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 20px;
    min-height: 100vh;
    line-height: 1.6;
}

.app-container {
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    backdrop-filter: blur(10px);
}

header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
}

header h1 {
    color: #2c3e50;
    margin-bottom: 10px;
    font-size: 2.5rem;
    font-weight: 700;
}

header p {
    color: #7f8c8d;
    font-size: 1.1rem;
}

.management-header {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    justify-content: center;
}

.manage-btn {
    padding: 12px 24px;
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

.manage-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4);
}

.vendor-section, .upload-section {
    margin-bottom: 30px;
}

.vendor-section label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2c3e50;
    font-size: 1.1rem;
}

.vendor-section select {
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    width: 100%;
    max-width: 300px;
    background: white;
    cursor: pointer;
    transition: border-color 0.3s ease;
}

.vendor-section select:focus {
    border-color: #3498db;
    outline: none;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.drop-zone {
    border: 3px dashed #bdc3c7;
    border-radius: 12px;
    padding: 50px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #fafafa;
    position: relative;
}

.drop-zone:hover {
    border-color: #3498db;
    background: #f0f8ff;
    transform: translateY(-2px);
}

.drop-zone.active {
    border-color: #3498db;
    background: #e6f3ff;
    transform: scale(1.02);
}

.drop-zone p {
    margin: 5px 0;
    color: #34495e;
    font-size: 1.2rem;
    font-weight: 500;
}

.drop-zone .small {
    font-size: 14px;
    color: #7f8c8d;
}

.progress-section {
    margin: 30px 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
    display: none;
}

.progress-bar {
    width: 100%;
    height: 20px;
    background: #e9ecef;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #27ae60, #2ecc71);
    transition: width 0.5s ease;
    width: 0%;
    border-radius: 10px;
}

.progress-text {
    text-align: center;
    font-weight: 600;
    color: #2c3e50;
    font-size: 1rem;
}

.results-section {
    margin-top: 30px;
    display: none;
}

.results-section h3 {
    margin-bottom: 20px;
    color: #2c3e50;
    font-size: 1.5rem;
    border-bottom: 2px solid #3498db;
    padding-bottom: 10px;
}

.results-table-container {
    overflow-x: auto;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.results-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

.results-table th,
.results-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}

.results-table th {
    background: linear-gradient(135deg, #34495e, #2c3e50);
    color: white;
    font-weight: 600;
    position: sticky;
    top: 0;
}

.results-table tr:hover {
    background: #f8f9fa;
}

.results-table tr:nth-child(even) {
    background: #fafafa;
}

.results-table tr:nth-child(even):hover {
    background: #f0f0f0;
}

.action-buttons {
    margin-top: 25px;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.action-buttons button {
    padding: 14px 28px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 1;
    min-width: 150px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

#upload-square {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    color: white;
    box-shadow: 0 4px 15px rgba(39, 174, 96, 0.3);
}

#upload-square:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(39, 174, 96, 0.4);
}

#print-labels {
    background: linear-gradient(135deg, #e67e22, #d35400);
    color: white;
    box-shadow: 0 4px 15px rgba(230, 126, 34, 0.3);
}

#print-labels:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(230, 126, 34, 0.4);
}

#export-csv {
    background: linear-gradient(135deg, #95a5a6, #7f8c8d);
    color: white;
    box-shadow: 0 4px 15px rgba(149, 165, 166, 0.3);
}

#export-csv:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(149, 165, 166, 0.4);
}

.action-buttons button:disabled {
    background: #bdc3c7;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }
    
    .app-container {
        padding: 20px;
    }
    
    header h1 {
        font-size: 2rem;
    }
    
    .management-header {
        flex-direction: column;
    }
    
    .vendor-section select {
        max-width: 100%;
    }
    
    .drop-zone {
        padding: 30px 20px;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .action-buttons button {
        min-width: 100%;
    }
    
    .results-table th,
    .results-table td {
        padding: 10px 8px;
        font-size: 14px;
    }
}