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

/* Accessibility class for screen reader only content */
.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    color: #fff;
    min-height: 100vh;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.header {
    text-align: center;
    margin-bottom: 50px;
    padding: 40px 0;
}

.title {
    font-size: 4rem;
    font-weight: bold;
    background: linear-gradient(45deg, #ff6b6b, #ee5a24, #ffa502);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
    text-shadow: 0 0 30px rgba(255, 107, 107, 0.3);
}

.title i {
    margin-right: 15px;
    color: #ff6b6b;
}

.subtitle {
    font-size: 1.3rem;
    color: #ccc;
    font-weight: 300;
}

.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 50px;
}

.url-form {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 40px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.input-group {
    display: flex;
    gap: 15px;
    max-width: 600px;
    margin: 0 auto;
}

#originalUrl {
    flex: 1;
    padding: 15px 20px;
    border: none;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 1.1rem;
    outline: none;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

#originalUrl:focus {
    border-color: #ff6b6b;
    box-shadow: 0 0 20px rgba(255, 107, 107, 0.3);
}

#originalUrl::placeholder {
    color: #aaa;
}

.shadify-btn {
    padding: 15px 30px;
    background: linear-gradient(45deg, #ff6b6b, #ee5a24);
    border: none;
    border-radius: 50px;
    color: white;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.shadify-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(255, 107, 107, 0.4);
}

.shadify-btn i {
    margin-right: 8px;
}

.result-section {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    animation: slideIn 0.5s ease;
}

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

.url-result {
    display: flex;
    gap: 10px;
    max-width: 600px;
    margin: 20px auto;
}

#shadyUrl {
    flex: 1;
    padding: 15px 20px;
    border: none;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 1.1rem;
    outline: none;
    resize: none;
    white-space: pre-wrap;
    word-wrap: break-word;
    overflow-wrap: break-word;
    min-height: 200px;
    height: 200px;
    font-family: 'Courier New', 'Monaco', monospace;
    line-height: 1.5;
    overflow-y: auto;
}

.copy-btn {
    padding: 15px 20px;
    background: #27ae60;
    border: none;
    border-radius: 50px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    align-self: flex-start;
    margin-top: 10px;
}

.copy-btn:hover {
    background: #2ecc71;
    transform: scale(1.05);
}

.warning {
    color: #f39c12;
    font-size: 0.9rem;
    margin-top: 15px;
    font-style: italic;
}

.features {
    text-align: center;
}

.features h3 {
    font-size: 2rem;
    margin-bottom: 30px;
    color: #fff;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.feature-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 30px 20px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 107, 107, 0.3);
}

.feature-card i {
    font-size: 2.5rem;
    color: #ff6b6b;
    margin-bottom: 15px;
}

.feature-card h4 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: #fff;
}

.feature-card p {
    color: #ccc;
    font-size: 0.95rem;
}

.footer {
    text-align: center;
    padding: 40px 0 20px 0;
    color: #666;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 50px;
}

.admin-link {
    text-align: center;
    margin-top: 30px;
}

.admin-link a {
    display: inline-block;
    padding: 15px 30px;
    background: linear-gradient(45deg, #666, #888);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.admin-link a:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(100, 100, 100, 0.4);
}

.admin-link a i {
    margin-right: 8px;
}

@media (max-width: 768px) {
    .title {
        font-size: 2.5rem;
    }
    
    .input-group {
        flex-direction: column;
    }
    
    .url-result {
        flex-direction: column;
    }
    
    .feature-grid {
        grid-template-columns: 1fr;
    }
}
