:root {
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --glow-color: rgba(118, 75, 162, 0.5);
    --success-color: #00f260;
    --error-color: #f20045;
    --warning-color: #ffa726;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --text-main: #ffffff;
    --text-secondary: #a0a0a0;
}

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

body {
    font-family: 'Heebo', sans-serif;
    background-color: #0f172a;
    color: var(--text-main);
    min-height: 100vh;
    overflow-x: hidden;
}

/* Hero Section Background */
.hero-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://images.unsplash.com/photo-1451187580459-43490279c0fa?q=80&w=2072&auto=format&fit=crop') no-repeat center center/cover;
    z-index: -2;
}

/* שכבת כהות כדי שהטקסט יבלוט */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(8px);
    z-index: -1;
}

/* Main Container */
.container {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
    text-align: center;
}

/* Typography */
h1 {
    font-size: 4.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.1;
    background: linear-gradient(to right, #fff, #a5b4fc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 10px 30px rgba(0,0,0,0.5);
    animation: fadeInDown 1s ease-out;
}

p.subtitle {
    font-size: 1.5rem;
    color: var(--text-secondary);
    margin-bottom: 3.5rem;
    font-weight: 300;
    max-width: 700px;
    animation: fadeInUp 1s ease-out 0.3s backwards;
}

/* The Mighty Input Field Wrapper */
.input-wrapper {
    position: relative;
    width: 100%;
    max-width: 800px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 10px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.3), inset 0 0 0 1px rgba(255,255,255,0.1);
    backdrop-filter: blur(20px);
    display: flex;
    align-items: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    animation: zoomIn 0.8s ease-out 0.5s backwards;
    margin-bottom: 2rem;
}

.input-wrapper:focus-within {
    box-shadow: 0 0 30px var(--glow-color), inset 0 0 0 1px rgba(255,255,255,0.3);
    transform: scale(1.02);
    background: rgba(255, 255, 255, 0.08);
}

/* Icon inside input */
.globe-icon {
    font-size: 1.8rem;
    color: #a5b4fc;
    margin-right: 20px;
    margin-left: 10px;
}

/* The Input Field Itself */
input[type="text"] {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: #fff;
    font-size: 1.8rem;
    font-weight: 500;
    font-family: 'Heebo', sans-serif;
    padding: 15px 10px;
    direction: ltr;
    text-align: left;
}

input[type="text"]::placeholder {
    color: rgba(255,255,255,0.3);
    font-weight: 300;
}

/* The Action Button */
button.check-btn {
    background: var(--primary-gradient);
    border: none;
    color: white;
    font-size: 1.2rem;
    font-weight: 700;
    padding: 18px 45px;
    border-radius: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px rgba(118, 75, 162, 0.4);
    white-space: nowrap;
}

button.check-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(118, 75, 162, 0.6);
    filter: brightness(1.1);
}

button.check-btn:active {
    transform: translateY(1px);
}

button.check-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* Progress bar */
.progress-container {
    width: 100%;
    max-width: 800px;
    margin: 20px 0;
    padding: 20px;
    border-radius: 16px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.05);
    animation: fadeInUp 0.5s ease-out;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(255,255,255,0.1);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 12px;
}

.progress-fill {
    height: 100%;
    background: var(--primary-gradient);
    border-radius: 4px;
    transition: width 0.3s ease;
    width: 0%;
    box-shadow: 0 0 10px var(--glow-color);
}

.progress-text {
    font-size: 14px;
    color: var(--text-secondary);
    text-align: center;
    font-weight: 500;
}

/* Result Area */
.status-result {
    margin-top: 40px;
    padding: 25px 40px;
    border-radius: 20px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.05);
    display: flex;
    align-items: center;
    gap: 20px;
    opacity: 1;
    transform: translateY(0);
    transition: all 0.5s ease;
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    max-width: 800px;
    width: 100%;
}

.status-result.loading {
    background: rgba(118, 75, 162, 0.1);
    border-color: rgba(118, 75, 162, 0.2);
}

.status-result.success {
    background: rgba(0, 242, 96, 0.1);
    border-color: rgba(0, 242, 96, 0.2);
}

.status-result.error {
    background: rgba(242, 0, 69, 0.1);
    border-color: rgba(242, 0, 69, 0.2);
}

.status-result.warning {
    background: rgba(255, 167, 38, 0.1);
    border-color: rgba(255, 167, 38, 0.2);
}

