* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    margin: 0;
    padding-top: 60px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    flex: 1;
    padding: 20px;
}

header {
    text-align: center;
    color: white;
    margin-bottom: 40px;
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

header p {
    font-size: 1.2rem;
    opacity: 0.9;
}

.upload-section {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    margin-bottom: 40px;
}

.form-group {
    margin-bottom: 30px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: #333;
}

.url-input-group {
    display: flex;
    align-items: center;
    background: #f5f5f5;
    border-radius: 10px;
    padding: 5px 15px;
    border: 2px solid #e0e0e0;
    transition: border-color 0.3s;
}

.url-input-group:focus-within {
    border-color: #667eea;
}

.url-prefix, .url-suffix {
    color: #666;
    font-family: 'Courier New', monospace;
}

#urlPath {
    flex: 1;
    border: none;
    background: transparent;
    padding: 10px;
    font-size: 16px;
    font-family: 'Courier New', monospace;
}

#urlPath:focus {
    outline: none;
}

.status-message {
    margin-top: 5px;
    font-size: 14px;
    min-height: 20px;
}

.status-message.available {
    color: #4caf50;
}

.status-message.unavailable {
    color: #f44336;
}

.upload-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

.upload-option input[type="radio"] {
    display: none;
}

.option-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s;
}

.upload-option input[type="radio"]:checked + label .option-card {
    border-color: #667eea;
    background: #f8f9ff;
}

.option-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.option-card .icon {
    font-size: 2rem;
    margin-bottom: 10px;
}

.option-card .option-title {
    font-weight: 600;
    margin-bottom: 5px;
}

.option-card .option-desc {
    font-size: 14px;
    color: #666;
    text-align: center;
}

.file-label {
    display: block;
    padding: 40px;
    border: 2px dashed #ccc;
    border-radius: 10px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    background: #fafafa;
}

.file-label:hover {
    border-color: #667eea;
    background: #f8f9ff;
}

.file-label.dragover {
    border-color: #667eea;
    background: #f8f9ff;
}

.file-label input[type="file"] {
    display: none;
}

.file-label-text {
    color: #666;
    font-size: 16px;
}

.file-list {
    margin-top: 20px;
}

.file-item {
    display: flex;
    align-items: center;
    padding: 10px;
    background: #f5f5f5;
    border-radius: 5px;
    margin-bottom: 5px;
}

.file-item .file-name {
    flex: 1;
    font-size: 14px;
}

.file-item .file-size {
    color: #666;
    font-size: 12px;
}

.upload-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
}

.upload-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
}

.upload-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.upload-btn.loading .btn-text {
    opacity: 0;
}

.upload-btn.loading .spinner {
    display: block;
}

.spinner {
    display: none;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

.success-message, .error-message {
    padding: 20px;
    border-radius: 10px;
    margin-top: 20px;
}

.success-message {
    background: #e8f5e9;
    color: #2e7d32;
}

.success-message h3 {
    margin-bottom: 10px;
}

.success-message a {
    color: #1976d2;
    font-size: 18px;
    word-break: break-all;
}

.error-message {
    background: #ffebee;
    color: #c62828;
}

.sites-section {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.sites-section h2 {
    margin-bottom: 20px;
    color: #333;
}

.sites-list {
    display: grid;
    gap: 15px;
}

.site-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: #f5f5f5;
    border-radius: 10px;
    transition: all 0.3s;
}

.site-item:hover {
    background: #e8e8e8;
    transform: translateX(5px);
}

.site-item a {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    font-family: 'Courier New', monospace;
}

.site-item .site-date {
    color: #666;
    font-size: 14px;
}

.loading {
    text-align: center;
    color: #666;
    padding: 20px;
}

/* Navbar Styles */
.navbar {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 60px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: bold;
    font-size: 1.2rem;
}

.nav-logo {
    font-size: 1.5rem;
}

.nav-menu {
    display: flex;
    gap: 30px;
}

.nav-link {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.3s ease;
    padding: 8px 16px;
    border-radius: 6px;
}

.nav-link:hover {
    background: rgba(255,255,255,0.1);
    opacity: 0.9;
}

/* Footer Styles */
.footer {
    background: #2c3e50;
    color: #ecf0f1;
    margin-top: 60px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 30px;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 15px;
    color: #3498db;
}

.footer-section h3 {
    font-size: 1.3rem;
}

.footer-section h4 {
    font-size: 1.1rem;
}

.footer-section p {
    line-height: 1.6;
    color: #bdc3c7;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 8px;
}

.footer-section ul li a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #3498db;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #34495e;
    color: #95a5a6;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-container {
        padding: 0 15px;
    }
    
    .nav-menu {
        gap: 15px;
    }
    
    .nav-link {
        padding: 6px 12px;
        font-size: 0.9rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 25px;
        text-align: center;
    }
    
    .container {
        padding: 20px 15px;
    }
}

@media (max-width: 480px) {
    .nav-brand {
        font-size: 1rem;
    }
    
    .nav-menu {
        gap: 10px;
    }
    
    .nav-link {
        padding: 4px 8px;
        font-size: 0.8rem;
    }
}