/* Hello Kitty Temalı Pembe Tasarım */
:root {
    --primary-pink: #FF69B4;
    --light-pink: #FFB6C1;
    --dark-pink: #FF1493;
    --soft-pink: #FFE4E1;
    --white: #FFFFFF;
    --black: #000000;
    --gray-light: #F8F8F8;
    --gray-medium: #E0E0E0;
    --gray-dark: #888888;
    --success: #90EE90;
    --warning: #FFD700;
    --danger: #FF6B6B;
    --shadow: rgba(255, 105, 180, 0.2);
    --shadow-hover: rgba(255, 105, 180, 0.3);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Nunito', sans-serif;
    background: linear-gradient(135deg, #FFE4E1 0%, #FFB6C1 50%, #FF69B4 100%);
    min-height: 100vh;
    color: #333;
    line-height: 1.6;
}

body.dark-mode {
    background: linear-gradient(135deg, #2D1B3D 0%, #4A2C5A 50%, #6B3D7A 100%);
    color: #F8F8F8;
}

/* Giriş Ekranı */
.login-screen {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
    background: linear-gradient(135deg, #FFE4E1 0%, #FFB6C1 50%, #FF69B4 100%);
    position: relative;
    overflow: hidden;
}

.login-screen::before {
    content: '🐱';
    position: absolute;
    font-size: 200px;
    opacity: 0.1;
    top: -50px;
    right: -50px;
    animation: float 6s ease-in-out infinite;
}

.login-screen::after {
    content: '🎀';
    position: absolute;
    font-size: 150px;
    opacity: 0.1;
    bottom: -30px;
    left: -30px;
    animation: float 8s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

.login-container {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 30px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(255, 105, 180, 0.3);
    max-width: 450px;
    width: 100%;
    position: relative;
    z-index: 1;
    border: 3px solid var(--primary-pink);
}

body.dark-mode .login-container {
    background: rgba(45, 27, 61, 0.95);
    border-color: var(--light-pink);
}

.hello-kitty-header {
    text-align: center;
    margin-bottom: 30px;
}

.kitty-emoji {
    font-size: 80px;
    margin-bottom: 10px;
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.hello-kitty-header h1 {
    color: var(--primary-pink);
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 10px;
}

.hello-kitty-header .subtitle {
    color: var(--gray-dark);
    font-size: 16px;
}

body.dark-mode .hello-kitty-header .subtitle {
    color: var(--gray-medium);
}

.login-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
    border-bottom: 2px solid var(--gray-medium);
}

.tab-btn {
    flex: 1;
    padding: 12px;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    color: var(--gray-dark);
    transition: all 0.3s;
    font-family: 'Nunito', sans-serif;
}

.tab-btn.active {
    color: var(--primary-pink);
    border-bottom-color: var(--primary-pink);
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.auth-message {
    margin-top: 15px;
    padding: 12px;
    border-radius: 10px;
    text-align: center;
    font-weight: 600;
    display: none;
}

.auth-message.success {
    background: var(--success);
    color: #2d5016;
    display: block;
}

.auth-message.error {
    background: var(--danger);
    color: white;
    display: block;
}

/* Ana Uygulama */
.app-screen {
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 25px 30px;
    margin-bottom: 25px;
    box-shadow: 0 10px 30px var(--shadow);
    border: 2px solid var(--primary-pink);
}

body.dark-mode header {
    background: rgba(45, 27, 61, 0.95);
    border-color: var(--light-pink);
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

header h1 {
    color: var(--primary-pink);
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 5px;
}

header .subtitle {
    color: var(--gray-dark);
    font-size: 16px;
}

body.dark-mode header .subtitle {
    color: var(--gray-medium);
}

.header-actions {
    display: flex;
    gap: 10px;
}

.btn-icon {
    background: var(--primary-pink);
    border: none;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px var(--shadow);
    flex-shrink: 0;
}

/* Admin butonu - özel stil */
.header-actions .btn-icon:first-child {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%) !important;
    font-size: 22px !important;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4) !important;
    border: 2px solid #FF8C00 !important;
}

.header-actions .btn-icon:first-child:hover {
    background: linear-gradient(135deg, #FFA500 0%, #FF8C00 100%) !important;
    transform: translateY(-2px) scale(1.1) !important;
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.6) !important;
}

.btn-icon:hover {
    background: var(--dark-pink);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--shadow-hover);
}

/* İstatistikler */
.statistics-section {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 10px 30px var(--shadow);
    border: 2px solid var(--primary-pink);
}

body.dark-mode .statistics-section {
    background: rgba(45, 27, 61, 0.95);
    border-color: var(--light-pink);
}

.statistics-section h2 {
    color: var(--primary-pink);
    font-size: 24px;
    margin-bottom: 20px;
    font-weight: 700;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.stat-card {
    background: linear-gradient(135deg, var(--light-pink) 0%, var(--primary-pink) 100%);
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 5px 15px var(--shadow);
    transition: transform 0.3s;
    border: 2px solid var(--white);
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-value {
    font-size: 36px;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 8px;
}

.stat-label {
    font-size: 14px;
    color: var(--white);
    font-weight: 600;
    opacity: 0.9;
}

/* Filtreler */
.filters-section {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 10px 30px var(--shadow);
    border: 2px solid var(--primary-pink);
}

body.dark-mode .filters-section {
    background: rgba(45, 27, 61, 0.95);
    border-color: var(--light-pink);
}

.filters-section h2 {
    color: var(--primary-pink);
    font-size: 24px;
    margin-bottom: 20px;
    font-weight: 700;
}

.filters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.filter-group label {
    font-weight: 600;
    color: var(--primary-pink);
    font-size: 14px;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="datetime-local"],
select,
textarea {
    padding: 12px 15px;
    border: 2px solid var(--gray-medium);
    border-radius: 10px;
    font-size: 14px;
    font-family: 'Nunito', sans-serif;
    transition: all 0.3s;
    background: var(--white);
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary-pink);
    box-shadow: 0 0 0 3px var(--shadow);
}

body.dark-mode input,
body.dark-mode select,
body.dark-mode textarea {
    background: rgba(74, 44, 90, 0.5);
    border-color: var(--gray-dark);
    color: var(--white);
}

/* Form */
.task-form {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 10px 30px var(--shadow);
    border: 2px solid var(--primary-pink);
}

body.dark-mode .task-form {
    background: rgba(45, 27, 61, 0.95);
    border-color: var(--light-pink);
}

.task-form h2 {
    color: var(--primary-pink);
    font-size: 24px;
    margin-bottom: 20px;
    font-weight: 700;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin-bottom: 15px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-weight: 600;
    color: var(--primary-pink);
    font-size: 14px;
}

/* Butonlar */
.btn {
    padding: 12px 25px;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    font-family: 'Nunito', sans-serif;
    box-shadow: 0 4px 15px var(--shadow);
}

.btn-primary {
    background: var(--primary-pink);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--dark-pink);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--shadow-hover);
}

.btn-secondary {
    background: var(--gray-medium);
    color: var(--black);
}

.btn-secondary:hover {
    background: var(--gray-dark);
    color: var(--white);
}

.btn-large {
    padding: 15px 30px;
    font-size: 18px;
}

/* Görev Listesi */
.tasks-section {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 10px 30px var(--shadow);
    border: 2px solid var(--primary-pink);
}

body.dark-mode .tasks-section {
    background: rgba(45, 27, 61, 0.95);
    border-color: var(--light-pink);
}

.tasks-section h2 {
    color: var(--primary-pink);
    font-size: 24px;
    margin-bottom: 20px;
    font-weight: 700;
}

.tasks-list {
    display: grid;
    gap: 15px;
}

.task-item {
    background: linear-gradient(135deg, var(--soft-pink) 0%, var(--white) 100%);
    border-radius: 15px;
    padding: 20px;
    border-left: 5px solid var(--primary-pink);
    box-shadow: 0 3px 10px var(--shadow);
    transition: all 0.3s;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 15px;
}

body.dark-mode .task-item {
    background: linear-gradient(135deg, rgba(74, 44, 90, 0.5) 0%, rgba(45, 27, 61, 0.8) 100%);
    border-left-color: var(--light-pink);
}

.task-item:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 15px var(--shadow-hover);
}

.task-item.completed {
    opacity: 0.7;
    border-left-color: var(--success);
}

.task-content {
    flex: 1;
}

.task-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.task-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--black);
    flex: 1;
}

