* {
    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%);
    min-height: 100vh;
    padding: 2rem;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 2rem;
    color: white;
    display: flex;
    justify-content: space-between;
}

.header h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.header p {
    opacity: 0.9;
    font-size: 0.95rem;
}
a{
    text-decoration: none;
    color: white;
}

.content {
    padding: 2rem;

    max-height: 70vh; /* or any height you want */
    overflow-y: auto;
    border: 1px solid #ccc; /* optional for visual boundary */
    border-radius: 8px; /* optional */
}

.table-wrapper {
    overflow-x: auto;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

thead {
    background: linear-gradient(135deg, #f5f7fa 0%, #e9ecef 100%);
}

th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    color: #2d3748;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid #667eea;
}

td {
    padding: 1rem;
    border-bottom: 1px solid #e2e8f0;
    vertical-align: middle;
}

tbody tr {
    transition: background-color 0.2s ease;
}

tbody tr:hover {
    background: #f7fafc;
}

.checkbox-wrapper {
    align-items: center;
    justify-content: center;
}

input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: #667eea;
}

.texture-name {
    font-weight: 500;
    color: #2d3748;
    font-size: 0.9rem;
    cursor: pointer;
    position: relative;
}

.texture-name:hover {
    color: #667eea;
}

.preview {
    max-width: 100px;
    max-height: 50px;
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.desc {
    color: #718096;
    font-size: 0.85rem;
    line-height: 1.4;
}

.file-input-wrapper {
    position: relative;
}

input[type="file"] {
    display: none;
}

.file-label {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(102, 126, 234, 0.3);
}

.file-label:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(102, 126, 234, 0.4);
}

.file-name {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.75rem;
    color: #718096;
}

.submit-wrapper {
    padding: 1rem;
    text-align: center;
}

button[type="submit"] {
    background-color: white;
    border: none;
    border-radius: 12px;
    padding: 1rem 3rem;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    transition: all 0.3s ease;
    display: inline-flex;           /* keeps content centered */
    align-items: center;
    justify-content: center;
    gap: .5rem;
    appearance: none;
    -webkit-appearance: none;
}

.submit-span{
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 1px;
    display: inline-block;          /* important for background-clip to text */
    background-image: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

button[type="submit"]:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
}

button[type="submit"]:active {
    transform: translateY(-1px);
}

#showMoreBtn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.status-message {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    display: none;
}

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

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

@media (max-width: 768px) {
    body {
        padding: 1rem;
    }

    .header h1 {
        font-size: 1.5rem;
    }

    th, td {
        padding: 0.75rem 0.5rem;
        font-size: 0.8rem;
    }
}

.hover-preview {
    position: fixed;
    display: none;
    pointer-events: none;
    z-index: 1000;
    background: white;
    border: 2px solid #667eea;
    border-radius: 8px;
    padding: 0.5rem;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    max-width: 300px;
}

.hover-preview img {
    max-width: 280px;
    max-height: 280px;
    display: block;
    border-radius: 4px;
}


/* WebKit browsers: Chrome, Edge, Safari */
.content::-webkit-scrollbar,
.table-wrapper::-webkit-scrollbar {
    width: 10px; /* vertical scrollbar width */
    height: 10px; /* horizontal scrollbar height */
}

.content::-webkit-scrollbar-track,
.table-wrapper::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 10px; /* fully rounded track */
}

.content::-webkit-scrollbar-thumb,
.table-wrapper::-webkit-scrollbar-thumb {
    background: rgba(102, 126, 234, 0.6);
    border-radius: 10px; /* fully rounded thumb */
}

.content::-webkit-scrollbar-thumb:hover,
.table-wrapper::-webkit-scrollbar-thumb:hover {
    background: rgba(102, 126, 234, 0.9);
}

/* Firefox */
.content {
    scrollbar-width: thin;
    scrollbar-color: rgba(102,126,234,0.6) rgba(0,0,0,0.05);
}

.table-wrapper {
    scrollbar-width: thin;
    scrollbar-color: rgba(102,126,234,0.6) rgba(0,0,0,0.05);
}
