/* === PREMIUM MINIMALIST STYLES - LINK SHORTENER === */
.tool-container {
    padding: 0;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: #1e293b;
}

/* Premium Main Cards */
.tool-container .premium-card {
    background: #ffffff;
    border-radius: 1.5rem;
    padding: 2.5rem;
    border: 1px solid #eef2f6;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.02);
    margin-bottom: 2.5rem;
}

.tool-container .card-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.25rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 2rem;
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 1rem;
}

.tool-container .card-title svg {
    color: var(--primary-color);
}

.tool-container .url-counter {
    margin-left: auto;
    background: #f1f5f9;
    color: #475569;
    padding: 0.35rem 0.85rem;
    border-radius: 2rem;
    font-size: 0.8rem;
    font-weight: 700;
}

/* Config Row for Seconds */
.tool-container .shorten-config {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 1rem;
    border: 1px solid #eef2f6;
}

.tool-container .config-label {
    font-size: 0.9rem;
    font-weight: 700;
    color: #475569;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tool-container select#redirect-seconds {
    padding: 0.5rem 2rem 0.5rem 1rem;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: #1e293b;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    min-width: 140px;
}

/* Textarea Layout */
.tool-container textarea {
    width: 100%;
    min-height: 180px;
    padding: 1.25rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    font-size: 1rem;
    line-height: 1.6;
    color: #1e293b;
    resize: vertical;
    transition: all 0.2s ease;
    margin-bottom: 1.5rem;
}

.tool-container textarea:focus {
    background: #ffffff;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
    outline: none;
}

/* URL List Styles */
.tool-container .url-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.tool-container .url-item {
    background: #f8fafc;
    border: 1px solid #eef2f6;
    border-radius: 1rem;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    transition: all 0.2s ease;
}

.tool-container .url-item:hover {
    border-color: #cbd5e1;
    transform: translateX(4px);
    background: #ffffff;
}

.tool-container .url-original {
    font-size: 0.85rem;
    color: #64748b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #f1f5f9;
}

.tool-container .url-shortened {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-color);
    word-break: break-all;
}

.tool-container .url-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

/* Button Styling */
.tool-container .btn {
    height: 48px;
    border-radius: 0.85rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: none;
    padding: 0 1.5rem;
}

.tool-container .btn-primary {
    background: var(--primary-color);
    color: #ffffff;
}

.tool-container .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px -5px rgba(59, 130, 246, 0.4);
}

.tool-container .btn-outline {
    background: #f1f5f9;
    color: #475569;
}

.tool-container .btn-outline:hover {
    background: #e2e8f0;
    color: #1e293b;
}

.tool-container .btn-sm {
    height: 38px;
    padding: 0 1rem;
    font-size: 0.85rem;
}

.tool-container .btn-danger {
    background: #fef2f2;
    color: #ef4444;
}

.tool-container .btn-danger:hover {
    background: #fee2e2;
    color: #dc2626;
}

.tool-container .btn-copy-all {
    width: 100%;
    margin-top: 2rem;
}

/* Features Grid - Ultra Minimalist */
.tool-container .features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 4rem;
}

.tool-container .feature-card {
    background: #ffffff;
    padding: 2.25rem;
    border-radius: 1rem;
    border: 1px solid #eef2f6;
    transition: all 0.3s ease;
}

.tool-container .feature-card:hover {
    border-color: #cbd5e1;
    transform: translateY(-4px);
}

.tool-container .feature-icon {
    color: #1e293b;
    margin-bottom: 1.25rem;
}

.tool-container .feature-icon svg {
    width: 28px;
    height: 28px;
    stroke-width: 1.5;
}

.tool-container .feature-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.85rem;
}

.tool-container .feature-desc {
    font-size: 0.95rem;
    color: #64748b;
    line-height: 1.7;
}

/* Redirection Page Premium UI */
.redirect-wrapper {
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.redirect-card {
    background: #ffffff;
    padding: 4rem 3rem;
    border-radius: 2.5rem;
    box-shadow: 0 40px 100px -20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(238, 242, 246, 0.5);
    max-width: 550px;
    width: 100%;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.redirect-icon {
    width: 80px;
    height: 80px;
    background: #eff6ff;
    color: var(--primary-color);
    border-radius: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    position: relative;
}

.redirect-icon::after {
    content: '';
    position: absolute;
    inset: -10px;
    border: 2px solid var(--primary-color);
    border-radius: 2.5rem;
    opacity: 0.1;
    animation: pulseIcon 2s infinite;
}

@keyframes pulseIcon {
    0% {
        transform: scale(1);
        opacity: 0.2;
    }

    50% {
        transform: scale(1.1);
        opacity: 0.1;
    }

    100% {
        transform: scale(1);
        opacity: 0.2;
    }
}

.redirect-title {
    font-size: 1.85rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 0.75rem;
    letter-spacing: -0.02em;
}

.redirect-msg {
    color: #64748b;
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
}

/* Premium Digital Timer */
.timer-container {
    position: relative;
    width: 140px;
    height: 140px;
    margin: 0 auto 2.5rem;
}

.timer-svg {
    transform: rotate(-90deg);
}

.timer-bg {
    fill: none;
    stroke: #f1f5f9;
    stroke-width: 6;
}

.timer-bar {
    fill: none;
    stroke: var(--primary-color);
    stroke-width: 6;
    stroke-linecap: round;
    transition: stroke-dashoffset 1s linear;
}

.timer-number {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 3.5rem;
    font-weight: 900;
    color: #0f172a;
}

/* Destination Box */
.redirect-destination {
    background: #f8fafc;
    padding: 1.5rem;
    border-radius: 1.5rem;
    border: 1px solid #eef2f6;
    margin-bottom: 2.5rem;
    text-align: left;
}

.dest-label {
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
    font-weight: 800;
    color: #94a3b8;
    margin-bottom: 0.5rem;
    letter-spacing: 0.05em;
}

.dest-url {
    font-size: 0.95rem;
    font-weight: 700;
    color: #1e293b;
    word-break: break-all;
    line-height: 1.5;
}

.btn-redirect {
    width: 100%;
    height: 56px !important;
    font-size: 1.1rem !important;
}

.redirect-security-note {
    margin-top: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.85rem;
    color: #94a3b8;
    font-weight: 500;
}

/* Animations */
.animate-fade {
    animation: fadeIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(15px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 640px) {
    .tool-container .premium-card {
        padding: 1.5rem;
    }

    .tool-container .shorten-config {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }
}