body.dark-mode .task-title {
    color: var(--white);
}

.task-item.completed .task-title {
    text-decoration: line-through;
}

.task-badges {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.badge {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.badge-category {
    background: var(--light-pink);
    color: var(--dark-pink);
}

.badge-priority-high {
    background: var(--danger);
    color: var(--white);
}

.badge-priority-medium {
    background: var(--warning);
    color: var(--black);
}

.badge-priority-low {
    background: var(--success);
    color: var(--black);
}

.badge-overdue {
    background: var(--danger);
    color: var(--white);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.task-description {
    color: var(--gray-dark);
    margin-bottom: 10px;
    font-size: 14px;
}

body.dark-mode .task-description {
    color: var(--gray-medium);
}

.task-meta {
    display: flex;
    gap: 15px;
    font-size: 12px;
    color: var(--gray-dark);
    flex-wrap: wrap;
}

body.dark-mode .task-meta {
    color: var(--gray-medium);
}

.task-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.btn-task {
    padding: 8px 12px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
    font-family: 'Nunito', sans-serif;
    font-weight: 600;
}

.btn-complete {
    background: var(--success);
    color: var(--white);
}

.btn-complete:hover {
    background: #7ACC7A;
}

.btn-edit {
    background: var(--warning);
    color: var(--black);
}

.btn-edit:hover {
    background: #FFC700;
}

.btn-delete {
    background: var(--danger);
    color: var(--white);
}

.btn-delete:hover {
    background: #FF5252;
}

.loading {
    text-align: center;
    padding: 40px;
    color: var(--gray-dark);
    font-size: 18px;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--gray-dark);
}

.empty-state::before {
    content: '🐱';
    font-size: 80px;
    display: block;
    margin-bottom: 20px;
}

body.dark-mode .empty-state {
    color: var(--gray-medium);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background: var(--white);
    margin: 5% auto;
    padding: 30px;
    border-radius: 20px;
    max-width: 600px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    border: 3px solid var(--primary-pink);
    animation: slideDown 0.3s;
    position: relative;
}

body.dark-mode .modal-content {
    background: rgba(45, 27, 61, 0.98);
    border-color: var(--light-pink);
}

@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.close-modal {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 30px;
    font-weight: bold;
    color: var(--primary-pink);
    cursor: pointer;
    transition: all 0.3s;
    line-height: 1;
}

.close-modal:hover {
    color: var(--dark-pink);
    transform: rotate(90deg);
}

.modal-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 20px;
}

/* Toast */
#toastContainer {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    background: var(--white);
    padding: 15px 20px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    border-left: 4px solid var(--primary-pink);
    min-width: 300px;
    animation: slideInRight 0.3s;
    font-weight: 600;
}

