@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

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

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

h1 {
    text-align: center;
    color: #333;
    margin-bottom: 30px;
    font-size: 2.5rem;
    font-weight: 300;
}

.info-section {
    margin-bottom: 40px;
    background: #f8f9fa;
    border-radius: 10px;
    padding: 25px;
}

.info-section h2 {
    color: #495057;
    margin-bottom: 20px;
    font-size: 1.5rem;
    border-bottom: 2px solid #dee2e6;
    padding-bottom: 10px;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 15px;
}

.info-item {
    background: white;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.label {
    font-weight: 600;
    color: #495057;
    flex: 1;
}

.value {
    color: #007bff;
    font-weight: 500;
    background: #e3f2fd;
    padding: 5px 10px;
    border-radius: 5px;
    font-family: 'Courier New', monospace;
    flex: 1;
    text-align: right;
}

.string-demo {
    background: #fff3cd;
    border-radius: 10px;
    padding: 25px;
    border-left: 5px solid #ffc107;
}

.string-demo h2 {
    color: #856404;
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.demo-item h3 {
    color: #495057;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

#string-demo-result {
    background: white;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #ffeaa7;
    font-family: 'Courier New', monospace;
    line-height: 1.6;
    color: #333;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 20px;
        margin: 10px;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
    
    .info-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .value {
        text-align: left;
        width: 100%;
    }
}

/* Loading Animation */
.loading {
    opacity: 0.6;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { opacity: 0.6; }
    50% { opacity: 1; }
    100% { opacity: 0.6; }
}
