body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    position: relative;
    overflow: hidden;
}

/* Background image with blur and fade */
.body-bg {
    position: fixed;
    top: -10px; left: -10px; right: -10px; bottom: -10px;
    width: calc(100vw + 20px);
    height: calc(100vh + 20px);
    z-index: 0;
    background: url('https://i.pinimg.com/736x/0f/7b/b0/0f7bb0b2aca65d04b1ee2c2336c5a871.jpg') center center/cover no-repeat;
    filter: blur(10px) brightness(0.7);
    transition: opacity 0.5s;
}

/* Animated gradient overlay */
.animated-gradient {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    width: 200%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(270deg, rgba(35, 42, 54, 0.1) 0%, rgba(46, 60, 80, 0.3) 50%, rgba(24, 28, 36, 0.1) 100%);
    opacity: 0.5;
    mix-blend-mode: color-dodge;
    animation: gradientMove 12s ease-in-out infinite alternate;
}

@keyframes gradientMove {
    from {
        transform: translateX(-25%);
    }
    to {
        transform: translateX(25%);
    }
}

.container {
    position: relative;
    z-index: 2;
    background: rgba(44, 44, 46, 0.65); /* iOS Dark Mode: systemGray6 */
    padding: 2.2rem 1.8rem 1.8rem 1.8rem;
    border-radius: 20px;
    box-shadow: 0 12px 48px 0 rgba(0, 0, 0, 0.35);
    width: 380px;
    text-align: center;
    color: #F2F2F7; /* iOS Dark Mode: label */
    backdrop-filter: blur(22px) saturate(180%);
    -webkit-backdrop-filter: blur(22px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

h1 {
    margin-bottom: 1rem;
    color: #F2F2F7;
    font-size: 1.8rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

.info-text {
    color: #E5E5EA; /* iOS Dark Mode: secondaryLabel */
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    line-height: 1.4;
}

textarea {
    width: 100%;
    min-height: 100px;
    max-height: 200px;
    padding: 14px;
    margin-bottom: 1rem;
    border-radius: 12px;
    border: none;
    font-size: 1rem;
    resize: vertical;
    background: rgba(28, 28, 30, 0.8); /* iOS Dark Mode: systemGray5 */
    color: #F2F2F7;
    transition: background 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.2);
}

textarea:focus {
    outline: none;
    background: rgba(44, 44, 46, 1);
    box-shadow: 0 0 0 2px rgba(10, 132, 255, 0.5);
}

button {
    width: 100%;
    padding: 14px;
    background: #0A84FF; /* iOS System Blue */
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.1s;
    margin-bottom: 0.5rem;
}

button:hover {
    background-color: #389dff;
}

button:active {
    transform: scale(0.98);
    background-color: #0077ee;
}

#result {
    margin-top: 1.2rem;
    padding: 12px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 500;
    min-height: 30px;
    line-height: 1.4;
    transition: all 0.3s;
}

.safe {
    background-color: rgba(48, 209, 88, 0.15); /* iOS System Green */
    color: #32D74B;
    border: 1px solid rgba(48, 209, 88, 0.3);
}

.phishing {
    background-color: rgba(255, 69, 58, 0.15); /* iOS System Red */
    color: #FF453A;
    border: 1px solid rgba(255, 69, 58, 0.3);
}

.popup-alert {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(1);
    background: rgba(255, 69, 58, 0.95);
    color: #fff;
    padding: 18px 36px;
    border-radius: 16px;
    font-size: 1.15rem;
    font-weight: 600;
    box-shadow: 0 4px 24px rgba(0,0,0,0.18);
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s, transform 0.4s;
    letter-spacing: 0.5px;
    text-align: center;
    min-width: 320px;
    max-width: 90vw;
}

.popup-alert.show {
    opacity: 1;
    pointer-events: auto;
    transform: translate(-50%, -50%) scale(1.05);
}
#loadingSpinner {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}
#loadingSpinner::after {
    content: '';
    width: 54px;
    height: 54px;
    border: 6px solid #0A84FF;
    border-top: 6px solid #fff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    box-shadow: 0 2px 12px rgba(10,132,255,0.15);
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
} 