/* Paint App Styles - Windows 7 Theme */

.paint-app {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #f0f0f0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Ribbon Interface */
.paint-ribbon {
    background: linear-gradient(to bottom, #e5f3fb 0%, #d9edfb 50%, #c7e3f8 100%);
    border-bottom: 1px solid #b3d9f3;
}

.paint-ribbon-tabs {
    display: flex;
    gap: 2px;
    padding: 4px 8px 0 8px;
    background: linear-gradient(to bottom, #dfe9f5 0%, #c5d9ee 100%);
}

.paint-tab {
    padding: 6px 20px;
    border: none;
    background: transparent;
    color: #333;
    font-size: 13px;
    cursor: pointer;
    border-radius: 3px 3px 0 0;
    transition: background 0.2s;
}

.paint-tab:hover {
    background: rgba(255, 255, 255, 0.5);
}

.paint-tab.active {
    background: linear-gradient(to bottom, #e5f3fb 0%, #d9edfb 100%);
    font-weight: 600;
}

.paint-ribbon-content {
    display: flex;
    gap: 15px;
    padding: 10px 15px;
    overflow-x: auto;
}

.paint-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 5px;
    border-right: 1px solid #c5d9ee;
}

.paint-group:last-child {
    border-right: none;
}

.paint-group-label {
    font-size: 11px;
    color: #444;
    text-align: center;
    font-weight: 600;
}

/* Tools Grid */
.paint-tools-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
    min-width: 120px;
}

.paint-tool {
    width: 36px;
    height: 36px;
    border: 1px solid #b3d9f3;
    background: linear-gradient(to bottom, #ffffff 0%, #e5f3fb 100%);
    border-radius: 3px;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.paint-tool:hover {
    background: linear-gradient(to bottom, #ffffff 0%, #fef5e7 100%);
    border-color: #f7ca18;
}

.paint-tool.active {
    background: linear-gradient(to bottom, #fef5e7 0%, #fde3a7 100%);
    border-color: #f7ca18;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.1);
}

/* Size Controls */
.paint-size-controls {
    display: flex;
    flex-direction: column;
    gap: 5px;
    align-items: center;
    padding: 5px;
}

.paint-size-slider {
    width: 100px;
    height: 6px;
    border-radius: 3px;
    background: #d3d3d3;
    outline: none;
    -webkit-appearance: none;
}

.paint-size-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: linear-gradient(to bottom, #4a90d9 0%, #2e5f95 100%);
    cursor: pointer;
    border: 2px solid #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.paint-size-slider::-moz-range-thumb {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: linear-gradient(to bottom, #4a90d9 0%, #2e5f95 100%);
    cursor: pointer;
    border: 2px solid #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.paint-size-value {
    font-size: 11px;
    color: #333;
    font-weight: 600;
}

/* Colors Section */
.paint-colors-section {
    display: flex;
    gap: 10px;
    align-items: center;
}

.paint-color-display {
    position: relative;
    width: 40px;
    height: 40px;
}

.paint-color-primary,
.paint-color-secondary {
    position: absolute;
    border: 2px solid #666;
    box-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.paint-color-primary {
    width: 28px;
    height: 28px;
    top: 0;
    left: 0;
    z-index: 2;
    background: #000;
}

.paint-color-secondary {
    width: 28px;
    height: 28px;
    bottom: 0;
    right: 0;
    z-index: 1;
    background: #fff;
}

.paint-color-palette {
    display: grid;
    grid-template-columns: repeat(10, 1fr);
    gap: 3px;
    padding: 5px;
    background: white;
    border: 1px solid #b3d9f3;
    border-radius: 3px;
}

.paint-color-box {
    width: 20px;
    height: 20px;
    border: 1px solid #999;
    cursor: pointer;
    transition: transform 0.1s;
}

.paint-color-box:hover {
    transform: scale(1.15);
    border: 2px solid #333;
}

/* Image Controls */
.paint-image-controls {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 5px;
}

.paint-btn {
    padding: 8px 16px;
    border: 1px solid #b3d9f3;
    background: linear-gradient(to bottom, #ffffff 0%, #e5f3fb 100%);
    border-radius: 3px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    color: #333;
    transition: all 0.2s;
}

.paint-btn:hover {
    background: linear-gradient(to bottom, #ffffff 0%, #fef5e7 100%);
    border-color: #f7ca18;
}

.paint-btn:active {
    background: linear-gradient(to bottom, #e5f3fb 0%, #c7e3f8 100%);
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.1);
}

/* Canvas Container */
.paint-canvas-container {
    flex: 1;
    overflow: auto;
    background: #8c8c8c;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.paint-canvas {
    background: white;
    border: 1px solid #666;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    cursor: crosshair;
    image-rendering: pixelated;
}

/* Status Bar */
.paint-status-bar {
    display: flex;
    gap: 15px;
    padding: 4px 10px;
    background: linear-gradient(to bottom, #f3f3f3 0%, #e5e5e5 100%);
    border-top: 1px solid #c5c5c5;
    font-size: 11px;
    color: #333;
}

.paint-status-bar span {
    display: inline-block;
}

/* Scrollbar Styling */
.paint-canvas-container::-webkit-scrollbar {
    width: 16px;
    height: 16px;
}

.paint-canvas-container::-webkit-scrollbar-track {
    background: #d3d3d3;
    border: 1px solid #999;
}

.paint-canvas-container::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, #f0f0f0 0%, #c0c0c0 100%);
    border: 1px solid #999;
}

.paint-canvas-container::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(to bottom, #e0e0e0 0%, #b0b0b0 100%);
}

.paint-canvas-container::-webkit-scrollbar-corner {
    background: #d3d3d3;
}

/* Special styles for Paint window */
[data-app="mspaint"] .window-content {
    padding: 0 !important;
    display: flex;
    flex-direction: column;
}

[data-app="mspaint"].window {
    min-width: 700px;
    min-height: 500px;
}

/* Minesweeper Game Styles */
.minesweeper-container {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: auto;
    padding: 20px;
}

.minesweeper-iframe {
    width: 100%;
    height: 100%;
    border: none;
    background: transparent;
}

/* Hextris Game Styles */
.hextris-container {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: auto;
    padding: 20px;
}

.hextris-iframe {
    width: 100%;
    height: 100%;
    border: none;
    background: transparent;
}

[data-app="hextris"] .window-content {
    padding: 0 !important;
    display: flex;
    flex-direction: column;
}

[data-app="minesweeper"] .window-content {
    padding: 0 !important;
    display: flex;
    flex-direction: column;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

[data-app="minesweeper"].window {
    min-width: 700px;
    min-height: 650px;
}

[data-app="hextris"].window {
    min-width: 700px;
    min-height: 650px;
}

/* Apple Music Styles */
.apple-music-container {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #ff2d55 0%, #ff375f 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: auto;
}

.apple-music-content {
    text-align: center;
    padding: 40px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    max-width: 600px;
}

.music-logo {
    display: flex;
    justify-content: center;
    align-items: center;
}

.apple-music-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    background: linear-gradient(135deg, #ff2d55 0%, #ff375f 100%);
    color: #fff;
    border: none;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    font-family: 'Segoe UI', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(255, 45, 85, 0.3);
}

.apple-music-button:hover {
    background: linear-gradient(135deg, #ff1f49 0%, #ff2d55 100%);
    box-shadow: 0 6px 16px rgba(255, 45, 85, 0.4);
    transform: translateY(-2px);
}

.apple-music-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(255, 45, 85, 0.3);
}

[data-app="apple-music"] .window-content {
    padding: 0 !important;
    display: flex;
    flex-direction: column;
    background: linear-gradient(135deg, #ff2d55 0%, #ff375f 100%);
}

[data-app="apple-music"].window {
    min-width: 650px;
    min-height: 600px;
}

