:root {
    --primary: #0ea5e9;
    --primary-dark: #0284c7;
    --danger: #ef4444;
    --danger-light: #fef2f2;
    --success: #10b981;
    --success-light: #ecfdf5;
    --warning: #f59e0b;
    --warning-light: #fffbeb;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --bg-color: #f8fafc;
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(255, 255, 255, 0.4);
    --glass-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
}

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

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-main);
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 50%, #7dd3fc 100%);
    position: relative;
    overflow: hidden;
}

/* Background animated circles for visual depth */
body::before, body::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    z-index: 0;
    filter: blur(80px);
    opacity: 0.6;
    animation: drift 20s infinite alternate ease-in-out;
}

body::before {
    width: 500px;
    height: 500px;
    background: #38bdf8;
    top: -100px;
    left: -100px;
}

body::after {
    width: 600px;
    height: 600px;
    background: #818cf8;
    bottom: -150px;
    right: -100px;
    animation-delay: -10s;
}

@keyframes drift {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(50px, 50px) scale(1.1); }
}

.container {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 750px;
    padding: 1.5rem;
    animation: slideUpFade 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    max-height: 100vh;
    overflow-y: auto;
}

@keyframes slideUpFade {
    0% { opacity: 0; transform: translateY(40px); }
    100% { opacity: 1; transform: translateY(0); }
}

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 2.5rem;
    box-shadow: var(--glass-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.2);
}

.card-header {
    text-align: center;
    margin-bottom: 2rem;
}

.logo {
    display: block;
    max-height: 80px;
    margin: 0 auto 1.5rem auto;
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.1));
    animation: pulse 3s infinite ease-in-out;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.03); }
    100% { transform: scale(1); }
}

.badge {
    display: inline-block;
    background: var(--warning-light);
    color: #b45309;
    padding: 0.35rem 0.85rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.title {
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.subtitle {
    color: var(--text-muted);
    font-size: 1.125rem;
    font-weight: 500;
}

.description {
    text-align: center;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 2rem;
    font-size: 1.05rem;
}

.url-comparison {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.url-box {
    padding: 1.25rem 1.5rem;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.url-box::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 6px;
}

.old-url {
    background: var(--danger-light);
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.old-url::before {
    background: var(--danger);
}

.new-url {
    background: var(--success-light);
    border: 1px solid rgba(16, 185, 129, 0.3);
    transform: scale(1.02);
    box-shadow: 0 10px 15px -3px rgba(16, 185, 129, 0.1);
}

.new-url::before {
    background: var(--success);
}

.url-label {
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.old-url .url-label {
    color: var(--danger);
}

.new-url .url-label {
    color: var(--success);
}

.url-link {
    font-family: monospace;
    font-size: 1.05rem;
    color: var(--text-main);
    text-decoration: none;
    word-break: break-all;
    overflow-wrap: break-word;
    font-weight: 500;
}

.old-url .url-link {
    text-decoration: line-through;
    color: var(--text-muted);
    opacity: 0.7;
    cursor: not-allowed;
}

.new-url .url-link {
    font-size: 1.15rem;
    color: #065f46;
}

.arrow-down {
    display: flex;
    justify-content: center;
    color: var(--text-muted);
    opacity: 0.6;
}

.alert {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem;
    border-radius: 12px;
    background: #fff;
    border: 1px solid #e2e8f0;
    margin-bottom: 2rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.intranet-alert {
    border-left: 4px solid var(--warning);
}

.info-alert {
    border-left: 4px solid var(--primary);
}

.alert-icon {
    flex-shrink: 0;
    padding: 0.5rem;
    border-radius: 50%;
}

.intranet-alert .alert-icon {
    color: var(--warning);
    background: var(--warning-light);
}

.info-alert .alert-icon {
    color: var(--primary);
    background: #e0f2fe;
}

.alert-content p, .alert-list {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.5;
    margin-top: 0.25rem;
}

.alert-list {
    padding-left: 1.25rem;
}

.alert-list li {
    margin-bottom: 0.25rem;
}

.alert-list li:last-child {
    margin-bottom: 0;
}

.alert-content b {
    color: var(--text-main);
}

.btn-primary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
    padding: 1rem 1.5rem;
    background: var(--primary);
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.125rem;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 6px -1px rgba(14, 165, 233, 0.3), 0 2px 4px -1px rgba(14, 165, 233, 0.2);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(14, 165, 233, 0.4), 0 4px 6px -2px rgba(14, 165, 233, 0.2);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-primary svg {
    transition: transform 0.3s ease;
}

.btn-primary:hover svg {
    transform: translateX(4px);
}

@media (max-width: 640px) {
    .glass-card {
        padding: 1.5rem;
        border-radius: 16px;
    }
    .title {
        font-size: 1.5rem;
    }
    .url-link {
        font-size: 0.95rem;
    }
    .new-url .url-link {
        font-size: 1.05rem;
    }
}
