:root { --bg-color: #fffafc; --text-color: #333; --card-bg: #ffffff; --primary: linear-gradient(90deg, #fad76d, #f3e5be); } body.dark { --bg-color: #1e1e1e; --text-color: #f5f5f5; --card-bg: #2a2a2a; --primary: linear-gradient(90deg, #fad76d, #f3e5be); } * { margin: 0; padding: 0; box-sizing: border-box; font-family: "Segoe UI", sans-serif; } html, body { height: 100%; } body { display: flex; flex-direction: column; min-height: 100vh; } main { flex: 1; } body { background: var(--bg-color); color: var(--text-color); transition: 0.3s; } /* Navbar */ .navbar { display: flex; justify-content: space-between; align-items: center; padding: 16px 24px; background: var(--primary); color: #fff; } .nav-link { text-decoration: none; color: white; font-weight: 600; margin: 0 20px; padding: 5px; border-radius: 5px; } .nav-link:hover { background: linear-gradient(90deg, #fad76d, #f3e5be); } .active { border-bottom: 2px solid white; } .logo { width: 52px; height: 52px; border-radius: 14px; } #theme-toggle { border: none; background: #fff; border-radius: 50%; padding: 8px 10px; cursor: pointer; font-size: 16px; } /* Content */ .container { padding: 24px; } .hero { text-align: center; margin-bottom: 32px; } .hero h2 { margin-bottom: 10px; } /* Grid komunitas */ .grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; } .card { background: var(--card-bg); padding: 20px; border-radius: 16px; box-shadow: 0 8px 20px rgba(0,0,0,0.1); transition: transform 0.3s; } .card:hover { transform: translateY(-6px); } .img{ object-fit: cover; object-position: top; } .login-card { max-width: 400px; margin: 60px auto; background: var(--card-bg); padding: 30px; border-radius: 16px; box-shadow: 0 8px 20px rgba(0,0,0,0.15); text-align: center; } .login-card h2 { margin-bottom: 10px; } .login-card form { margin-top: 20px; } .login-card input { width: 100%; padding: 12px; margin-bottom: 14px; border-radius: 10px; border: 1px solid #ddd; } input[type="checkbox"] { width: auto !important; margin: 0;} .login-card button { width: 100%; padding: 12px; border: none; border-radius: 12px; background: var(--primary); color: white; font-size: 16px; cursor: pointer; } .login-card button:hover { opacity: 0.9; } .login-card small { display: block; margin-top: 15px; opacity: 0.7; } .detail-card { max-width: 700px; margin: 40px auto; background: var(--card-bg); padding: 30px; border-radius: 18px; box-shadow: 0 10px 25px rgba(0,0,0,0.15); } .detail-card h2 { margin-bottom: 12px; } .detail-card .desc { margin-bottom: 20px; line-height: 1.6; } .detail-card .info { list-style: none; margin-bottom: 24px; } .detail-card .info li { margin-bottom: 8px; } .card-link { text-decoration: none; color: inherit; display: block; } /* MODAL */ .modal { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); display: none; justify-content: center; align-items: center; z-index: 2000; } .modal-content { background: var(--card-bg); padding: 24px; border-radius: 16px; width: 90%; max-width: 400px; text-align: center; } .modal-actions { margin-top: 20px; display: flex; justify-content: space-around; } .modal-actions button { padding: 10px 16px; border: none; border-radius: 12px; cursor: pointer; } #confirmJoin { background: var(--primary); color: white; } #cancelJoin { background: #ccc; } .breed-section { margin: 40px 0; text-align: center; } .breed-section h3 { margin-bottom: 20px; font-size: 1.5rem; } .breed-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 20px; } .breed-card { text-decoration: none; color: #000; background: #fff; border-radius: 14px; padding: 10px; box-shadow: 0 4px 12px rgba(0,0,0,.1); transition: transform .2s, box-shadow .2s; } .breed-card img { width: 100%; height: 120px; object-fit: cover; border-radius: 10px; } .breed-card span { display: block; margin-top: 8px; font-weight: 600; } .breed-card:hover { transform: translateY(-6px); box-shadow: 0 8px 20px rgba(0,0,0,.15); } footer { background: linear-gradient(90deg, #fad76d, #f3e5be); color: white; text-align: center; padding: 16px; margin-top: 40px; font-size: 14px; opacity: 0.8; } /* Mobile */ @media (max-width: 600px) { .navbar h1 { font-size: 18px; } } /* ANIMASI */ .menu-effect { position: fixed; width: 56px; height: 56px; pointer-events: none; z-index: 99999; background-image: url("meow.png"); background-size: cover; background-position: center; border-radius: 16px; border: 2px solid #fff; box-shadow: 0 8px 20px rgba(0,0,0,0.35); animation: menuPop 0.7s ease-out forwards; } @keyframes menuPop { 0% { transform: scale(0.3) rotate(0deg); opacity: 0; } 40% { transform: scale(1.1) rotate(10deg); opacity: 1; } 100% { transform: scale(1.4) rotate(-10deg); opacity: 0; } } /* MENU / CLICK EFFECT */ .menu-effect { position: fixed; width: 52px; height: 52px; pointer-events: none; z-index: 99999; background-size: cover; background-position: center; border-radius: 14px; box-shadow: 0 8px 20px rgba(0,0,0,0.35); animation: menuPop 0.7s ease-out forwards; } @keyframes menuPop { 0% { transform: scale(0.3) rotate(0deg); opacity: 0; } 40% { transform: scale(1.1) rotate(10deg); opacity: 1; } 100% { transform: scale(1.4) rotate(-10deg); opacity: 0; } } /* PAW */ .nav-link { display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; text-decoration: none; color: #2c2c2c; font-weight: 500; border-radius: 14px; transition: all 0.3s ease; } /* icon paw */ .nav-icon { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; background: #fff; box-shadow: 0 4px 10px rgba(255, 182, 193, 0.4); } /* hover glow pink–yellow */ .nav-link:hover { background: #fff7cc; box-shadow: 0 6px 18px rgba(255, 182, 193, 0.45); } /* active tab */ .nav-link.active { background: #ffe6ef; box-shadow: inset 0 0 0 2px #ffd966; } /* DARK MODE BASE */ body.dark { background: #121212; color: #f5f5f5; } /* NAVBAR */ body.dark .navbar { background: #1b1b1b; box-shadow: 0 6px 18px rgba(255, 182, 193, 0.15); } /* MENU TAB */ body.dark .nav-link { color: #f5f5f5; background: rgba(255, 182, 193, 0.08); } /* HOVER */ body.dark .nav-link:hover { background: linear-gradient( 90deg, rgba(255, 182, 193, 0.35), rgba(255, 236, 179, 0.35) ); box-shadow: 0 0 14px rgba(255, 182, 193, 0.6); } /* ACTIVE TAB */ body.dark .nav-link.active { background: linear-gradient( 90deg, #ffb6c1, #fff1a8 ); color: #2c2c2c; } /* ICON PAW */ body.dark .nav-icon { background: #222; border: 1px solid rgba(255, 182, 193, 0.4); } body.dark nav { border-bottom: 2px solid rgba(255, 182, 193, 0.3); } /* ===================== */ /* DARK MODE - CARD JENIS KUCING */ /* ===================== */ body.dark .breed-card, body.dark .card { background: #1f1f1f; color: #f5f5f5; box-shadow: 0 8px 20px rgba(0,0,0,0.6), 0 0 0 2px rgba(255, 182, 193, 0.35); } /* Judul & teks */ body.dark .breed-card span, body.dark .card h3, body.dark .card p { color: #f5f5f5; } /* Hover glow pastel */ body.dark .breed-card:hover, body.dark .card:hover { box-shadow: 0 0 18px rgba(255, 182, 193, 0.6), 0 0 30px rgba(255, 236, 179, 0.4); transform: translateY(-4px); } /* Border rainbow pastel */ body.dark .breed-card::before, body.dark .card::before { content: ""; position: absolute; inset: 0; border-radius: 18px; padding: 2px; background: linear-gradient( 120deg, #ffb6c1, #fff1a8, #ffb6c1 ); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; } /* ===================== */ /* SIDEBAR (MOBILE ONLY) */ /* ===================== */ .sidebar { position: fixed; top: 0; left: 0; height: 100vh; width: 240px; background: #fff7ec; padding: 90px 16px 20px; display: flex; flex-direction: column; gap: 14px; box-shadow: 4px 0 18px rgba(0,0,0,0.08); z-index: 1500; transition: transform 0.35s ease; } /* dark mode */ body.dark .sidebar { background: #1b1b1b; } /* default: sembunyi */ .sidebar { transform: translateX(-100%); } .sidebar.show { transform: translateX(0); } /* ===================== */ /* SIDEBAR ITEM */ /* ===================== */ .sidebar a { text-decoration: none; padding: 12px 16px; border-radius: 14px; font-weight: 600; color: #333; background: #fff; transition: 0.3s; } body.dark .sidebar a { background: #222; color: #f5f5f5; } .sidebar a.active { background: linear-gradient(90deg, #ffb6c1, #fff1a8); color: #2c2c2c; } /* ===================== */ /* HAMBURGER */ /* ===================== */ .hamburger { display: none; font-size: 24px; background: none; border: none; cursor: pointer; color: #fff; } /* ===================== */ /* MOBILE NAVBAR */ /* ===================== */ .mobile-brand { display: none; align-items: center; gap: 10px; } .mobile-brand img { width: 42px; height: 42px; border-radius: 12px; } .mobile-brand span { font-weight: 700; font-size: 18px; color: #fff; } /* ===================== */ /* MOBILE ONLY */ /* ===================== */ @media (max-width: 768px) { .hamburger { display: block; } .nav-desktop { display: none; } .mobile-brand { display: flex; } body.sidebar-open main { filter: blur(2px); } } body.dark .hamburger { color: #fff; } /* DESKTOP */ .nav-desktop { display: flex; } /* MOBILE */ @media (max-width: 768px) { .nav-desktop { display: none; } } /* MOBILE: sembunyikan menu atas */ @media (max-width: 768px) { .nav-desktop { display: none; } } .brand-desktop { display: flex; align-items: center; gap: 10px; } .brand-desktop .logo { width: 46px; height: 46px; border-radius: 12px; } .brand-title { font-size: 20px; font-weight: 800; color: white; } .mobile-brand { display: none; align-items: center; gap: 10px; } .mobile-brand img { width: 42px; height: 42px; border-radius: 12px; } .mobile-brand span { font-weight: 800; font-size: 18px; color: white; } .sidebar-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 24px; } .sidebar-brand img { width: 42px; height: 42px; border-radius: 12px; } .sidebar-brand span { font-size: 18px; font-weight: 800; color: #333; } body.dark .sidebar-brand span { color: #fff; } /* MOBILE */ @media (max-width: 768px) { .brand-desktop { display: none; } .mobile-brand { display: flex; } .nav-desktop { display: none; } } /* DESKTOP */ @media (min-width: 769px) { .mobile-brand { display: none; } .hamburger { display: none; } } .nav-right { display: flex; align-items: center; gap: 12px; }

.nav-desktop {
    display: flex;
    align-items: center;
    gap: 5px; 
}

.nav-link {
    margin: 0 5px;
    font-size: 14px; 
    white-space: nowrap;
}

@media (max-width: 1024px) {
    .nav-desktop {
        display: none;
    }
    .hamburger {
        display: block;
    }
    .brand-desktop {
        display: none;
    }
    .mobile-brand {
        display: flex;
    }
}

.main-container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px;
}

body.dark::before {
    content: "";
    position: fixed; 
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 10px solid transparent; 
    border-image: linear-gradient(120deg, #ffb6c1, #fff1a8, #ffb6c1) 1;
    pointer-events: none; 
    z-index: 9999; 
    box-shadow: inset 0 0 20px rgba(255, 182, 193, 0.4); 
}

body.dark .card::before, 
body.dark .breed-card::before {
    display: none !important;
}

body.dark::before {
    content: "";
    position: fixed; 
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 10px solid transparent; 
    border-image: linear-gradient(120deg, #ffb6c1, #fff1a8, #ffb6c1) 1;
    pointer-events: none; 
    z-index: 9999;
    box-shadow: inset 0 0 20px rgba(255, 182, 193, 0.4);
}

body:not(.dark) .card {
    background: linear-gradient(90deg, #fad76d, #f3e5be);
}

.container .login {
    flex: auto;
    align-items: center;
    margin-top: 10%;
} 

/* Responsif untuk layar HP kecil */
@media (max-width: 480px) {
    .form-identity {
        grid-template-columns: 1fr; 
    }
    .btn-primary {
        max-width: 100%;
    }
}