.status-dot {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background-color: var(--text-secondary);
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.status-dot.loading {
    background-color: #a5b4fc;
    animation: pulse 2s infinite;
}

.status-dot.success {
    background-color: var(--success-color);
    box-shadow: 0 0 15px var(--success-color);
    animation: pulse 2s infinite;
}

.status-dot.error {
    background-color: var(--error-color);
    box-shadow: 0 0 15px var(--error-color);
}

.status-dot.warning {
    background-color: var(--warning-color);
    box-shadow: 0 0 15px var(--warning-color);
}

.status-text {
    font-size: 1.4rem;
    font-weight: 500;
    flex: 1;
    text-align: right;
}

/* Detailed results */
.detailed-results {
    margin-top: 30px;
    padding: 30px;
    border-radius: 20px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.05);
    backdrop-filter: blur(10px);
    max-width: 800px;
    width: 100%;
    animation: fadeInUp 0.5s ease-out;
}

.detailed-results h4 {
    margin: 0 0 20px 0;
    font-size: 18px;
    font-weight: 600;
    color: var(--text-main);
    text-align: center;
}

.details-list {
    display: grid;
    gap: 12px;
}

.detail-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    background: rgba(255,255,255,0.05);
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.08);
    font-size: 14px;
    transition: all 0.3s ease;
}

.detail-item:hover {
    background: rgba(255,255,255,0.08);
    transform: translateY(-1px);
}

.detail-item.success {
    border-left: 4px solid var(--success-color);
    background: rgba(0, 242, 96, 0.05);
}

.detail-item.error {
    border-left: 4px solid var(--error-color);
    background: rgba(242, 0, 69, 0.05);
}

.detail-item.warning {
    border-left: 4px solid var(--warning-color);
    background: rgba(255, 167, 38, 0.05);
}

.detail-name {
    font-weight: 600;
    color: var(--text-main);
}

.detail-status {
    font-size: 13px;
    color: var(--text-secondary);
}

.detail-status.success {
    color: var(--success-color);
    font-weight: 500;
}

.detail-status.error {
    color: var(--error-color);
    font-weight: 500;
}

.detail-status.warning {
    color: var(--warning-color);
    font-weight: 500;
}

/* Recent checks */
.recent-checks {
    margin-top: 40px;
    padding: 30px;
    border-radius: 20px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.05);
    backdrop-filter: blur(10px);
    max-width: 800px;
    width: 100%;
}

.recent-checks h3 {
    margin-bottom: 20px;
    font-size: 18px;
    font-weight: 600;
    color: var(--text-main);
    text-align: center;
}

.recent-list {
    display: grid;
    gap: 10px;
}

.recent-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: rgba(255,255,255,0.05);
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.08);
    font-size: 13px;
    transition: all 0.3s ease;
}

.recent-item:hover {
    background: rgba(255,255,255,0.08);
}

.recent-item.success {
    border-left: 3px solid var(--success-color);
}

.recent-item.error {
    border-left: 3px solid var(--error-color);
}

.recent-item.warning {
    border-left: 3px solid var(--warning-color);
}

.recent-url {
    font-weight: 500;
    color: var(--text-main);
    flex: 1;
}

.recent-status {
    font-size: 12px;
    margin: 0 12px;
}

.recent-time {
    font-size: 11px;
    color: var(--text-secondary);
}

.no-checks {
    text-align: center;
    color: var(--text-secondary);
    font-style: italic;
    padding: 20px;
}

.hidden {
    display: none;
}

/* Animations */
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(0, 242, 96, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(0, 242, 96, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 242, 96, 0); }
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-30px); }
    to { opacity: 1; transform: translateY(0); }
}

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

@keyframes zoomIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    h1 { 
        font-size: 3rem; 
    }
    
    p.subtitle {
        font-size: 1.2rem;
        margin-bottom: 2.5rem;
    }
    
    .input-wrapper { 
        flex-direction: column; 
        padding: 15px; 
        border-radius: 20px; 
        gap: 15px;
    }
    
    input[type="text"] { 
        width: 100%; 
        text-align: center; 
        font-size: 1.4rem;
    }
    
    button.check-btn { 
        width: 100%; 
        padding: 15px 30px;
    }
    
    .globe-icon { 
        display: none; 
    }
    
    .status-result {
        flex-direction: column;
        text-align: center;
        gap: 15px;
        padding: 20px;
    }
    
    .status-text {
        font-size: 1.2rem;
        text-align: center;
    }
    
    .recent-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .recent-status {
        margin: 0;
    }
}