* {
    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, #bdbdbd 0%, #9e9e9e 50%, #757575 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.container {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    padding: 40px;
    max-width: 800px;
    width: 100%;
}

h1 {
    color: #333;
    margin-bottom: 10px;
    text-align: center;
    font-size: 2.5em;
}

.subtitle {
    color: #666;
    text-align: center;
    margin-bottom: 30px;
    font-size: 1.1em;
}

.upload-area {
    border: 3px dashed #667eea;
    border-radius: 15px;
    padding: 40px;
    text-align: center;
    background: #f8f9ff;
    transition: all 0.3s ease;
    cursor: pointer;
    margin-bottom: 20px;
}

.upload-area:hover {
    border-color: #764ba2;
    background: #f0f2ff;
}

.upload-area.dragover {
    border-color: #764ba2;
    background: #e8ebff;
    transform: scale(1.02);
}

.upload-icon {
    font-size: 3em;
    margin-bottom: 15px;
}

.upload-text {
    color: #667eea;
    font-size: 1.2em;
    font-weight: 600;
    margin-bottom: 10px;
}

.upload-hint {
    color: #999;
    font-size: 0.9em;
}

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

.expire-section {
    margin-top: 20px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.expire-label {
    color: #333;
    font-size: 0.95em;
    font-weight: 500;
}

.expire-select {
    flex: 1;
    padding: 10px 15px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1em;
    background: white;
    color: #333;
    cursor: pointer;
    transition: border-color 0.2s ease;
}

.expire-select:hover {
    border-color: #9e9e9e;
}

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

.file-list {
    margin-top: 20px;
    max-height: 200px;
    overflow-y: auto;
}

.file-item {
    background: #f5f5f5;
    padding: 10px 15px;
    border-radius: 8px;
    margin-bottom: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.file-name {
    color: #333;
    font-size: 0.9em;
}

.remove-file {
    background: #ff4757;
    color: white;
    border: none;
    border-radius: 5px;
    padding: 5px 10px;
    cursor: pointer;
    font-size: 0.8em;
}

.remove-file:hover {
    background: #ff3838;
}

.upload-btn {
    width: 100%;
    background: linear-gradient(135deg, #9e9e9e 0%, #757575 50%, #616161 100%);
    color: white;
    border: none;
    padding: 15px;
    border-radius: 10px;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    margin-top: 20px;
}

.upload-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(97, 97, 97, 0.4);
}

.upload-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.result {
    margin-top: 20px;
    padding: 20px;
    border-radius: 10px;
    display: none;
}

.result.success {
    background: #d4edda;
    border: 2px solid #28a745;
    color: #155724;
}

.result.error {
    background: #f8d7da;
    border: 2px solid #dc3545;
    color: #721c24;
}

.result-url {
    margin-top: 15px;
    padding: 15px;
    background: white;
    border-radius: 8px;
    word-break: break-all;
}

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

.result-url a:hover {
    text-decoration: underline;
}

.copy-btn {
    background: #667eea;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 10px;
    font-size: 0.9em;
}

.copy-btn:hover {
    background: #5568d3;
}

.loading {
    display: none;
    text-align: center;
    margin-top: 20px;
}

.spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid #667eea;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

