body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    background-color: #151515;
    background-image: linear-gradient(45deg, #251515, #151525);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    color: #e0e0e0;
    padding: 20px;
    box-sizing: border-box;
}

.container {
    width: 100%;
    max-width: 500px;
    padding: 40px;
    background-color: #1e1e1e;
    border-radius: 12px;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.7);
    position: relative;
}

.container::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border-radius: 14px;
    background: linear-gradient(45deg, #f39b30, #e74c3c, #9b59b6, #3498db);
    z-index: -1;
    opacity: 0.6;
}

h1 {
    text-align: center;
    margin: 0 0 10px 0;
    font-weight: 600;
    font-size: 28px;
    color: #fff;
}

.subtitle {
    text-align: center;
    color: #aaa;
    margin: 0 0 30px 0;
    font-size: 14px;
}

.section-label {
    font-size: 14px;
    color: #aaa;
    margin-bottom: 8px;
    font-weight: 500;
}

.url-form {
    margin-bottom: 30px;
}

input[type="url"], input[type="text"] {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #333;
    background-color: #252525;
    border-radius: 8px;
    color: #e0e0e0;
    font-size: 16px;
    box-sizing: border-box;
    margin-bottom: 20px;
    transition: border-color 0.3s ease;
}

input[type="url"]:focus, input[type="text"]:focus {
    outline: none;
    border-color: #4a90e2;
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
}

input[readonly] {
    background-color: #2a2a2a;
    border-color: #444;
}

.options {
    margin-bottom: 24px;
}

.checkbox-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

input[type="checkbox"] {
    appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid #444;
    border-radius: 4px;
    background-color: #252525;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
    margin: 0;
}

input[type="checkbox"]:checked {
    background: linear-gradient(135deg, #FF8A00, #E53A8C);
    border-color: #FF8A00;
}

input[type="checkbox"]:checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 12px;
    font-weight: bold;
}

input[type="checkbox"]:hover {
    border-color: #666;
}

input[type="checkbox"]:checked:hover {
    border-color: #FF8A00;
}

label {
    font-size: 14px;
    color: #ccc;
    cursor: pointer;
    user-select: none;
}

.shorten-button {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #FF8A00, #E53A8C);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.shorten-button:hover {
    background: linear-gradient(135deg, #E67700, #D12A7A);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 138, 0, 0.3);
}

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

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

.result-container {
    background-color: #252525;
    border: 2px solid #27ae60;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    animation: slideIn 0.3s ease;
}

.url-result {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.url-result input {
    flex: 1;
    margin-bottom: 0;
}

.copy-button {
    padding: 14px 20px;
    background: linear-gradient(135deg, #27ae60, #219a52);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.copy-button:hover {
    background: linear-gradient(135deg, #219a52, #1e8449);
    transform: translateY(-1px);
}

.qr-container {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #333;
}

.qr-code {
    max-width: 200px;
    max-height: 200px;
    border: 2px solid #333;
    border-radius: 8px;
    background: white;
    padding: 10px;
}

.error-container {
    background-color: #2c1810;
    border: 2px solid #e74c3c;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 20px;
    animation: slideIn 0.3s ease;
}

.error-message {
    color: #ff6b6b;
    font-weight: 500;
}

.api-info {
    background-color: #252525;
    border-radius: 8px;
    padding: 20px;
    margin-top: 30px;
    border: 1px solid #333;
}

.api-info h3 {
    margin: 0 0 15px 0;
    color: #fff;
    font-size: 18px;
}

.api-endpoint {
    margin-bottom: 8px;
    font-size: 14px;
    color: #ccc;
}

.api-endpoint strong {
    color: #4a90e2;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive design */
@media (max-width: 600px) {
    body {
        padding: 10px;
    }
    
    .container {
        padding: 30px 20px;
    }
    
    .url-result {
        flex-direction: column;
    }
    
    .copy-button {
        margin-top: 10px;
    }
}
