* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Navigation */
.navbar {
    background: rgba(0, 0, 0, 0.3);
    padding: 18px 0;
    backdrop-filter: blur(15px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    color: white;
    font-size: 1.6em;
    font-weight: 700;
    text-decoration: none;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s;
}

.nav-logo:hover {
    transform: scale(1.05);
}

.nav-links {
    display: flex;
    gap: 10px;
}

.nav-links a {
    color: white;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 8px;
    transition: all 0.3s;
    font-weight: 500;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 80%;
    height: 2px;
    background: white;
    transition: transform 0.3s;
}

.nav-links a:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

.nav-links a:hover::after {
    transform: translateX(-50%) scaleX(1);
}

/* Flash messages */
.flash-messages {
    max-width: 1400px;
    margin: 20px auto;
    padding: 0 20px;
}

.flash-message {
    padding: 15px 20px;
    border-radius: 5px;
    margin-bottom: 10px;
    animation: slideIn 0.3s ease;
}

.flash-success {
    background: #4caf50;
    color: white;
}

.flash-error {
    background: #f44336;
    color: white;
}

.flash-warning {
    background: #ff9800;
    color: white;
}

@keyframes slideIn {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Container */
.container {
    flex: 1;
    max-width: 1400px;
    margin: 20px auto;
    padding: 0 20px;
    width: 100%;
}

/* Header */
.header {
    background-image: url('../assets/hq720.jpg');
    background-size: 100% auto;
    background-position: center top;
    background-repeat: no-repeat;
    color: white;
    padding: 50px 40px;
    text-align: center;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
    min-height: 500px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.3) 0%, rgba(118, 75, 162, 0.3) 100%);
    z-index: 0;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.5;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

.header h1 {
    font-size: 2.8em;
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8), 0 0 20px rgba(0, 0, 0, 0.5);
}

.header p {
    font-size: 1.2em;
    opacity: 1;
    margin: 8px 0;
    position: relative;
    z-index: 1;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8), 0 0 15px rgba(0, 0, 0, 0.5);
}

/* Buttons */
.download-button {
    display: inline-block;
    padding: 14px 32px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-size: 1em;
    font-weight: 600;
    border: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
    cursor: pointer;
    width: 100%;
    max-width: 280px;
    text-align: center;
}

.download-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.6);
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

.download-button:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.action-button {
    display: inline-block;
    padding: 14px 32px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-size: 1em;
    font-weight: 600;
    border: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
    cursor: pointer;
    width: 100%;
    max-width: 280px;
    text-align: center;
}

.action-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

.action-button:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

/* Main content */
.main-content {
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    padding: 50px;
    margin-bottom: 20px;
}

.actions-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.action-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9ff 100%);
    padding: 35px;
    border-radius: 15px;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid rgba(102, 126, 234, 0.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.action-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.action-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
    border-color: rgba(102, 126, 234, 0.3);
}

.action-card:hover::before {
    transform: scaleX(1);
}

.action-card h3 {
    color: #667eea;
    margin-bottom: 15px;
    font-size: 1.4em;
    font-weight: 700;
}

.action-card p {
    color: #666;
    margin-bottom: auto;
    line-height: 1.6;
    flex-grow: 1;
    min-height: 48px;
}

.action-card .download-button,
.action-card .action-button {
    margin-top: 25px;
    align-self: center;
}

/* Download page */
.download-section {
    margin-bottom: 40px;
}

.download-section h2 {
    color: #667eea;
    margin-bottom: 30px;
    font-size: 2em;
    font-weight: 700;
}

.download-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.download-item {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9ff 100%);
    padding: 35px;
    border-radius: 15px;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid rgba(102, 126, 234, 0.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.download-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
    border-color: rgba(102, 126, 234, 0.3);
}

.download-item h3 {
    color: #667eea;
    margin-bottom: 15px;
    font-size: 1.4em;
    font-weight: 700;
}

.download-item p {
    color: #666;
    margin-bottom: 25px;
    line-height: 1.6;
}

/* Upload section */
.upload-section {
    background: white;
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    padding: 40px;
    margin-bottom: 20px;
}

.upload-info {
    margin-bottom: 40px;
}

.upload-info h2 {
    color: #667eea;
    margin-bottom: 15px;
}

.upload-info ul {
    margin-left: 20px;
    color: #666;
    line-height: 1.8;
}

.upload-form-container {
    max-width: 600px;
    margin: 0 auto;
}

.upload-form-container h2 {
    color: #667eea;
    margin-bottom: 25px;
    text-align: center;
}

.current-skin-section {
    background: #f8f9ff;
    padding: 30px;
    border-radius: 15px;
    margin-bottom: 30px;
    text-align: center;
}

.current-skin-section h2 {
    color: #667eea;
    margin-bottom: 20px;
}

.skin-preview {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.skin-preview img {
    max-width: 200px;
    max-height: 200px;
    border: 3px solid #667eea;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    image-rendering: pixelated;
    image-rendering: -moz-crisp-edges;
    image-rendering: crisp-edges;
}

.register-section {
    margin-top: 20px;
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

.register-section a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
}

.register-section a:hover {
    text-decoration: underline;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: white;
    margin: 10% auto;
    padding: 40px;
    border-radius: 15px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    position: relative;
}

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

.close:hover,
.close:focus {
    color: #667eea;
}

.modal-content h2 {
    color: #667eea;
    margin-bottom: 25px;
}

#registerMessage {
    margin-top: 15px;
}

