/* Main Tool Container */
.tool-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem;
}

/* Tool Header */
.tool-header {
    text-align: center;
    margin-bottom: 2rem;
}

.tool-header h2 {
    color: #2c3e50;
    font-weight: 700;
    margin-bottom: 1rem;
}

.tool-header p {
    color: #7f8c8d;
    font-size: 1.1rem;
}

/* Demo Section */
.demo-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.demo-card {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.demo-card:hover {
    transform: translateY(-5px);
}

/* Box Shadow Examples */
.box-shadow-example {
    width: 150px;
    height: 150px;
    background: #3498db;
    margin: 0 auto 1rem;
    border-radius: 8px;
    transition: box-shadow 0.3s ease;
}

/* Different shadow effects */
.shadow-1:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.shadow-2:hover {
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2), 0 6px 6px rgba(0, 0, 0, 0.1);
}

.shadow-3:hover {
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.25), 0 10px 10px rgba(0, 0, 0, 0.22);
}

.shadow-4:hover {
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.16), 0 3px 6px rgba(0, 0, 0, 0.23);
}

.shadow-5:hover {
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.19), 0 6px 6px rgba(0, 0, 0, 0.23);
}

.shadow-6:hover {
    box-shadow: 0 19px 38px rgba(0, 0, 0, 0.30), 0 15px 12px rgba(0, 0, 0, 0.22);
}

/* Code Display Section */
.code-section {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.code-section h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.code-display {
    background: #282c34;
    color: #abb2bf;
    padding: 1rem;
    border-radius: 5px;
    font-family: 'Courier New', monospace;
    overflow-x: auto;
    margin-bottom: 1rem;
}

.code-display pre {
    margin: 0;
}

/* Controls Section */
.controls-section {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
}

.control-group {
    flex: 1;
    min-width: 200px;
}

.control-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #2c3e50;
    font-weight: 500;
}

.control-group input {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
}

/* Custom Shadow Preview */
.custom-shadow-container {
    text-align: center;
    margin-top: 2rem;
}

.custom-shadow-box {
    width: 200px;
    height: 200px;
    background: #e74c3c;
    margin: 0 auto;
    border-radius: 8px;
    transition: box-shadow 0.3s ease;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .demo-section {
        grid-template-columns: 1fr;
    }
    
    .controls-section {
        flex-direction: column;
    }
}