body {
    background: black;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    touch-action: none;
}

/* Home Screen */
.home-screen {
    width: 100%;
    max-width: 100%;
    height: 750px;
    max-height: 100vh;
    background: url('media/images/background.jpg') no-repeat center center/cover;
    border-radius: 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 10px;
}

/* Tab and Content Styling (for settings.html) */
.tab-container {
    flex-grow: 1;
    overflow-y: auto;
}

.tabs {
    display: flex;
    justify-content: space-around;
    margin-bottom: 15px;
}

.tab-button {
    background: none;
    border: none;
    color: #fff;
    font-size: 1rem;
    padding: 10px;
    cursor: pointer;
    transition: color 0.3s, text-shadow 0.3s;
    text-shadow: 0 0 5px #fff, 0 0 10px #fff;
}

.tab-button.active {
    color: #ff0;
    text-shadow: 0 0 15px #ff0, 0 0 25px #ff0;
}

.tab-button:hover {
    color: #ff0;
    text-shadow: 0 0 15px #ff0, 0 0 25px #ff0;
}

.tab-content {
    display: none;
    padding: 10px;
}

.tab-content.active {
    display: block;
}

/* Input Group Styling (Enhanced for Settings) */
.input-group {
    margin-bottom: 15px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.input-group label {
    font-size: 0.9rem;
    color: #fff;
    text-shadow: 0 0 5px #fff;
}

.input-group input,
.input-group textarea,
.input-group file {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid #fff;
    border-radius: 10px;
    padding: 8px;
    color: #fff;
    font-size: 0.9rem;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
    transition: box-shadow 0.3s;
}

.input-group input[type="file"] {
    padding: 5px;
}

.input-group input:focus,
.input-group textarea:focus,
.input-group file:focus {
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
    outline: none;
}

.input-group button {
    background: #fff;
    border: none;
    border-radius: 10px;
    padding: 8px 15px;
    color: #000;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.input-group button:hover {
    background: #ff0;
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
}

.input-group button:active {
    transform: scale(0.95);
}

a {
    color: #fff;
    text-decoration: none;
    text-align: center;
    margin-top: 10px;
    text-shadow: 0 0 5px #fff;
}

/* Music Player Widget (iPod-Inspired Design) */
.music-player {
    width: 95%;
    background: rgba(194, 190, 190, 0.61);
    border-radius: 20px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 10px;
    margin-top: 0px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

/* Album Art Styling */
.album-art {
    width: 30%;
    max-width: 100px;
    margin-right: 10px;
}

.album-art img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

/* Content wrapper for everything except album art */
.content-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Song Information Styling */
.song-info {
    text-align: center;
    color: #fff;
    margin-bottom: 5px;
}

.song-info p {
    margin: 2px 0;
    font-size: 1rem;
}

/* Progress Bar Styling */
.progress-bar {
    width: 100%;
    height: 5px;
    background: #444;
    border-radius: 5px;
    margin: 5px 0;
}

.progress {
    height: 100%;
    width: 20%;
    background: #fff;
    border-radius: 5px;
}

.time-stamps {
    display: flex;
    justify-content: space-between;
    width: 100%;
    font-size: 0.8em;
    color: #ddd;
    margin-bottom: 5px;
}

/* Controls Styling (iPod-Inspired Circular Buttons) */
.controls {
    display: flex;
    justify-content: space-around;
    width: 100%;
    margin-top: 5px;
}

.controls button {
    background: #ececec70;
    border: 2px solid #fff;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 1.5em;
    color: #fff;
    cursor: pointer;
    padding: 0 5px;
    transition: transform 0.2s, background 0.2s;
}

.controls button:hover {
    transform: scale(1.1);
    background: #a50000;
}

.controls button:active {
    transform: scale(0.95);
}

/* Calendar Widget Styling */
.calendar-widget {
    width: 90%;
    max-width: 350px;
    height: 175px;
    background: rgba(240, 186, 186, 0.329);
    color: white;
    border-radius: 10px;
    padding: 10px;
    text-align: center;
    margin: 10px auto;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

.current-date {
    width: 40%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    text-align: left;
}

.current-date p {
    font-size: 1em;
    font-weight: bold;
    margin: 2px 0;
}

.calendar {
    width: 55%;
    display: flex;
    flex-direction: column;
}

.month {
    font-size: 1em;
    font-weight: bold;
    margin-bottom: 2px;
}

.weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    font-size: 0.6em;
    font-weight: bold;
    color: #aaa;
    margin-bottom: 2px;
}

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

.days div {
    padding: 4px;
    text-align: center;
    border-radius: 3px;
    cursor: pointer;
    font-size: 0.7em;
}

.days div.today {
    background-color: white;
    color: black;
    font-weight: bold;
}

/* App Grid */
.app-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    text-align: center;
}

.app {
    width: 70px;
    height: 70px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.app img {
    width: 70px;
    height: 70px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

/* Dock */
.dock {
    display: flex;
    justify-content: space-around;
    background: rgba(255, 255, 255, 0.2);
    padding: 10px;
    border-radius: 15px;
    margin-bottom: 50px;
}

/* Notes Feed Styling (for notes.html) */
.home-screen.notes {
    background: #1a1a1a;
}

.note-feed {
    flex-grow: 1;
    overflow-y: auto;
    padding: 10px;
}

.note-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 15px;
    margin-bottom: 15px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s;
}

.note-card.blue {
    background: rgba(65, 105, 225, 0.7);
}

.note-card.red {
    background: rgba(255, 64, 64, 0.7);
}

.note-card.purple {
    background: rgba(75, 0, 130, 0.7);
}

.note-card:hover {
    transform: scale(1.02);
}

.note-card p {
    margin: 0 0 10px;
    font-size: 1rem;
    color: #fff;
}

.note-card small {
    color: #ddd;
    font-size: 0.8rem;
}

.refresh-icon {
    font-size: 1.2rem;
    color: #fff;
    cursor: default;
    float: right;
}

/* Dynamic Background for index.html */
body.dynamic-background {
    transition: background-image 0.5s ease, background-color 0.5s ease;
}

/* File Upload Styling (for settings.html) */
.file-input-label {
    display: inline-block;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid #fff;
    border-radius: 10px;
    padding: 8px 15px;
    color: #fff;
    cursor: pointer;
    font-size: 0.9rem;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
    transition: box-shadow 0.3s;
}

.file-input-label:hover {
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
}

.file-input {
    display: none; /* Hide the actual file input */
}

/* Mobile Optimization */
@media (max-width: 400px) {
    .home-screen {
        max-width: 320px;
        padding: 5px;
    }
    .music-player, .calendar-widget, .app-grid, .dock {
        width: 95%;
    }
    .controls button {
        width: 30px;
        height: 30px;
        font-size: 1.2rem;
    }
    .album-art {
        max-width: 80px;
    }
    .song-info p {
        font-size: 0.9rem;
    }
    .time-stamps {
        font-size: 0.7rem;
    }
    .app {
        width: 60px;
        height: 60px;
    }
    .app img {
        width: 60px;
        height: 60px;
    }
    .input-group input[type="file"] {
        font-size: 0.8rem;
    }
}

/* Parallax Background */
body {
    background-attachment: fixed;
    transition: background-image 0.5s ease;
}