/* --- GENERAL --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #f8c8dc;
    font-family: 'Poppins', sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

/* --- LOGIN --- */
.login-container {
    text-align: center;
    width: 100%;
    position: absolute;
}

.password-content {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    text-align: center;
    max-width: 400px;
    width: 90%;
    margin: auto;
    animation: bounceIn 1s forwards;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }

    50% {
        opacity: 1;
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

h2 {
    font-family: 'Dancing Script', cursive;
    color: #d63384;
    font-size: 2.5rem;
}

input,
textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid #f0f0f0;
    border-radius: 10px;
    font-size: 1rem;
    outline: none;
    transition: 0.3s;
}

input:focus,
textarea:focus {
    border-color: #d63384;
}

.btn {
    background-color: #d63384;
    color: white;
    padding: 12px 25px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-size: 1rem;
    transition: transform 0.2s;
}

.btn:hover {
    transform: scale(1.05);
    background-color: #c2185b;
}

.error-msg {
    color: red;
    font-size: 0.9rem;
    display: none;
}

/* --- MAIN VIEW (USER) --- */
.main-container {
    display: none;
    width: 90%;
    max-width: 600px;
    height: 90vh;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    padding: 20px;
    flex-direction: column;
    position: relative;
}

.nav {
    display: flex;
    justify-content: space-around;
    margin-bottom: 20px;
    background: white;
    padding: 10px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.nav-item {
    cursor: pointer;
    color: #888;
    font-size: 0.9rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: 0.3s;
}

.nav-item.active {
    color: #d63384;
    font-weight: 600;
}

.content-section {
    display: none;
    flex-grow: 1;
    overflow-y: auto;
    padding: 10px;
}

.content-section.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Dynamic Content Styles */
.letter-card {
    background: #fff0f5;
    padding: 20px;
    border-radius: 15px;
    border: 1px dashed #d63384;
    text-align: center;
    cursor: pointer;
}

.letter-text {
    display: none;
    text-align: left;
    margin-top: 15px;
    font-size: 0.95rem;
    line-height: 1.6;
    color: #555;
    white-space: pre-wrap;
}

.song-row {
    display: flex;
    align-items: center;
    background: #f9f9f9;
    margin-bottom: 10px;
    padding: 10px;
    border-radius: 10px;
    cursor: pointer;
    transition: 0.2s;
}

.song-row:hover {
    background: #f0f0f0;
}

.song-icon {
    background: #d63384;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 15px;
}

.playing .song-icon {
    animation: pulse 1s infinite;
    background: #ff4081;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
    }
}

.note {
    background: #fff;
    padding: 15px;
    border-left: 5px solid #d63384;
    margin-bottom: 10px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.gallery-grid img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    object-fit: cover;
    height: 150px;
}

/* --- ADMIN PANEL --- */
.admin-container {
    display: none;
    width: 90%;
    max-width: 800px;
    height: 90vh;
    background: white;
    border-radius: 20px;
    padding: 20px;
    flex-direction: column;
    overflow-y: auto;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 10px;
}

.admin-section {
    margin-bottom: 30px;
    background: #fffbfd;
    padding: 15px;
    border-radius: 10px;
    border: 1px solid #fce4ec;
}

.admin-section h3 {
    margin-bottom: 10px;
    color: #c2185b;
}

.form-group {
    margin-bottom: 10px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    font-size: 0.9rem;
}

.delete-btn {
    background: #ff4d4d;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
    float: right;
}

.list-item {
    background: white;
    padding: 8px;
    margin-bottom: 5px;
    border-radius: 5px;
    border: 1px solid #eee;
    overflow: hidden;
}