
body { 
    font-family: 'Comfortaa', 'Comic Sans MS', cursive, sans-serif; 
    background-color: #fff0f5; background-image: url('images/bg.jpg'); background-size: cover; background-position: center; background-attachment: fixed; color: #5a3e36; display: flex; flex-direction: column; min-height: 100vh; cursor: url('https://cur.cursors-4u.net/cursors/chn-3/chn295.cur'), auto; 
}

header h1, .banner h2, h2.section-title, .card h3, .form-card h2, .empty-state h3, .modal-content h3 {
    font-family: 'Pacifico', cursive;
}

.banner-wrapper {
    padding: 40px 20px 0 20px;
    display: flex;
    justify-content: center;
}

.banner {
    text-align: center;
    padding: 40px 60px;
    background: rgba(255, 255, 255, 0.7); 
    border: 3px solid #ffb6c1;
    border-radius: 30px;
    box-shadow: 0 10px 30px rgba(255, 182, 193, 0.4);
    backdrop-filter: blur(5px); 
    position: relative;
    max-width: 800px;
    width: 100%;
    margin-bottom: 20px;
}

.banner h2 { 
    font-size: 48px; 
    color: #d87093; 
    text-shadow: 2px 2px 0px #fff, 0 0 15px rgba(216, 112, 147, 0.3); 
    margin-bottom: 15px; 
    display: flex; justify-content: center; align-items: center; gap: 20px; 
}

.banner p { 
    font-size: 18px; 
    color: #5a3e36; 
    font-weight: 700;
}

