@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@300;400;600;700&family=Pacifico&display=swap');

:root {
    --primary-color: #d9657b; /* muted warm rose */
    --primary-hover: #c45268;
    --secondary-color: #e5d1d6; /* muted light warm gray/rose */
    --bg-color: #f7f3f4; /* softer, less bright pink background */
    --card-bg: rgba(255, 255, 255, 0.85);
    --text-color: #4f4345;
    --accent-color: #a83253; /* deep romantic red */
    --shadow-soft: 0 10px 30px rgba(168, 50, 83, 0.08);
    --shadow-hover: 0 15px 35px rgba(168, 50, 83, 0.15);
    --border-radius-lg: 24px;
    --border-radius-md: 16px;
    --border-radius-sm: 8px;
    --transition-speed: 0.3s;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Nunito', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    background-image: radial-gradient(var(--secondary-color) 1px, transparent 1px);
    background-size: 25px 25px;
    background-attachment: fixed;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 20px;
    flex: 1;
}

/* Glassmorphism Header */
header {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    padding: 20px 30px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-soft);
    margin-bottom: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    border: 1px solid rgba(255, 255, 255, 0.8);
    position: sticky;
    top: 20px;
    z-index: 100;
}

header div strong {
    font-family: 'Pacifico', cursive;
    font-size: 2.2em !important;
    color: var(--primary-color) !important;
    text-shadow: 2px 2px 4px rgba(255, 107, 139, 0.15);
}

header nav {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}

/* Enhanced Buttons */
button, .btn {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 700;
    text-decoration: none;
    transition: all var(--transition-speed) ease;
    box-shadow: 0 4px 15px rgba(255, 107, 139, 0.3);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: 'Nunito', sans-serif;
    letter-spacing: 0.5px;
}

button:hover, .btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(255, 107, 139, 0.4);
    background: linear-gradient(135deg, var(--primary-hover), var(--accent-color));
}

.btn-secondary {
    background: var(--secondary-color);
    color: var(--accent-color);
    box-shadow: none;
}
.btn-secondary:hover {
    background: #ffc2d1;
    color: var(--accent-color);
    box-shadow: 0 4px 15px rgba(255, 194, 209, 0.4);
}

.btn-danger {
    background: linear-gradient(135deg, #ff758c, #ff7eb3);
}
.btn-danger:hover {
    background: linear-gradient(135deg, #ff4d6d, #ff758c);
}

/* Typography */
h1, h2, h3 {
    color: var(--accent-color);
    margin-bottom: 25px;
    font-weight: 700;
}

h2 {
    font-family: 'Pacifico', cursive;
    font-size: 2.8em;
    text-align: center;
    margin-bottom: 35px;
    text-shadow: 2px 2px 4px rgba(216, 27, 96, 0.1);
}

/* Modern Inputs */
input[type="text"], input[type="password"], input[type="date"], input[type="number"], textarea, select {
    width: 100%;
    padding: 15px 20px;
    margin-bottom: 20px;
    border: 2px solid transparent;
    border-radius: var(--border-radius-md);
    font-size: 16px;
    font-family: 'Nunito', sans-serif;
    transition: all var(--transition-speed);
    background-color: rgba(255, 255, 255, 0.9);
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.02);
    color: var(--text-color);
    appearance: none; /* Removed default styling for cross-browser consistency */
    -webkit-appearance: none;
    -moz-appearance: none;
}

select {
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23d9657b%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem top 50%;
    background-size: 0.85rem auto;
    padding-right: 40px;
    cursor: pointer;
}

input[type="date"]::-webkit-calendar-picker-indicator {
    cursor: pointer;
    filter: invert(0.4) sepia(0.6) saturate(3) hue-rotate(300deg) brightness(0.8);
}

input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: var(--primary-color);
    background-color: #fff;
    box-shadow: 0 0 0 4px rgba(168, 50, 83, 0.15);
}

/* Lightbox Modal */
.lightbox {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.lightbox.active {
    display: flex;
    animation: fadeIn 0.3s ease-out;
}

.lightbox-content {
    max-width: 90%;
    max-height: 80vh;
    border-radius: var(--border-radius-sm);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    object-fit: contain;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
}

.lightbox-close:hover {
    color: var(--primary-color);
}

.lightbox-download {
    margin-top: 20px;
    padding: 10px 25px;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 30px;
    font-weight: bold;
    transition: all 0.3s;
    font-family: 'Nunito', sans-serif;
}

.lightbox-download:hover {
    background: var(--accent-color);
    transform: scale(1.05);
}

/* Bulk Edit Selectable Card */
.selectable-card {
    position: relative;
    cursor: pointer;
    border: 3px solid transparent;
    transition: all 0.3s ease;
}

.selectable-card:hover {
    border-color: var(--secondary-color);
}

.selectable-card.selected {
    border-color: var(--primary-color);
    box-shadow: 0 0 15px rgba(217, 101, 123, 0.4);
    transform: scale(1.02);
}

.bulk-checkbox {
    position: absolute;
    top: 15px;
    left: 15px;
    width: 25px;
    height: 25px;
    cursor: pointer;
    z-index: 10;
    accent-color: var(--primary-color);
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    border-radius: 4px;
}


/* Sections - Glassmorphism */
section {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 50px;
    border-radius: var(--border-radius-lg);
    margin-bottom: 50px;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(255, 255, 255, 0.6);
}

/* Countdown */
.countdown {
    text-align: center;
    font-size: 2.5em;
    font-weight: 700;
    color: var(--primary-color);
    background: linear-gradient(135deg, #fff0f3, rgba(255,255,255,0.9));
    padding: 40px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-soft);
    border: 2px dashed var(--primary-color);
    font-family: 'Pacifico', cursive;
    letter-spacing: 2px;
}

/* Responsive Grid */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

/* Stunning Cards */
.card {
    background: #ffffff;
    padding: 20px;
    border-radius: var(--border-radius-lg);
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.04);
    border: 1px solid rgba(255, 214, 224, 0.3);
    transition: all var(--transition-speed) ease;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-color);
}

