:root {
    --primary-color: #2C3038;
    --secondary-color: #343a40;
    --accent-color: #009B72;
    --success-color: #009B72;
    --warning-color: #FF715B;
    --danger-color: #dc3545;
    --info-color: #17a2b8;
    --dark-color: #2C3038;
    --light-color: #FFFFFF;
    --muted-color: #6c757d;
    --border-radius: 8px;
    --box-shadow: 0 2px 10px rgba(44, 48, 56, 0.1);
    --box-shadow-lg: 0 4px 20px rgba(44, 48, 56, 0.15);
}

body {
    background: url('/assets/bgblur.webp') center/cover no-repeat fixed, 
                linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    min-height: 100vh;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--dark-color);
    padding-top: 2rem;
    padding-bottom: 2rem;
}

.language-selector {
    position: absolute;
    top: 0;
    right: 0;
    display: flex;
    gap: 12px;
}

.lang-flag {
    text-decoration: none;
    opacity: 0.7;
    transition: all 0.3s ease;
    padding: 8px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.lang-flag img {
    width: 24px;
    height: 24px;
    border-radius: 4px;
    transition: transform 0.3s ease;
}

.lang-flag:hover {
    opacity: 1;
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.lang-flag:hover img {
    transform: scale(1.1);
}

.lang-flag.active {
    opacity: 1;
    background: rgba(0, 155, 114, 0.2);
    box-shadow: 0 0 15px rgba(0, 155, 114, 0.3);
}

.lang-flag.active img {
    box-shadow: 0 0 8px rgba(0, 155, 114, 0.4);
}

.simple-footer {
    margin-top: 40px;
    text-align: center;
    padding: 0;
}

.simple-footer small {
    color: white;
    font-size: 0.875rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    margin: 0;
}

.simple-footer a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.simple-footer a:hover {
    color: var(--accent-color);
    text-shadow: 0 0 8px rgba(0, 155, 114, 0.3);
}

.container {
    position: relative;
    z-index: 1;
}

.card {
    border: none;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow-lg);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

#upload-form:hover,
#success-result:hover {
    transform: none;
    box-shadow: var(--box-shadow-lg);
}

.card:hover:not(#upload-form):not(#success-result) {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

.card-header {
    border-bottom: none;
    font-weight: 600;
    border-radius: var(--border-radius) var(--border-radius) 0 0 !important;
}

.card-header.bg-primary {
    background: var(--accent-color) !important;
    color: white;
}

.card-header.bg-success {
    background: linear-gradient(135deg, var(--success-color), #00b383) !important;
    color: white;
}

.card-header.bg-info {
    background: var(--accent-color) !important;
    color: white;
}

.card-header.bg-warning {
    background: linear-gradient(135deg, var(--warning-color), #ff8570) !important;
    color: white;
}

.display-4 {
    font-weight: 700;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
    color: white;
}

.display-4 .text-primary {
    color: var(--accent-color) !important;
}

.display-4 small {
    font-weight: 400;
    opacity: 0.8;
}

.drag-over {
    border: 2px dashed var(--accent-color) !important;
    background-color: rgba(0, 155, 114, 0.05) !important;
    transform: scale(1.02);
}

#upload-form {
    transition: all 0.3s ease;
}

.form-control {
    border-radius: var(--border-radius);
    border: 2px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.95);
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.form-control:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(0, 155, 114, 0.2);
    background: rgba(255, 255, 255, 1);
}

.btn {
    border-radius: var(--border-radius);
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-color), #00b383);
    box-shadow: 0 4px 15px rgba(0, 155, 114, 0.3);
}

.btn-primary:hover:not(:disabled) {
    background: linear-gradient(135deg, #00b383, var(--accent-color));
    box-shadow: 0 6px 25px rgba(0, 155, 114, 0.4);
}

.btn-secondary {
    background: linear-gradient(135deg, var(--muted-color), #5a6268);
    color: white;
    box-shadow: 0 4px 15px rgba(108, 117, 125, 0.3);
}

.btn-success {
    background: linear-gradient(135deg, var(--success-color), #00b383);
}

.btn-outline-secondary {
    border: 2px solid var(--muted-color);
    color: var(--muted-color);
}

.btn-outline-secondary:hover {
    background: var(--muted-color);
    border-color: var(--muted-color);
}

.btn-outline-warning {
    border: 2px solid #f39c12;
    color: #f39c12;
    background: rgba(243, 156, 18, 0.1);
}

.btn-outline-warning:hover:not(:disabled) {
    background: #f39c12;
    border-color: #f39c12;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(243, 156, 18, 0.4);
}

.btn-outline-warning:disabled,
.btn-outline-warning.btn-disabled-state {
    opacity: 0.5;
    transform: none;
    cursor: not-allowed;
    background: rgba(243, 156, 18, 0.05);
    border-color: #d68910;
    color: #d68910;
}

.btn-lg {
    padding: 0.75rem 1.5rem;
    font-size: 1.125rem;
}

.btn:disabled {
    transform: none;
    cursor: not-allowed;
}

.progress {
    height: 12px;
    border-radius: var(--border-radius);
    overflow: hidden;
    background: rgba(255, 255, 255, 0.2);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.progress-bar {
    transition: width 0.4s ease;
    font-weight: 600;
    font-size: 0.75rem;
    background: linear-gradient(135deg, var(--accent-color), #00b383);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

#server-config {
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 0.875rem;
    background: rgba(44, 48, 56, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.3);
    resize: vertical;
    min-height: 120px;
    line-height: 1.6;
}

#download-url {
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 0.875rem;
    background: rgba(44, 48, 56, 0.05);
}

.lead {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 400;
}

.alert {
    border: none;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    backdrop-filter: blur(10px);
}

.alert-danger {
    background: linear-gradient(135deg, rgba(255, 113, 91, 0.9), rgba(231, 76, 60, 0.9));
    color: white;
    border-left: 4px solid var(--warning-color);
}

.alert-success {
    background: linear-gradient(135deg, rgba(0, 155, 114, 0.9), rgba(0, 179, 131, 0.9));
    color: white;
    border-left: 4px solid var(--success-color);
}

.alert-info {
    background: linear-gradient(135deg, rgba(23, 162, 184, 0.9), rgba(0, 155, 114, 0.9));
    color: white;
    border-left: 4px solid var(--info-color);
}

.list-unstyled li {
    margin-bottom: 0.75rem;
    padding: 0.25rem 0;
}

.list-unstyled i.fas {
    width: 20px;
    text-align: center;
}

input[type="file"] {
    padding: 1rem;
    background: rgba(255, 255, 255, 0.95);
    border: 2px dashed var(--muted-color);
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
    cursor: pointer;
    backdrop-filter: blur(5px);
}

input[type="file"]:hover {
    border-color: var(--accent-color);
    background: rgba(255, 255, 255, 1);
    transform: translateY(-2px);
}

input[type="file"]:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(0, 155, 114, 0.2);
}

.fas, .far, .fab {
    transition: transform 0.2s ease;
}

.btn:hover .fas,
.btn:hover .far,
.btn:hover .fab {
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .display-4 {
        font-size: 2rem;
    }
    
    .card {
        margin-bottom: 1rem;
    }
    
    .btn-lg {
        padding: 0.5rem 1rem;
        font-size: 1rem;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    .language-selector {
        position: static;
        justify-content: center;
        margin-bottom: 1rem;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card {
    animation: fadeInUp 0.6s ease-out;
}

.card.h-100:hover {
    transform: translateY(-5px);
}

.btn:focus,
.form-control:focus {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

.tooltip {
    font-size: 0.875rem;
}

.fa-spinner {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.form-control[readonly] {
    background-color: #f8f9fa;
    opacity: 1;
}

.input-group .btn {
    z-index: 2;
}

.input-group .form-control:focus {
    z-index: 3;
}

.badge {
    font-size: 0.75em;
    font-weight: 600;
}

#upload-form,
#success-result,
#error-alert {
    transition: opacity 0.3s ease;
}

.cf-turnstile {
    margin: 1rem 0;
    display: flex;
    justify-content: center;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.minecraft-rocket {
    position: fixed;
    width: 3px;
    height: 12px;
    border-radius: 1px 1px 0 0;
    z-index: 9999;
    pointer-events: none;
    filter: brightness(1.2);
}

.minecraft-trail-spark {
    position: fixed;
    width: 2px;
    height: 2px;
    z-index: 9998;
    pointer-events: none;
}

.minecraft-explosion-spark {
    position: fixed;
    width: 3px;
    height: 3px;
    z-index: 9999;
    pointer-events: none;
    image-rendering: pixelated;
    border-radius: 0;
}

.minecraft-twinkle {
    position: fixed;
    width: 4px;
    height: 4px;
    z-index: 10000;
    pointer-events: none;
    clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}

.minecraft-error-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0 0 var(--border-radius) var(--border-radius);
}

.minecraft-error-card {
    background: linear-gradient(135deg, #dc3545, #c82333);
    border-radius: 12px;
    padding: 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    max-width: 90%;
    width: 350px;
    overflow: hidden;
    transform: translateY(0);
}

.minecraft-error-header {
    background: rgba(0, 0, 0, 0.2);
    padding: 15px 20px;
    display: flex;
    align-items: center;
    color: white;
    font-weight: 600;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.minecraft-error-header i {
    margin-right: 12px;
    font-size: 18px;
    color: #fff;
}

.minecraft-error-header span {
    font-size: 16px;
    flex: 1;
}

.minecraft-error-body {
    padding: 20px;
    color: white;
    text-align: center;
}

.minecraft-error-body p {
    margin: 0 0 15px 0;
    font-size: 14px;
    line-height: 1.5;
}

.minecraft-error-dismiss {
    border: 2px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.1);
    color: white;
    transition: all 0.3s ease;
}

.minecraft-error-dismiss:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    color: white;
    transform: translateY(-1px);
}