@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600&display=swap');

body {
    margin: 0;
    padding: 0;
    background-image: url('https://i.ibb.co/hJq19MjQ/Tung-Tung-Sahur-Wallpaper.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    min-height: 100vh;
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    color: #1e293b;
    overflow: hidden;
}

.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 20px;
    background: rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(20px) saturate(160%);
    -webkit-backdrop-filter: blur(20px) saturate(160%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.25);
    height: 48px;
    box-sizing: border-box;
    user-select: none;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.02);
}

.pill {
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 9999px;
    padding: 5px 16px;
    font-size: 13px;
    font-weight: 500;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 6px;
    backdrop-filter: blur(8px);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.pill:hover {
    background: rgba(255, 255, 255, 0.7);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.pill:active {
    transform: translateY(0px);
    background: rgba(255, 255, 255, 0.4);
}

.desktop {
    position: relative;
    width: 100%;
    height: calc(100vh - 48px);
    overflow: hidden;
    box-sizing: border-box;
}

.desktop-icons {
    position: absolute;
    top: 24px;
    left: 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    z-index: 2;
}

.desktop-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 84px;
    cursor: pointer;
    user-select: none;
    text-align: center;
    gap: 8px;
}

.desktop-icon-img {
    width: 52px;
    height: 52px;
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(12px) saturate(140%);
    -webkit-backdrop-filter: blur(12px) saturate(140%);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.desktop-icon:hover .desktop-icon-img {
    background: rgba(255, 255, 255, 0.6);
    border-color: rgba(255, 255, 255, 0.7);
    transform: translateY(-2px) scale(1.04);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.desktop-icon-label {
    font-size: 12px;
    font-weight: 600;
    color: #ffffff;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.8);
    max-width: 84px;
    word-wrap: break-word;
    line-height: 1.3;
}

.window {
    position: absolute;
    width: 440px;
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(28px) saturate(140%);
    -webkit-backdrop-filter: blur(28px) saturate(140%);
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: 16px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    z-index: 10;
    opacity: 0;
    transform: scale(0.95) translateY(15px);
    transition: opacity 0.2s cubic-bezier(0.4, 0, 0.2, 1),
        transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.window.show {
    opacity: 1;
    transform: scale(1) translateY(0);
}

.window.maximized {
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    border-radius: 0;
    border: none;
    box-shadow: none;
}

.window-header {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 38px;
    background: rgba(255, 255, 255, 0.3);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    cursor: move;
    user-select: none;
}

.window-controls {
    position: absolute;
    left: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.control-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transition: filter 0.15s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.control-dot:hover {
    filter: brightness(0.85);
}

.dot-close {
    background: #ff5f56;
}

.dot-minimize {
    background: #ffbd2e;
}

.dot-maximize {
    background: #27c93f;
}

.window-title {
    font-size: 13px;
    font-weight: 600;
    color: #1e293b;
}

.window-body {
    padding: 12px;
    box-sizing: border-box;
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.inner-panel {
    background: #ffffff;
    border-radius: 12px;
    padding: 24px;
    box-sizing: border-box;
    color: #1e293b;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    display: flex;
    flex-direction: column;
    gap: 16px;
    flex: 1;
    min-height: 0;
}

.panel-header {
    display: flex;
    align-items: center;
    gap: 16px;
}

.avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(0, 0, 0, 0.03);
}

.panel-title {
    font-size: 26px;
    font-weight: 800;
    margin: 0;
    color: #0f172a;
    letter-spacing: -0.5px;
    line-height: 1.1;
}

.panel-subtitle {
    font-size: 13px;
    color: #64748b;
    margin: 4px 0 0 0;
}

.specs-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.spec-card {
    background: #f8fafc;
    border: 1px solid #f1f5f9;
    border-radius: 10px;
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.spec-label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #64748b;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}

.spec-value {
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
}

.text-gold {
    color: #b45309;
}

.text-purple {
    color: #6d28d9;
}

.text-blue {
    color: #1d4ed8;
}

.brainrot-box {
    background: #faf5ff;
    border: 1px solid #f3e8ff;
    border-radius: 10px;
    padding: 14px 16px;
    font-size: 13px;
    color: #6b21a8;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    line-height: 1.5;
}

.brainrot-box-icon {
    font-size: 16px;
    margin-top: 2px;
}

.btn-action {
    width: 100%;
    background: linear-gradient(135deg, #8b5cf6, #6366f1);
    border: none;
    border-radius: 10px;
    padding: 12px 20px;
    color: white;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.15);
    box-sizing: border-box;
}

.btn-action:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(139, 92, 246, 0.25);
}

.btn-action:active {
    transform: translateY(0px);
}

.clicker-panel {
    padding: 16px;
}

.clicker-layout {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.clicker-main {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 24px;
    width: 100%;
    box-sizing: border-box;
}

.score-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    text-align: center;
}

.score-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #64748b;
    font-weight: 700;
}

.score-value {
    font-size: 36px;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -1px;
}

.click-target-container {
    position: relative;
    margin-top: 16px;
    width: 150px;
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.clicker-image {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit: cover;
    cursor: pointer;
    border: 4px solid #ffffff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
    transition: transform 0.08s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    user-select: none;
    -webkit-user-drag: none;
}

.clicker-image:hover {
    transform: scale(1.03);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08);
}

.clicker-image:active {
    transform: scale(0.92);
}

.floating-number {
    position: absolute;
    font-size: 24px;
    font-weight: 800;
    color: #6d28d9;
    pointer-events: none;
    animation: float-up 0.8s ease-out forwards;
    text-shadow: 0 2px 4px rgba(255, 255, 255, 0.8);
    z-index: 100;
}

@keyframes float-up {
    0% {
        transform: translate(-50%, -50%) translateY(0);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) translateY(-70px);
        opacity: 0;
    }
}

body.dragging iframe {
    pointer-events: none;
}

.weather-panel {
    display: flex;
    flex-direction: column;
    height: 100%;
    border-radius: 12px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    color: #1e293b;
    flex: 1;
    min-height: 0;
    padding: 16px;
    box-sizing: border-box;
    gap: 16px;
}

.weather-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    padding-bottom: 12px;
}

.weather-select-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
}

.weather-select {
    background: rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 8px;
    padding: 6px 12px;
    color: #1e293b;
    font-size: 13px;
    outline: none;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.2s ease;
}

.weather-select:focus {
    border-color: rgba(96, 165, 250, 0.5);
    background: rgba(0, 0, 0, 0.06);
}

.weather-select option {
    background: #ffffff;
    color: #1e293b;
}

.weather-toggle-btn {
    background: rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 8px;
    color: #1e293b;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.weather-toggle-btn:hover {
    background: rgba(0, 0, 0, 0.08);
}

.weather-toggle-btn:active {
    transform: scale(0.95);
}

.weather-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(0, 0, 0, 0.03);
    border-radius: 12px;
    padding: 16px 20px;
    gap: 16px;
}