.banner-icon {
    width: 80px;
    height: 80px;
    object-fit: contain;
    animation: spin 4s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body::before { content: ''; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(255, 255, 255, 0.4); z-index: -1; }
a, button, .delete-btn { cursor: url('https://cur.cursors-4u.net/cursors/chn-3/chn295.cur'), pointer; }

header { background-color: rgba(255, 192, 203, 0.9); padding: 15px 30px; display: flex; justify-content: space-between; align-items: center; border-bottom: 3px dashed #ffb6c1; box-shadow: 0 4px 6px rgba(0,0,0,0.05); }
header h1 { font-size: 28px; color: #d87093; }

.nav-links { display: flex; gap: 10px; }
.nav-btn { background-color: #ffb6c1; color: #5a3e36 !important; padding: 8px 15px; border-radius: 20px; text-decoration: none; font-weight: bold; transition: all 0.3s; box-shadow: 0 2px 5px rgba(255, 182, 193, 0.5); display: flex; align-items: center; gap: 8px; font-family: 'Comfortaa', sans-serif; }
.nav-btn:hover { background-color: #d87093; color: #fff !important; transform: translateY(-2px); box-shadow: 0 4px 8px rgba(216, 112, 147, 0.6); }
.nav-btn.active { background-color: #d87093; color: #fff !important; }

.container { max-width: 1000px; margin: 20px auto; padding: 0 20px; flex: 1; width: 100%; }
.cards { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; margin-bottom: 40px; }
.card { background: rgba(255, 255, 255, 0.9); border: 3px solid #ffb6c1; border-radius: 20px; padding: 30px 20px; width: 300px; text-align: center; text-decoration: none; color: #5a3e36; transition: 0.3s; box-shadow: 0 6px 12px rgba(255, 182, 193, 0.3); position: relative; }
.card:hover { transform: translateY(-5px) scale(1.02); background: #fff; box-shadow: 0 10px 20px rgba(255, 182, 193, 0.6); }
.card h3 { color: #d87093; margin-bottom: 10px; font-size: 22px; }

h2.section-title { text-align: center; margin-bottom: 20px; color: #d87093; text-shadow: 1px 1px 0px #fff; font-size: 32px; }
table { width: 100%; border-collapse: collapse; background: rgba(255, 255, 255, 0.95); border-radius: 15px; overflow: hidden; box-shadow: 0 6px 12px rgba(0,0,0,0.1); }
th, td { padding: 15px; text-align: left; border-bottom: 1px solid #ffb6c1; }
th { background-color: #ffb6c1; color: #5a3e36; font-weight: bold; }
tr:hover { background-color: #fff0f5; }

.form-container { display: flex; justify-content: center; align-items: center; padding: 40px 20px; flex: 1; }
.form-card { background: rgba(255, 255, 255, 0.95); padding: 40px; border-radius: 20px; border: 3px solid #ffb6c1; box-shadow: 0 10px 25px rgba(255, 182, 193, 0.4); width: 100%; max-width: 500px; position: relative; }
.form-card h2 { text-align: center; margin-bottom: 30px; color: #d87093; font-size: 32px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 8px; color: #5a3e36; font-weight: bold; }
.form-group input, .form-group textarea { width: 100%; padding: 12px; border: 2px solid #ffb6c1; border-radius: 10px; background: #fff; color: #5a3e36; font-size: 16px; font-family: 'Comfortaa', sans-serif; }
.form-group input:focus, .form-group textarea:focus { border-color: #d87093; outline: none; box-shadow: 0 0 8px rgba(255, 182, 193, 0.8); }
.btn-submit { width: 100%; padding: 12px; background-color: #ffb6c1; color: #5a3e36; border: none; border-radius: 10px; font-size: 18px; font-weight: bold; cursor: pointer; transition: 0.3s; font-family: 'Comfortaa', sans-serif; }
.btn-submit:hover { background-color: #d87093; color: #fff; }

.viesti { background: rgba(255, 255, 255, 0.95); border-left: 6px solid #ffb6c1; padding: 15px; margin-bottom: 15px; border-radius: 10px; box-shadow: 0 4px 8px rgba(0,0,0,0.05); }
.meta { font-size: 14px; color: #d87093; margin-bottom: 5px; font-weight: bold; }

footer { background-color: rgba(255, 192, 203, 0.9); color: #5a3e36; text-align: center; padding: 20px; margin-top: auto; border-top: 3px dashed #ffb6c1; }

.cute-dog { position: fixed; bottom: 20px; right: 20px; width: 120px; z-index: 999; pointer-events: none; animation: float 3s ease-in-out infinite; }
@keyframes float { 0% { transform: translateY(0px); } 50% { transform: translateY(-10px); } 100% { transform: translateY(0px); } }

.delete-btn { float: right; text-decoration: none; display: inline-block; transition: transform 0.2s, opacity 0.2s; opacity: 0.7; cursor: pointer; }
.delete-btn:hover { opacity: 1; transform: scale(1.2) rotate(10deg); }
.trash-icon { width: 50px; height: 50px; vertical-align: middle; }

.modal-overlay { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.5); z-index: 1000; justify-content: center; align-items: center; backdrop-filter: blur(3px); }
.modal-content { background: #fff0f5; padding: 30px; border-radius: 20px; border: 3px solid #ffb6c1; box-shadow: 0 10px 30px rgba(255, 182, 193, 0.5); text-align: center; max-width: 400px; width: 90%; animation: popIn 0.3s ease-out; }
@keyframes popIn { from { transform: scale(0.8); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.modal-icon { font-size: 50px; margin-bottom: 10px; }
.modal-content h3 { color: #d87093; margin-bottom: 10px; font-size: 26px; }
.modal-content p { color: #5a3e36; margin-bottom: 20px; font-size: 14px; }
.modal-buttons { display: flex; justify-content: center; gap: 15px; }
.btn-cancel, .btn-confirm { padding: 10px 20px; border-radius: 10px; font-size: 16px; font-weight: bold; cursor: pointer; text-decoration: none; transition: 0.2s; border: none; font-family: 'Comfortaa', sans-serif; }
.btn-cancel { background-color: #e0e0e0; color: #5a3e36; }
.btn-cancel:hover { background-color: #d0d0d0; }
.btn-confirm { background-color: #ffb6c1; color: #5a3e36; }
.btn-confirm:hover { background-color: #d87093; color: #fff; box-shadow: 0 0 10px rgba(216, 112, 147, 0.5); }

.alert-success { background-color: #ffe6f2; color: #d87093; border: 2px dashed #ffb6c1; padding: 15px; border-radius: 10px; text-align: center; font-weight: bold; margin-bottom: 20px; box-shadow: 0 4px 6px rgba(0,0,0,0.05); animation: slideDown 0.5s ease-out; display: flex; align-items: center; justify-content: center; gap: 10px;}
@keyframes slideDown { from { transform: translateY(-20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.fade-out { animation: fadeOut 1s ease-in forwards; }
@keyframes fadeOut { from { opacity: 1; } to { opacity: 0; display: none; } }

.empty-state { background: rgba(255, 255, 255, 0.9); border: 3px dashed #ffb6c1; border-radius: 20px; padding: 40px 20px; text-align: center; max-width: 600px; margin: 20px auto; box-shadow: 0 4px 10px rgba(255, 182, 193, 0.2); position: relative; }
.empty-state h3 { color: #d87093; font-size: 28px; margin-bottom: 10px; }
.empty-state p { color: #5a3e36; font-size: 16px; }

.card::before, .form-card::before, .empty-state::before {
    content: ''; position: absolute; top: -25px; left: -25px; width: 60px; height: 60px; background-image: url('images/deco.png'); background-size: contain; background-repeat: no-repeat; z-index: 10;
}
.card::after, .form-card::after, .empty-state::after {
    content: ''; position: absolute; bottom: -25px; right: -25px; width: 60px; height: 60px; background-image: url('images/deco.png'); background-size: contain; background-repeat: no-repeat; z-index: 10; transform: rotate(180deg); 
}


.login-info {
    background-color: #fff0f5; 
    border: 2px dashed #ffb6c1; 
    border-radius: 15px; 
    padding: 15px; 
    margin-bottom: 25px; 
    text-align: center;
    color: #5a3e36;
}

.login-info p {
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 5px;
}

.login-info p:last-child {
    margin-bottom: 0; 
}

.login-info strong {
    color: #d87093;
    font-size: 16px;
    font-family: 'Pacifico', cursive; 
}


.side-gif {
    position: fixed; 
    left: 0; 
    top: 50%; 
    transform: translateY(-50%); 
    height: 80vh;
    width: auto; 
    z-index: 0; 
    pointer-events: none;
    opacity: 0.9;
}


@media (max-width: 1200px) {
    .side-gif {
        display: none; 
    }
}

.online-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    background-color: #4CAF50;
    border-radius: 50%;
    margin-left: 5px;
    box-shadow: 0 0 5px #4CAF50;
    animation: pulseOnline 1.5s infinite;
}

@keyframes pulseOnline {
    0% { box-shadow: 0 0 0 0 rgba(76, 175, 80, 0.7); }
    70% { box-shadow: 0 0 0 6px rgba(76, 175, 80, 0); }
    100% { box-shadow: 0 0 0 0 rgba(76, 175, 80, 0); }
}
