.author-sign {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 14px;
    color: #ff69b4;
    font-style: italic;
    font-weight: 500;
    background-color: rgba(255, 255, 255, 0.7);
    padding: 5px 12px;
    border-radius: 15px;
    box-shadow: 0 2px 6px rgba(255, 105, 180, 0.2);
    transition: transform 0.3s ease;
    z-index: 10;
}

.author-sign:hover {
    transform: scale(1.05);
    background-color: #fff0f5;
}

.author-sign a {
    color: inherit;
    text-decoration: none;
}

.author-sign a:hover {
    text-decoration: underline;
}

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

body {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 50%, #fecfef 100%);
    min-height: 100vh;
    padding: 15px;
    color: #333;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 20px 40px rgba(255, 182, 193, 0.3);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 192, 203, 0.3);
    width: 100%;
}

.header {
    text-align: center;
    margin-bottom: 25px;
    position: relative;
    overflow: hidden;
    padding-top: 25px;
}

.header h1 {
    font-size: clamp(2em, 5vw, 3em);
    background: linear-gradient(45deg, #ff69b4, #ff1493, #dc143c, #ff69b4);
    background-size: 400% 400%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientShift 3s ease-in-out infinite;
    margin-bottom: 10px;
    line-height: 1.2;
}

.header p {
    font-size: clamp(14px, 2.5vw, 16px);
    color: #ff1493;
    margin-bottom: 10px;
}

@keyframes gradientShift {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

.main-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    align-items: start;
}

.todo-section,
.calendar-section {
    background: rgb(254, 241, 241);
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    width: 100%;
    min-width: 0;
}

.todo-section h2,
.calendar-section h2 {
    color: #ff1493;
    margin-bottom: 15px;
    font-size: clamp(1.3em, 3vw, 1.8em);
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.todo-input {
    display: flex;
    gap: 8px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.todo-input input {
    flex: 1;
    min-width: 200px;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 25px;
    font-size: clamp(14px, 2vw, 16px);
    transition: all 0.3s ease;
}

.todo-input input:focus {
    outline: none;
    border-color: #ff69b4;
    transform: scale(1.02);
}

.add-btn {
    background: linear-gradient(45deg, #ff69b4, #ff1493);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-size: clamp(14px, 2vw, 16px);
    transition: all 0.3s ease;
    white-space: nowrap;
}

.add-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.todo-list {
    max-height: 350px;
    overflow-y: auto;
    margin-bottom: 15px;
}

.todo-item {
    background: white;
    margin-bottom: 8px;
    padding: 12px;
    border-radius: 10px;
    border-left: 4px solid #ff69b4;
    box-shadow: 0 2px 10px rgba(255, 105, 180, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
    animation: slideIn 0.5s ease;
    flex-wrap: wrap;
    gap: 10px;
}

.todo-item:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 20px rgba(255, 105, 180, 0.3);
}

.todo-item.completed {
    opacity: 0.7;
    text-decoration: line-through;
    border-left-color: #ffc0cb;
}

.todo-item span {
    flex: 1;
    word-break: break-word;
    min-width: 0;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.todo-actions {
    display: flex;
    gap: 5px;
    flex-shrink: 0;
}

.todo-actions button {
    border: none;
    padding: 6px 10px;
    border-radius: 20px;
    cursor: pointer;
    font-size: clamp(10px, 1.5vw, 12px);
    transition: all 0.3s ease;
}

.complete-btn {
    background: #ff69b4;
    color: white;
}

.delete-btn {
    background: #ff1493;
    color: white;
}

.complete-btn:hover,
.delete-btn:hover {
    transform: scale(1.1);
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.nav-btn {
    background: linear-gradient(45deg, #ff69b4, #ff1493);
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s ease;
    min-width: 40px;
    height: 40px;
}

.nav-btn:hover {
    transform: scale(1.1) rotate(360deg);
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
    margin-bottom: 15px;
}

.calendar-day {
    aspect-ratio: 1;
    border: 2px solid #ffc0cb;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    background: white;
    font-size: clamp(10px, 2vw, 14px);
    min-height: 35px;
}

.calendar-day:hover {
    transform: scale(1.05);
    background: linear-gradient(45deg, #ff69b4, #ff1493);
    color: white;
}

.calendar-day.selected {
    background: linear-gradient(45deg, #ff1493, #dc143c);
    color: white;
    animation: pulse 1s infinite;
}

.calendar-day.has-task {
    background: linear-gradient(45deg, #ff69b4, #ff1493);
    color: white;
}

.calendar-day.has-task::after {
    content: '💖';
    position: absolute;
    top: -8px;
    right: -4px;
    font-size: clamp(12px, 2vw, 20px);
    animation: bounce 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-3px);
    }
}

.day-header {
    font-weight: bold;
    color: #ff1493;
    background: linear-gradient(45deg, #ffc0cb, #ffb6c1);
    border-radius: 6px;
    padding: 6px 4px;
    font-size: clamp(10px, 1.8vw, 12px);
    text-align: center;
}

.stats {
    display: flex;
    justify-content: space-around;
    gap: 10px;
    margin-top: 15px;
    text-align: center;
    flex-wrap: wrap;
}

.stat {
    background: linear-gradient(45deg, #ff69b4, #ff1493);
    color: white;
    padding: 12px 8px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(255, 105, 180, 0.3);
    transition: all 0.3s ease;
    flex: 1;
    min-width: 70px;
}

.stat:hover {
    transform: translateY(-5px);
}

.stat h3 {
    font-size: clamp(1.2em, 3vw, 2em);
    margin-bottom: 5px;
}

.stat p {
    font-size: clamp(10px, 1.5vw, 12px);
}

.floating-particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(255, 105, 180, 0.8);
    border-radius: 50%;
    animation: float 6s infinite linear;
}


.calendar-day.today {
    background-color: #ff47a9;
    border-radius: 15%;
    font-weight: bold;
    color: white;
}

.calendar-day.disabled-day {
    color: #aaa;
    cursor: not-allowed;
}

@keyframes float {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        transform: translateY(-100vh) rotate(360deg);
        opacity: 0;
    }
}

/* Responsive breakpoints */
@media (max-width: 1024px) {
    .container {
        padding: 18px;
    }

    .main-content {
        gap: 18px;
    }
}

@media (max-width: 768px) {
    body {
        padding: 10px;
    }

    .container {
        padding: 15px;
        border-radius: 15px;
    }

    .main-content {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .header {
        margin-bottom: 20px;
        padding-top: 30px;
    }

    .author-sign {
        position: static;
        display: inline-block;
        margin-top: 10px;
        font-size: 12px;
        padding: 4px 10px;
    }

    .todo-input {
        flex-direction: column;
        gap: 10px;
    }

    .todo-input input {
        min-width: 100%;
    }

    .add-btn {
        width: 100%;
        padding: 14px;
    }

    .todo-section,
    .calendar-section {
        padding: 15px;
    }

    .calendar-grid {
        gap: 3px;
    }

    .calendar-day {
        min-height: 32px;
        border-radius: 6px;
    }

    .stats {
        gap: 8px;
    }

    .stat {
        padding: 10px 6px;
        min-width: 60px;
    }

    .todo-item {
        padding: 10px;
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .todo-actions {
        align-self: flex-end;
    }
}

@media (max-width: 480px) {
    body {
        padding: 8px;
    }

    .container {
        padding: 12px;
        border-radius: 12px;
    }

    .header {
        padding-top: 35px;
    }

    .todo-section,
    .calendar-section {
        padding: 12px;
    }

    .calendar-day {
        min-height: 28px;
        font-size: 10px;
    }

    .day-header {
        padding: 4px 2px;
        font-size: 9px;
    }

    .calendar-day.has-task::after {
        font-size: 12px;
        top: -6px;
        right: -3px;
    }

    .nav-btn {
        min-width: 35px;
        height: 35px;
        font-size: 14px;
        padding: 6px 10px;
    }

    .todo-list {
        max-height: 250px;
    }
}

@media (max-width: 360px) {
    .container {
        padding: 10px;
    }

    .todo-section,
    .calendar-section {
        padding: 10px;
    }

    .calendar-day {
        min-height: 25px;
        font-size: 9px;
    }

    .day-header {
        font-size: 8px;
        padding: 3px 1px;
    }

    .stat h3 {
        font-size: 1.2em;
    }

    .stat p {
        font-size: 9px;
    }
}