.weather-main-left {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.weather-city-name {
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
    letter-spacing: -0.3px;
}

.weather-condition {
    font-size: 13px;
    color: #475569;
    font-weight: 500;
}

.weather-temp {
    font-size: 40px;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -1px;
    line-height: 1;
    margin-top: 6px;
}

.weather-main-icon {
    font-size: 44px;
    color: #f59e0b;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.06));
    animation: weather-bounce 4s infinite ease-in-out;
}

@keyframes weather-bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}

.weather-details-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.weather-detail-card {
    background: rgba(255, 255, 255, 0.45);
    border: 1px solid rgba(0, 0, 0, 0.04);
    border-radius: 10px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    text-align: center;
}

.weather-detail-icon {
    font-size: 16px;
    color: #0284c7;
}

.weather-detail-label {
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #64748b;
    font-weight: 600;
}

.weather-detail-value {
    font-size: 12px;
    font-weight: 700;
    color: #0f172a;
}

.weather-forecast-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.weather-forecast-title {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #64748b;
    font-weight: 700;
}

.weather-forecast-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.weather-forecast-card {
    background: rgba(255, 255, 255, 0.35);
    border: 1px solid rgba(0, 0, 0, 0.03);
    border-radius: 10px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    text-align: center;
}

.weather-fore-day {
    font-size: 11px;
    font-weight: 600;
    color: #475569;
}

.weather-fore-icon {
    font-size: 18px;
}

.weather-fore-temp {
    font-size: 11px;
    font-weight: 700;
    color: #0f172a;
}