body.dark-mode .toast {
    background: rgba(45, 27, 61, 0.98);
    border-left-color: var(--light-pink);
}

@keyframes slideInRight {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.toast.success {
    border-left-color: var(--success);
}

.toast.error {
    border-left-color: var(--danger);
}

.toast.warning {
    border-left-color: var(--warning);
}

/* Shortcuts */
.shortcuts-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
}

.shortcut-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: var(--soft-pink);
    border-radius: 10px;
}

body.dark-mode .shortcut-item {
    background: rgba(74, 44, 90, 0.5);
}

.shortcut-item kbd {
    background: var(--white);
    padding: 5px 10px;
    border-radius: 5px;
    font-family: monospace;
    font-weight: 600;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    margin: 0 2px;
}

body.dark-mode .shortcut-item kbd {
    background: rgba(45, 27, 61, 0.8);
    color: var(--white);
}

/* Responsive */
@media (max-width: 768px) {
    .header-top {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .header-actions {
        width: 100%;
        flex-wrap: wrap;
        justify-content: flex-start;
    }
    
    .btn-icon {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .filters-grid {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .task-item {
        flex-direction: column;
    }
    
    .task-actions {
        width: 100%;
        justify-content: flex-end;
    }
    
    header h1 {
        font-size: 24px;
    }
}

/* Admin Sayfası */
.admin-screen {
    min-height: 100vh;
    padding: 20px;
    background: linear-gradient(135deg, #FFE4E1 0%, #FFB6C1 50%, #FF69B4 100%);
    position: relative;
    overflow: hidden;
}

body.dark-mode .admin-screen {
    background: linear-gradient(135deg, #2D1B3D 0%, #4A2C5A 50%, #6B3D7A 100%);
}

.admin-container {
    max-width: 1200px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 20px 60px rgba(255, 105, 180, 0.3);
    border: 3px solid var(--primary-pink);
}

body.dark-mode .admin-container {
    background: rgba(45, 27, 61, 0.95);
    border-color: var(--light-pink);
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--primary-pink);
}

.admin-header h1 {
    color: var(--primary-pink);
    font-size: 32px;
    font-weight: 800;
}

.admin-info {
    text-align: center;
    margin-bottom: 30px;
}

.admin-info h2 {
    color: var(--primary-pink);
    font-size: 24px;
    margin-bottom: 10px;
}

.admin-content {
    position: relative;
    min-height: 500px;
}

.admin-layout {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 30px;
    align-items: start;
}

.admin-tasks-section {
    min-width: 0;
}

.admin-character-section {
    position: sticky;
    top: 20px;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(5px);
    border-radius: 15px;
    padding: 20px;
    border: 2px solid var(--primary-pink);
    min-height: 600px;
}

body.dark-mode .admin-character-section {
    background: rgba(45, 27, 61, 0.5);
    border-color: var(--light-pink);
}

@media (max-width: 1200px) {
    .admin-layout {
        grid-template-columns: 1fr;
    }
    
    .admin-character-section {
        position: relative;
        top: 0;
    }
}

/* Pet Character */
.pet-character {
    position: absolute;
    width: 120px;
    height: 150px;
    cursor: grab;
    user-select: none;
    transition: transform 0.2s;
    z-index: 100;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

.pet-character:active {
    cursor: grabbing;
}

.pet-character.dragging {
    opacity: 0.8;
    transform: scale(1.1);
    z-index: 1000;
}

.pet-hair {
    display: none;
}

.pet-face {
    width: 80px;
    height: 80px;
    background: #87CEEB;
    border-radius: 50%;
    position: relative;
    margin: 0 auto;
    border: 3px solid #4169E1;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    z-index: 1;
}

.pet-eyes {
    position: absolute;
    top: 25px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
}

.pet-eye {
    width: 12px;
    height: 12px;
    background: #000;
    border-radius: 50%;
    animation: blink 3s infinite;
}

@keyframes blink {
    0%, 90%, 100% { transform: scaleY(1); }
    95% { transform: scaleY(0.1); }
}

.pet-mouth {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 10px;
    border: 2px solid #000;
    border-top: none;
    border-radius: 0 0 20px 20px;
    transition: all 0.3s;
}

.pet-character.happy .pet-mouth {
    width: 30px;
    height: 15px;
    border-radius: 0 0 30px 30px;
}

.pet-character.angry .pet-mouth {
    width: 25px;
    height: 8px;
    border-radius: 20px 20px 0 0;
    border-top: 2px solid #000;
    border-bottom: none;
    transform: translateX(-50%) rotate(180deg);
}

.pet-character.bored .pet-mouth {
    width: 25px;
    height: 2px;
    border-radius: 0;
}

.pet-body {
    width: 60px;
    height: 70px;
    background: #4169E1;
    border-radius: 30px 30px 20px 20px;
    margin: -10px auto 0;
    border: 2px solid #1E90FF;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.pet-arms {
    position: absolute;
    top: 90px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 40px;
}

.pet-arm {
    position: absolute;
    width: 15px;
    height: 40px;
    background: #87CEEB;
    border-radius: 10px;
    border: 2px solid #4169E1;
    transition: transform 0.3s;
}

.pet-arm.left-arm {
    left: 10px;
    transform-origin: top center;
}

.pet-arm.right-arm {
    right: 10px;
    transform-origin: top center;
}

.pet-character.hugging .pet-arm.left-arm {
    transform: rotate(-45deg);
}

.pet-character.hugging .pet-arm.right-arm {
    transform: rotate(45deg);
}

.pet-character.waving .pet-arm.right-arm {
    animation: wave 0.5s infinite;
}

@keyframes wave {
    0%, 100% { transform: rotate(0deg); }
    50% { transform: rotate(45deg); }
}

.pet-legs {
    position: absolute;
    top: 150px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 30px;
    display: flex;
    gap: 10px;
    justify-content: center;
}

.pet-leg {
    width: 12px;
    height: 30px;
    background: #87CEEB;
    border-radius: 6px;
    border: 2px solid #4169E1;
}

.pet-character.sitting .pet-legs {
    top: 140px;
}

.pet-character.sitting .pet-leg {
    height: 20px;
    border-radius: 6px 6px 0 0;
}

.pet-character.sleeping {
    transform: rotate(90deg) translate(-50%, -50%);
}

.pet-character.lying {
    animation: lyingDown 1.5s ease-in-out forwards !important;
}

.pet-character.lying .pet-face {
    animation: lyingFace 1.5s ease-in-out forwards;
}

.pet-character.lying .pet-body {
    animation: lyingBody 1.5s ease-in-out forwards;
}

.pet-character.lying .pet-arms {
    animation: lyingArms 1.5s ease-in-out forwards;
}

.pet-character.lying .pet-legs {
    animation: lyingLegs 1.5s ease-in-out forwards;
}

@keyframes lyingDown {
    0% { 
        transform: rotate(0deg) !important;
    }
    100% { 
        transform: rotate(90deg) !important;
    }
}

@keyframes lyingFace {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(-90deg);
    }
}

@keyframes lyingBody {
    0% {
        transform: rotate(0deg);
        border-radius: 30px 30px 20px 20px;
    }
    100% {
        transform: rotate(-90deg);
        border-radius: 20px 30px 30px 20px;
    }
}

@keyframes lyingArms {
    0% {
        transform: translateX(-50%) rotate(0deg);
    }
    50% {
        transform: translateX(-50%) rotate(-45deg);
    }
    100% {
        transform: translateX(-50%) rotate(-90deg);
    }
}

@keyframes lyingLegs {
    0% {
        transform: translateX(-50%) rotate(0deg);
    }
    100% {
        transform: translateX(-50%) rotate(-90deg);
    }
}

.pet-character.lying .pet-arm {
    position: absolute;
    width: 15px;
    height: 40px;
}

.pet-character.lying .pet-arm.left-arm {
    left: 5px;
    top: 0;
}

.pet-character.lying .pet-arm.right-arm {
    right: 5px;
    top: 0;
}

.pet-character.lying .pet-leg {
    width: 12px;
    height: 30px;
}

.pet-character.waving-hand {
    animation: waveBody 0.6s ease-in-out infinite !important;
}

.pet-character.waving-hand .pet-arm.right-arm {
    animation: waveHand 0.6s ease-in-out infinite !important;
    transform-origin: top center !important;
}

.pet-character.waving-hand .pet-body {
    animation: waveBodyBounce 0.6s ease-in-out infinite;
}

@keyframes waveHand {
    0% { 
        transform: rotate(0deg) translateY(0);
    }
    25% { 
        transform: rotate(-45deg) translateY(-8px) translateX(-5px);
    }
    50% { 
        transform: rotate(45deg) translateY(-12px) translateX(5px);
    }
    75% { 
        transform: rotate(-30deg) translateY(-6px) translateX(-3px);
    }
    100% { 
        transform: rotate(0deg) translateY(0);
    }
}

@keyframes waveBody {
    0%, 100% {
        transform: translateX(0);
    }
    50% {
        transform: translateX(3px);
    }
}

@keyframes waveBodyBounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-2px);
    }
}

.pet-character.sleeping .pet-eyes {
    display: none;
}

.pet-character.sleeping .pet-mouth {
    display: none;
}

.pet-character.sleeping::before {
    content: 'z';
    position: absolute;
    top: 20px;
    right: -30px;
    font-size: 24px;
    color: var(--primary-pink);
    animation: snore 1s infinite;
}

@keyframes snore {
    0%, 100% { opacity: 0.3; transform: translateY(0); }
    50% { opacity: 1; transform: translateY(-10px); }
}

.pet-hearts {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    pointer-events: none;
}

.pet-heart {
    position: absolute;
    font-size: 20px;
    animation: floatHeart 1s ease-out forwards;
    opacity: 0;
}

@keyframes floatHeart {
    0% {
        opacity: 1;
        transform: translateY(0) scale(0.5);
    }
    100% {
        opacity: 0;
        transform: translateY(-50px) scale(1.5);
    }
}

.pet-name {
    position: absolute;
    top: -50px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 16px;
    font-weight: 700;
    color: #4169E1;
    background: rgba(255, 255, 255, 0.9);
    padding: 4px 12px;
    border-radius: 15px;
    border: 2px solid #4169E1;
    white-space: nowrap;
    z-index: 10;
}

body.dark-mode .pet-name {
    background: rgba(45, 27, 61, 0.9);
    color: #87CEEB;
    border-color: #87CEEB;
}

.pet-status {
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 32px;
    animation: bounce 0.5s;
}

.pet-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 200px;
    flex-wrap: wrap;
}

