@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

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

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
}

.container {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    max-width: 600px;
    width: 90%;
    text-align: center;
}

.header {
    margin-bottom: 30px;
}

.header h1 {
    font-size: 3rem;
    font-weight: 700;
    color: #667eea;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.subtitle {
    font-size: 1.2rem;
    color: #666;
    font-weight: 300;
}

.main-content {
    margin-bottom: 30px;
}

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

.input-group {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.options-group {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.option-btn {
    padding: 10px 20px;
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
    border: 2px solid #667eea;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.option-btn:hover {
    background: rgba(102, 126, 234, 0.2);
    transform: translateY(-1px);
}

.option-btn.active {
    background: #667eea;
    color: white;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.url-input {
    flex: 1;
    padding: 15px 20px;
    border: 2px solid #e1e5e9;
    border-radius: 12px;
    font-size: 1rem;
    outline: none;
    transition: all 0.3s ease;
}

.url-input:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.submit-btn {
    padding: 15px 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}

.message {
    padding: 20px;
    border-radius: 12px;
    margin: 20px 0;
    font-weight: 500;
}

.message.error {
    background: #fee;
    color: #c33;
    border: 1px solid #fcc;
}

.message.success {
    background: #efe;
    color: #363;
    border: 1px solid #cfc;
}

.message.info {
    background: #eef;
    color: #336;
    border: 1px solid #ccf;
}

.result-box {
    background: rgba(255, 255, 255, 0.7);
    padding: 20px;
    border-radius: 10px;
    margin-top: 15px;
    text-align: left;
}

.short-code {
    font-family: 'Courier New', monospace;
    background: #667eea;
    color: white;
    padding: 4px 8px;
    border-radius: 6px;
    font-weight: bold;
    font-size: 1.1rem;
}

.original-url {
    word-break: break-all;
    color: #667eea;
    text-decoration: none;
}

.original-url:hover {
    text-decoration: underline;
}

.expiry-note {
    color: #666;
    font-style: italic;
    margin-top: 10px;
}

.footer {
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.ip-link, .back-link {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.ip-link:hover, .back-link:hover {
    color: #764ba2;
    text-decoration: underline;
}

.ip-info {
    background: rgba(102, 126, 234, 0.1);
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 25px;
    font-weight: 500;
}

.urls-list h3 {
    margin-bottom: 20px;
    color: #333;
}

.url-item {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid #e1e5e9;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 15px;
    text-align: left;
    transition: all 0.3s ease;
}

.url-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.url-details .short-info {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.arrow {
    font-size: 1.2rem;
    color: #667eea;
}

.time-info {
    margin-top: 10px;
    color: #666;
}

.single-use-badge {
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.8em;
}

.single-use-badge.unused {
    background: #4CAF50;
    color: white;
}

.single-use-badge.used {
    background: #f44336;
    color: white;
}

@media (max-width: 768px) {
    .container {
        margin: 20px;
        padding: 30px 20px;
    }
    
    .header h1 {
        font-size: 2.5rem;
    }
    
    .input-group {
        flex-direction: column;
    }
    
    .submit-btn {
        width: 100%;
    }
    
    .options-group {
        flex-direction: column;
        gap: 8px;
    }
    
    .option-btn {
        width: 100%;
        font-size: 0.85rem;
    }
}