/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #e3f2fd 0%, #ffffff 100%);
    color: #333;
    line-height: 1.6;
    min-height: 100vh;
    padding: 20px;
}

/* Header styles */
header {
    text-align: center;
    padding: 30px 20px;
    background: linear-gradient(120deg, #2196f3 0%, #21cbf3 100%);
    color: white;
    border-radius: 10px;
    margin-bottom: 30px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

header p {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* Main content */
main {
    max-width: 1200px;
    margin: 0 auto;
}

.intro {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.intro p {
    font-size: 1.1rem;
    margin-bottom: 20px;
}

/* Demo button */
.demo-btn {
    background: #ff9800;
    color: white;
    border: none;
    padding: 12px 24px;
    font-size: 1rem;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.demo-btn:hover {
    background: #f57c00;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

/* Tool sections */
.tool-section {
    background: white;
    margin-bottom: 30px;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
}

.tool-section:hover {
    transform: translateY(-5px);
}

.tool-section h2 {
    color: #1976d2;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e3f2fd;
}

/* Input groups */
.input-group {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
}

.input-group input,
.input-group textarea {
    padding: 15px;
    border: 2px solid #bbdefb;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.input-group input:focus,
.input-group textarea:focus {
    outline: none;
    border-color: #2196f3;
    box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.2);
}

.input-group textarea {
    min-height: 100px;
    resize: vertical;
}

/* Buttons */
button {
    background: linear-gradient(120deg, #2196f3 0%, #21cbf3 100%);
    color: white;
    border: none;
    padding: 15px 25px;
    font-size: 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    align-self: flex-start;
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

button:active {
    transform: translateY(0);
}

/* Result containers */
.result-container {
    padding: 20px;
    border-radius: 8px;
    background: #f5f9ff;
    border-left: 4px solid #2196f3;
    display: none;
}

.result-container.visible {
    display: block;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.result-container h3 {
    color: #1976d2;
    margin-bottom: 15px;
}

.result-container ul {
    padding-left: 20px;
    margin-bottom: 15px;
}

.result-container li {
    margin-bottom: 8px;
}

.result-container p {
    margin-bottom: 15px;
}

/* Warning and danger styles */
.warning {
    background: #fff8e1;
    border-left-color: #ffc107;
}

.danger {
    background: #ffebee;
    border-left-color: #f44336;
}

.safe {
    background: #e8f5e9;
    border-left-color: #4caf50;
}

/* Footer */
footer {
    text-align: center;
    padding: 20px;
    margin-top: 30px;
    color: #666;
    font-size: 0.9rem;
}

/* Responsive design */
@media (min-width: 768px) {
    .input-group {
        flex-direction: row;
    }
    
    .input-group input,
    .input-group textarea {
        flex: 1;
    }
    
    button {
        align-self: center;
        margin-left: 10px;
    }
    
    header h1 {
        font-size: 3rem;
    }
}

@media (min-width: 1024px) {
    .tool-section {
        padding: 30px;
    }
}