* {
    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, #1a1a1a 0%, #2d2d2d 100%);
    min-height: 100vh;
    min-height: 100dvh;
    color: #e0e0e0;
    padding: 20px;
}

.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
}

.card {
    background: rgba(40, 40, 40, 0.9);
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4),
                0 0 0 1px rgba(162, 201, 21, 0.3);
    backdrop-filter: blur(10px);
    animation: slideIn 0.4s ease-out;
}

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

.title {
    font-size: 28px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 32px;
    background: linear-gradient(135deg, #A2C915 0%, #7ea311 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Upload Section */
.upload-section {
    display: flex;
    justify-content: center;
    padding: 40px 0;
}

.upload-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 80px;
    border: 3px dashed rgba(162, 201, 21, 0.3);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: rgba(20, 20, 35, 0.3);
}

.upload-label:hover {
    border-color: #A2C915;
    background: rgba(20, 20, 35, 0.5);
}

.upload-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.upload-text {
    font-size: 18px;
    color: #b0b0c0;
}

/* Items Section */
.items-section {
    animation: fadeIn 0.4s ease-out;
}

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

.controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    gap: 16px;
}

.item-count {
    font-size: 14px;
    color: #b0b0c0;
}

.secondary-btn {
    padding: 10px 20px;
    background: rgba(162, 201, 21, 0.2);
    color: #A2C915;
    border: 2px solid #A2C915;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.secondary-btn:hover {
    background: rgba(162, 201, 21, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(162, 201, 21, 0.2);
}

.secondary-btn:active {
    transform: translateY(0);
}

/* Table */
.table-container {
    overflow-x: auto;
    border-radius: 8px;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(20, 20, 35, 0.4);
}

thead {
    background: rgba(162, 201, 21, 0.1);
    position: sticky;
    top: 0;
    z-index: 10;
}

th {
    padding: 12px;
    text-align: left;
    font-weight: 600;
    color: #A2C915;
    border-bottom: 2px solid rgba(162, 201, 21, 0.3);
}

.th-content {
    margin-bottom: 8px;
}

.filter-input {
    width: 100%;
    padding: 6px 8px;
    background: rgba(20, 20, 35, 0.6);
    border: 1px solid rgba(162, 201, 21, 0.3);
    border-radius: 4px;
    color: #e0e0e0;
    font-size: 12px;
    outline: none;
    transition: all 0.3s ease;
}

.filter-input:focus {
    border-color: #A2C915;
    background: rgba(20, 20, 35, 0.8);
}

.filter-input::placeholder {
    color: #606070;
}

.filter-select {
    width: 100%;
    padding: 6px 8px;
    background: rgba(20, 20, 35, 0.6);
    border: 1px solid rgba(162, 201, 21, 0.3);
    border-radius: 4px;
    color: #e0e0e0;
    font-size: 12px;
    outline: none;
    transition: all 0.3s ease;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23A2C915' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 8px center;
    padding-right: 28px;
}

.filter-select:focus {
    border-color: #A2C915;
    background-color: rgba(20, 20, 35, 0.8);
}

.filter-select option {
    background: #1a1a2e;
    color: #e0e0e0;
}

tbody tr {
    border-bottom: 1px solid rgba(162, 201, 21, 0.1);
    transition: background 0.2s ease;
}

tbody tr:hover {
    background: rgba(162, 201, 21, 0.05);
}

td {
    padding: 12px;
    color: #e0e0e0;
    font-size: 14px;
}

.action-btn {
    padding: 8px 16px;
    background: linear-gradient(135deg, #A2C915 0%, #7ea311 100%);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(162, 201, 21, 0.4);
}

.action-btn:active {
    transform: translateY(0);
}

.action-btn.error {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
}

.action-btn.error:hover {
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.4);
}

/* Responsive */
@media (max-width: 1200px) {
    .card {
        padding: 24px;
    }

    table {
        font-size: 13px;
    }

    th, td {
        padding: 8px;
    }
}

@media (max-width: 768px) {
    .upload-label {
        padding: 40px 60px;
    }

    .upload-icon {
        font-size: 36px;
    }

    .upload-text {
        font-size: 16px;
    }

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