.media-img {
    border-radius: var(--border-radius-md);
    object-fit: cover;
    height: 280px;
    width: 100%;
    margin-bottom: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.06);
    transition: transform 0.5s ease;
}

.card:hover .media-img {
    transform: scale(1.05);
}

.card h3 {
    margin-top: 15px;
    margin-bottom: 10px;
    font-family: 'Nunito', sans-serif;
}

.card a {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 700;
    font-size: 1.3em;
    transition: color 0.3s;
}

.card a:hover {
    color: var(--primary-color);
}

.card-actions {
    display: flex;
    gap: 15px;
    margin-top: auto;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    background: var(--bg-color);
    padding: 15px;
    border-radius: var(--border-radius-md);
    border: 1px dashed rgba(255, 107, 139, 0.2);
}

.card-actions form {
    margin: 0;
}

/* Interactive Icons */
.icon-btn {
    background: white;
    border: 1px solid var(--secondary-color);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    font-size: 1.5em;
    padding: 0;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.icon-btn:hover {
    background: var(--secondary-color);
    transform: scale(1.2) rotate(10deg);
    box-shadow: 0 6px 15px rgba(255, 107, 139, 0.3);
}

/* Login specific */
.login-container {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(15px);
    padding: 50px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-hover);
    text-align: center;
    width: 100%;
    max-width: 450px;
    border: 1px solid rgba(255, 255, 255, 0.8);
    position: relative;
    z-index: 10;
}

.login-container h2 {
    font-size: 3em;
    margin-bottom: 20px;
}

/* Notes Section - Sticky Note effect */
.notes-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.note-card {
    background: linear-gradient(135deg, #fff9c4, #fff59d);
    padding: 30px;
    border-radius: 2px 20px 2px 20px;
    box-shadow: 3px 5px 15px rgba(0,0,0,0.08);
    position: relative;
    font-size: 1.15em;
    transition: transform var(--transition-speed);
    color: #4a4a4a;
}

.note-card::before {
    content: "";
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 15px;
    background: rgba(255, 107, 139, 0.4);
    border-radius: 2px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.note-card:hover {
    transform: translateY(-5px) rotate(1deg);
    box-shadow: 5px 8px 20px rgba(0,0,0,0.12);
}

.note-card p {
    white-space: pre-wrap;
    margin-bottom: 20px;
    font-family: 'Nunito', sans-serif;
    font-weight: 600;
}

.note-card .author {
    font-size: 0.95em;
    color: #666;
    text-align: right;
    font-style: italic;
    font-weight: 700;
    border-top: 1px dashed rgba(0,0,0,0.1);
    padding-top: 10px;
}

.note-card .delete-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255, 255, 255, 0.6);
    border: none;
    color: #ff4d6d;
    cursor: pointer;
    font-size: 1em;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: all 0.2s;
}

.note-card .delete-btn:hover {
    background: #ff4d6d;
    color: white;
    transform: scale(1.15);
}

.note-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 45px;
    background: var(--card-bg);
    padding: 40px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--secondary-color);
}

.note-form textarea {
    resize: vertical;
    min-height: 150px;
    border: 2px dashed var(--secondary-color);
    background: #fff;
}

.note-form button {
    align-self: flex-end;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

section {
    animation: fadeIn 0.6s ease-out forwards;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: var(--bg-color);
}
::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--accent-color);
}

/* Responsive Design Overrides */
@media (max-width: 900px) {
    header {
        position: relative;
        top: 0;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    header {
        flex-direction: column;
        text-align: center;
        padding: 25px 20px;
        gap: 15px;
    }
    
    header nav {
        justify-content: center;
        width: 100%;
        gap: 10px;
    }
    
    header nav a {
        flex: 1 1 auto;
        text-align: center;
        padding: 10px 15px;
        font-size: 0.95em;
    }
    
    section {
        padding: 30px 20px;
        margin-bottom: 30px;
    }
    
    h2 {
        font-size: 2.2em;
    }
    
    .countdown {
        font-size: 1.8em;
        padding: 25px 15px;
    }
    
    .card-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    .card-actions form {
        width: 100%;
        display: flex;
        justify-content: center;
    }
    
    .card-actions select {
        width: auto;
        flex: 1;
    }
    
    .grid-3 {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
    }
}

@media (max-width: 480px) {
    h2 {
        font-size: 1.8em;
    }
    
    .countdown {
        font-size: 1.5em;
    }
    
    .media-img {
        height: 220px;
    }
    
    .login-container {
        padding: 30px 20px;
    }
}