.pet-stats {
    margin-top: 30px;
    padding: 20px;
    background: var(--soft-pink);
    border-radius: 15px;
}

body.dark-mode .pet-stats {
    background: rgba(74, 44, 90, 0.5);
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.stat-item:last-child {
    margin-bottom: 0;
}

.stat-label {
    font-weight: 600;
    color: var(--primary-pink);
    min-width: 80px;
}

.stat-bar {
    flex: 1;
    height: 20px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 10px;
    overflow: hidden;
    border: 2px solid var(--primary-pink);
}

body.dark-mode .stat-bar {
    background: rgba(45, 27, 61, 0.5);
}

.stat-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--light-pink), var(--primary-pink));
    transition: width 0.5s ease;
    border-radius: 8px;
}

.stat-item span:last-child {
    font-weight: 700;
    color: var(--primary-pink);
    min-width: 50px;
    text-align: right;
}

/* Pet Animations */
@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(-10px); }
}

.pet-character.jumping {
    animation: jump 0.5s ease;
}

@keyframes jump {
    0%, 100% { transform: translate(-50%, -50%) translateY(0); }
    50% { transform: translate(-50%, -50%) translateY(-30px); }
}

.pet-character.dancing {
    animation: dance 1s infinite;
}

@keyframes dance {
    0%, 100% { transform: translate(-50%, -50%) rotate(0deg); }
    25% { transform: translate(-50%, -50%) rotate(-10deg); }
    75% { transform: translate(-50%, -50%) rotate(10deg); }
}

/* Responsive Admin */
@media (max-width: 768px) {
    .pet-character {
        width: 100px;
        height: 130px;
    }
    
    .pet-face {
        width: 70px;
        height: 70px;
    }
    
    .pet-actions {
        margin-top: 180px;
    }
}

