/* Mac OS X Aqua Theme Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Lucida Grande', 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, #e6e6e6 0%, #f0f0f0 50%, #e6e6e6 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.window {
    background: #f5f5f5;
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    max-width: 700px;
    width: 100%;
}

.title-bar {
    background: linear-gradient(180deg, 
        #b8d4f0 0%, 
        #8bb3e8 50%, 
        #5a9de0 51%, 
        #4d8fd9 100%);
    height: 22px;
    display: flex;
    align-items: center;
    padding: 0 8px;
    position: relative;
    background-image: 
        repeating-linear-gradient(
            90deg,
            rgba(255, 255, 255, 0.1) 0px,
            rgba(255, 255, 255, 0.1) 1px,
            transparent 1px,
            transparent 2px
        );
}

.window-controls {
    display: flex;
    gap: 8px;
}

.control {
    width: 13px;
    height: 13px;
    border-radius: 50%;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.3);
}

.control.close {
    background: linear-gradient(45deg, #ff6b6b, #ff5252);
}

.control.minimize {
    background: linear-gradient(45deg, #ffeb3b, #ffc107);
}

.control.maximize {
    background: linear-gradient(45deg, #4caf50, #388e3c);
}

.title {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 13px;
    font-weight: bold;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.content {
    padding: 20px;
    background: linear-gradient(180deg, #f8f8f8 0%, #e8e8e8 100%);
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#canvas {
    border: 2px solid #ddd;
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.1);
}

.stats-panel {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 8px;
    padding: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    border: 1px solid #ddd;
    min-width: 120px;
}

.stat-item {
    margin-bottom: 8px;
}

.stat-item:last-child {
    margin-bottom: 0;
}

.stat-label {
    font-size: 11px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-value {
    font-size: 18px;
    font-weight: bold;
    color: #333;
}

.toolbar {
    background: linear-gradient(180deg, #e8e8e8 0%, #d0d0d0 100%);
    border-top: 1px solid #bbb;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    background-image: 
        repeating-linear-gradient(
            90deg,
            rgba(255, 255, 255, 0.1) 0px,
            rgba(255, 255, 255, 0.1) 1px,
            transparent 1px,
            transparent 2px
        );
}

.toolbar-section {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
}

.aqua-button {
    background: linear-gradient(180deg, #6bb3ff 0%, #4a9eff 50%, #2b8aef 51%, #1976d2 100%);
    border: 1px solid #1565c0;
    border-radius: 16px;
    color: white;
    font-size: 13px;
    font-weight: bold;
    padding: 6px 16px;
    cursor: pointer;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    box-shadow: 
        0 1px 3px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    transition: all 0.1s ease;
}

.aqua-button:hover {
    background: linear-gradient(180deg, #7bc3ff 0%, #5aafff 50%, #3b9aff 51%, #2186e2 100%);
}

.aqua-button:active {
    background: linear-gradient(180deg, #2b8aef 0%, #1976d2 50%, #1565c0 51%, #0d47a1 100%);
    box-shadow: 
        inset 0 2px 4px rgba(0, 0, 0, 0.3),
        0 1px 2px rgba(0, 0, 0, 0.2);
}

.aqua-select {
    background: linear-gradient(180deg, #ffffff 0%, #f0f0f0 100%);
    border: 1px solid #999;
    border-radius: 4px;
    padding: 4px 8px;
    font-size: 13px;
    cursor: pointer;
}

.aqua-select:focus {
    outline: none;
    border-color: #4a9eff;
    box-shadow: 0 0 0 2px rgba(74, 158, 255, 0.3);
}

input[type="checkbox"] {
    margin-right: 6px;
}

label {
    display: flex;
    align-items: center;
    font-size: 13px;
    color: #333;
    cursor: pointer;
}

#popCounter {
    font-weight: bold;
    color: #555;
}

.footer {
    padding: 8px 20px;
    background: #f0f0f0;
    border-top: 1px solid #ddd;
    text-align: center;
}

.footer a {
    color: #666;
    text-decoration: none;
    font-size: 12px;
}

.footer a:hover {
    color: #333;
}

/* Responsive design */
@media (max-width: 600px) {
    body {
        padding: 10px;
    }
    
    .stats-panel {
        position: static;
        margin-top: 15px;
        width: 100%;
    }
    
    .toolbar {
        flex-direction: column;
        gap: 10px;
    }
    
    .toolbar-section {
        justify-content: center;
    }
}

@media (max-width: 400px) {
    .title-bar {
        font-size: 11px;
    }
    
    .aqua-button {
        padding: 5px 12px;
        font-size: 12px;
    }
}