.container {
    width: 100%;
    max-width: 600px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    padding: 40px;
    text-align: center;
    margin: 0 auto;
}

.header {
    margin-bottom: 30px;
}

.header h1 {
    font-size: 2.8rem;
    margin-bottom: 10px;
    background: linear-gradient(90deg, #6a11cb, #2575fc);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.header p {
    color: #555;
    font-size: 1.1rem;
}

.input-group {
    position: relative;
    margin-bottom: 30px;
    display: flex;
    gap: 10px;
}

.url-input {
    flex: 1;
    padding: 16px 25px;
    font-size: 1.1rem;
    border: 2px solid #e0e7ff;
    border-radius: 15px;
    background: #f8f9ff;
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    color: #2c3e50;
    height: 54px;
    box-sizing: border-box;
}

.url-input:focus {
    outline: none;
    border-color: #6a11cb;
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.08), 0 0 0 4px rgba(106, 17, 203, 0.1);
    background: white;
}

.submit-btn {
    background: linear-gradient(90deg, #6a11cb, #2575fc);
    color: white;
    border: none;
    padding: 0 30px;
    height: 54px;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(106, 17, 203, 0.3);
    white-space: nowrap;
    flex-shrink: 0;
    box-sizing: border-box;
}

.submit-btn:hover {
    background: linear-gradient(90deg, #2575fc, #6a11cb);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(106, 17, 203, 0.4);
}

.submit-btn:disabled {
    background: #b0b0b0;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.result-container {
    background: #f8f9ff;
    border-radius: 15px;
    padding: 25px;
    margin-top: 20px;
    text-align: center;
    display: none;
    border: 2px dashed #e0e7ff;
}

.result-container.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

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

.result-label {
    font-size: 1rem;
    color: #666;
    margin-bottom: 15px;
    font-weight: 500;
}

.short-url {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
}

.short-url a {
    font-size: 1.3rem;
    color: #2575fc;
    text-decoration: none;
    font-weight: 600;
    word-break: break-all;
    padding: 0 10px;
    transition: all 0.3s ease;
}

.short-url a:hover {
    color: #6a11cb;
    text-decoration: underline;
}

.copy-btn {
    background: linear-gradient(90deg, #6a11cb, #2575fc);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    box-shadow: 0 5px 15px rgba(106, 17, 203, 0.2);
}

.copy-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(106, 17, 203, 0.3);
}

.copy-btn i {
    margin-right: 8px;
}

.features {
    display: flex;
    justify-content: space-around;
    margin-top: 40px;
    flex-wrap: wrap;
    gap: 20px;
}

.feature {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 150px;
}

.feature-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6a11cb, #2575fc);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    color: white;
    font-size: 1.5rem;
}

.feature-text {
    font-size: 0.9rem;
    color: #555;
    text-align: center;
}

.notification {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(-100px);
    background: #4CAF50;
    color: white;
    padding: 15px 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
    transition: transform 0.4s ease;
    z-index: 1000;
}

.notification.show {
    transform: translateX(-50%) translateY(0);
}

.history {
    margin-top: 30px;
    text-align: left;
    display: none;
}

.history-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f4ff;
}

.history-title {
    font-size: 1.2rem;
    color: #2c3e50;
    font-weight: 600;
}

.clear-history {
    background: none;
    border: none;
    color: #f44336;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
}

.history-list {
    list-style: none;
    max-height: 200px;
    overflow-y: auto;
}

.history-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    border-bottom: 1px solid #f0f4ff;
    transition: all 0.3s ease;
}

.history-item:hover {
    background: #f8f9ff;
}

.history-long-url {
    flex: 1;
    color: #555;
    font-size: 0.9rem;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
    margin-right: 15px;
}

.history-short-url {
    color: #2575fc;
    font-weight: 500;
    text-decoration: none;
    font-size: 0.9rem;
}

.history-short-url:hover {
    text-decoration: underline;
}

@media (max-width: 600px) {
    .container {
        padding: 30px 20px;
    }
    
    .header h1 {
        font-size: 2.2rem;
    }
    
    .input-group {
        flex-direction: column;
        gap: 15px;
    }
    
    .url-input {
        padding: 15px 20px;
        font-size: 1rem;
    }
    
    .submit-btn {
        padding: 15px 20px;
        font-size: 1rem;
        height: auto;
        width: 100%;
    }
    
    .short-url a {
        font-size: 1.1rem;
    }
    
    .features {
        gap: 15px;
    }
    
    .feature {
        max-width: 120px;
    }
    
    .feature-icon {
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
    }
}