.upload-form {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 8px;
    color: #333;
    font-weight: 600;
}

.form-group input {
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.form-group input:focus {
    outline: none;
    border-color: #667eea;
}

.form-group small {
    margin-top: 5px;
    color: #999;
    font-size: 0.9em;
}

input[type="file"] {
    width: 100%;
    padding: 12px;
    border: 2px dashed #e0e0e0;
    border-radius: 8px;
    background: #f9f9f9;
    cursor: pointer;
    transition: all 0.3s;
}

input[type="file"]:hover {
    border-color: #667eea;
    background: #f0f0ff;
}

.file-info {
    margin-top: 8px;
    font-size: 12px;
    color: #888;
}

.loading {
    display: none;
    text-align: center;
    margin-top: 10px;
    color: #667eea;
}

.loading.show {
    display: block;
}

.skin-cape-section {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 2px solid #e0e0e0;
}

.skin-cape-section:first-of-type {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

.skin-cape-section h3 {
    color: #667eea;
    margin-bottom: 20px;
    font-size: 1.3em;
    font-weight: 700;
}

.submit-button {
    margin-top: 10px;
    width: 100%;
    max-width: 100%;
    padding: 15px 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
}

.submit-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.submit-button:active {
    transform: translateY(0);
}

.submit-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.form-group select {
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    background: white;
    transition: border-color 0.3s;
    cursor: pointer;
}

.form-group select:focus {
    outline: none;
    border-color: #667eea;
}

.submit-button {
    padding: 15px 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 30px;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
}

.submit-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.submit-button:active {
    transform: translateY(0);
}

/* Mods page */
.controls {
    padding: 20px;
    background: #f5f5f5;
    border-bottom: 2px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    border-radius: 10px 10px 0 0;
}

.search-box {
    flex: 1;
    min-width: 250px;
    position: relative;
}

.search-box input {
    width: 100%;
    padding: 12px 40px 12px 15px;
    border: 2px solid #ddd;
    border-radius: 25px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.search-box input:focus {
    outline: none;
    border-color: #667eea;
}

.search-box::after {
    content: "🔍";
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
}

.stats {
    display: flex;
    gap: 20px;
    align-items: center;
}

.stat-item {
    background: white;
    padding: 10px 20px;
    border-radius: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.stat-item strong {
    color: #667eea;
    font-size: 1.2em;
}

.table-wrapper {
    overflow-x: auto;
    max-height: 70vh;
    overflow-y: auto;
    background: white;
    border-radius: 0 0 10px 10px;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

thead {
    position: sticky;
    top: 0;
    z-index: 10;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

th {
    padding: 15px;
    text-align: left;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 1px;
    border-bottom: 3px solid rgba(255, 255, 255, 0.3);
}

th:first-child {
    width: 5%;
    text-align: center;
}

th:nth-child(2) {
    width: 40%;
}

th:nth-child(3) {
    width: 55%;
}

tbody tr {
    border-bottom: 1px solid #e0e0e0;
    transition: background-color 0.2s;
}

tbody tr:hover {
    background-color: #f8f9ff;
}

tbody tr.hidden {
    display: none;
}

td {
    padding: 12px 15px;
    vertical-align: top;
}

td:first-child {
    text-align: center;
    color: #999;
    font-weight: bold;
}

td:nth-child(2) {
    font-family: 'Courier New', monospace;
    font-size: 13px;
    color: #333;
    word-break: break-all;
}

td:nth-child(3) {
    color: #666;
    line-height: 1.5;
}

.footer {
    padding: 20px;
    background: #f5f5f5;
    text-align: center;
    color: #666;
    border-top: 2px solid #e0e0e0;
    border-radius: 0 0 10px 10px;
}

.site-footer {
    background: rgba(0, 0, 0, 0.2);
    color: white;
    padding: 20px;
    text-align: center;
    margin-top: auto;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
}

/* Scrollbar */
.table-wrapper::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

.table-wrapper::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.table-wrapper::-webkit-scrollbar-thumb {
    background: #667eea;
    border-radius: 5px;
}

.table-wrapper::-webkit-scrollbar-thumb:hover {
    background: #764ba2;
}

/* Form styles */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
}

.form-group label {
    color: #333;
    font-weight: 600;
    font-size: 14px;
}

.form-group input,
.form-group select {
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #667eea;
}

.form-group small {
    color: #666;
    font-size: 12px;
    margin-top: 4px;
}


/* Messages */
.message {
    padding: 15px 20px;
    border-radius: 10px;
    margin: 20px auto;
    max-width: 600px;
    text-align: center;
    display: none;
    font-weight: 500;
}

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

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

.message.show {
    display: block;
    animation: slideIn 0.3s ease;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 15px;
    }

    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
    }

    .header h1 {
        font-size: 1.8em;
    }

    .controls {
        flex-direction: column;
    }

    .search-box {
        width: 100%;
    }

    .actions-section {
        grid-template-columns: 1fr;
    }

    table {
        font-size: 12px;
    }

    th,
    td {
        padding: 8px;
    }

    .upload-form-container {
        padding: 0 10px;
    }

    .form-group input,
    .form-group select {
        font-size: 14px;
    }
}

