:root {
    --primary-gradient: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    --secondary-gradient: linear-gradient(135deg, #f6d365 0%, #fda085 100%);
    --card-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

body {
    /*background: #f8f9fa;*/
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    min-height: 100vh;
    /*padding: 20px 0;*/
    /*background: linear-gradient(45deg, #e3f2fd, #f3e5f5);*/
}

.header {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px;
    border-radius: 15px;
    background: var(--primary-gradient);
    color: white;
    box-shadow: var(--card-shadow);
    position: relative;
    overflow: hidden;
}

.header h1 {
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 10px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.header p {
    font-size: 1.1rem;
    opacity: 0.9;
    max-width: 700px;
    margin: 0 auto;
}

.card {
    border-radius: 15px;
    box-shadow: var(--card-shadow);
    border: none;
    overflow: hidden;
    margin-bottom: 25px;
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
}

.card-header {
    background: var(--primary-gradient);
    color: white;
    padding: 15px 25px;
    font-weight: 600;
    font-size: 1.2rem;
}

.result-card {
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    padding: 20px;
    max-height: 350px;
    overflow-y: auto;
    background: #fff;
}

.result-item {
    background-color: #e3f2fd;
    border-radius: 8px;
    padding: 10px 15px;
    margin-bottom: 10px;
    transition: all 0.3s ease;
    border-left: 4px solid #4b6cb7;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.result-item:hover {
    background-color: #bbdefb;
    transform: translateX(5px);
}

.result-item .index {
    background: #4b6cb7;
    color: white;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.result-item .content {
    flex-grow: 1;
    margin: 0 15px;
    word-break: break-word;
}

.result-item .length {
    background: rgba(75, 108, 183, 0.2);
    color: #4b6cb7;
    border-radius: 20px;
    padding: 3px 12px;
    font-size: 0.85rem;
    font-weight: 500;
    flex-shrink: 0;
}

.badge-custom {
    background: var(--primary-gradient);
    font-weight: 500;
    padding: 8px 15px;
    border-radius: 30px;
    font-size: 1rem;
}

.btn-custom {
    background: var(--primary-gradient);
    color: white;
    border: none;
    transition: all 0.3s ease;
    padding: 10px 20px;
    font-weight: 500;
    border-radius: 50px;
    box-shadow: 0 4px 10px rgba(37, 117, 252, 0.3);
}

.btn-custom:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(37, 117, 252, 0.4);
}

.btn-outline-custom {
    border: 2px solid #4b6cb7;
    color: #4b6cb7;
    font-weight: 500;
    padding: 8px 15px;
    border-radius: 50px;
    transition: all 0.3s;
}

.btn-outline-custom:hover, .btn-outline-custom.active {
    background: var(--primary-gradient);
    color: white;
    border-color: transparent;
}

.custom-separator {
    border-top: 2px dashed #4b6cb7;
    margin: 25px 0;
    position: relative;
}

.custom-separator:after {
    content: "◆";
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    color: #4b6cb7;
    padding: 0 10px;
    font-size: 1.2rem;
}

.stat-card {
    background: white;
    border-radius: 10px;
    padding: 15px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.stat-card .value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #4b6cb7;
}

.highlight {
    background-color: #fff9c4;
    padding: 3px 8px;
    border-radius: 4px;
    font-weight: 600;
    color: #4b6cb7;
}

.footer {
    text-align: center;
    padding: 20px;
    color: #6c757d;
    font-size: 0.95rem;
    margin-top: 20px;
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    color: white;
    font-size: 1.5rem;
}

.feature-card {
    text-align: center;
    padding: 25px 15px;
    border-radius: 15px;
    background: white;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 20px rgba(0,0,0,0.1);
}

.feature-card h5 {
    font-weight: 600;
    margin: 10px 0;
    color: #4b6cb7;
}

.pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(37, 117, 252, 0.7); }
    70% { box-shadow: 0 0 0 12px rgba(37, 117, 252, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 117, 252, 0); }
}

@media (max-width: 768px) {
    .header h1 {
        font-size: 1.8rem;
    }

    .btn-custom {
        width: 100%;
        margin-bottom: 10px;
    }
}