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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
    background: linear-gradient(135deg, #fd79a8 0%, #e84393 100%);
    min-height: 100vh;
    padding: 2rem;
    color: #333;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

header {
    text-align: center;
    margin-bottom: 2rem;
}

header h1 {
    font-size: 3rem;
    color: #e84393;
    margin-bottom: 0.5rem;
}

.subtitle {
    font-size: 1.2rem;
    color: #666;
}

main {
    display: grid;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.card {
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    border: 1px solid #e9ecef;
}

.card h2 {
    color: #e84393;
    margin-bottom: 1rem;
}

/* Canvas Styles */
#drawingCanvas {
    border: 2px solid #ddd;
    border-radius: 10px;
    cursor: crosshair;
    display: block;
    margin: 0 auto 1rem;
    background: white;
}

.controls {
    display: flex;
    gap: 1rem;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.controls button {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 5px;
    background: #e84393;
    color: white;
    cursor: pointer;
    transition: background 0.2s ease;
}

.controls button:hover {
    background: #fd79a8;
}

.controls input[type="range"] {
    width: 100px;
}

.controls input[type="color"] {
    width: 40px;
    height: 30px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.controls label {
    font-weight: bold;
    color: #555;
}

/* List Styles */
.list-controls {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.list-controls input {
    flex: 1;
    padding: 0.5rem;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
}

.list-controls button {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 5px;
    background: #00b894;
    color: white;
    cursor: pointer;
    transition: background 0.2s ease;
}

.list-controls button:hover {
    background: #00a085;
}

#dynamicList {
    list-style: none;
    max-height: 200px;
    overflow-y: auto;
}

#dynamicList li {
    padding: 0.5rem;
    margin: 0.5rem 0;
    background: #f8f9fa;
    border-radius: 5px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#dynamicList li button {
    background: #e74c3c;
    color: white;
    border: none;
    border-radius: 3px;
    padding: 0.25rem 0.5rem;
    cursor: pointer;
    font-size: 0.8rem;
}

#dynamicList li button:hover {
    background: #c0392b;
}

/* Storage Styles */
.storage-controls {
    display: grid;
    grid-template-columns: 1fr 1fr auto auto auto;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.storage-controls input {
    padding: 0.5rem;
    border: 2px solid #ddd;
    border-radius: 5px;
}

.storage-controls button {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 5px;
    color: white;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.storage-controls button:nth-child(3) { background: #0984e3; }
.storage-controls button:nth-child(4) { background: #00b894; }
.storage-controls button:nth-child(5) { background: #e74c3c; }

.storage-controls button:hover {
    opacity: 0.8;
}

#storageDisplay {
    background: #f8f9fa;
    border-radius: 5px;
    padding: 1rem;
    min-height: 100px;
    font-family: monospace;
    white-space: pre-wrap;
    font-size: 0.9rem;
}

/* Features List */
.features {
    list-style: none;
}

.features li {
    padding: 0.5rem 0;
    color: #333;
    font-size: 1.1rem;
}

/* Footer */
footer {
    text-align: center;
    padding-top: 1rem;
    border-top: 1px solid #e9ecef;
}

.home-link {
    color: #e84393;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.2s ease;
}

.home-link:hover {
    color: #fd79a8;
}

/* Responsive Design */
@media (max-width: 768px) {
    .controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .storage-controls {
        grid-template-columns: 1fr;
    }
    
    #drawingCanvas {
        width: 100%;
        height: auto;
    }
}