/* Kenno Main Stylesheet */

:root {
    --color-cream: #F4EEE5;
    --color-green-dark: #1a5c3e;
    --color-green-light: #2d8659;
    --color-green-lighter: #40b973;
    --color-text: #1a1a1a;
    --color-border: #e0d5c7;
}

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

html, body {
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: #ffffff;
    color: var(--color-text);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    color: #000;
}

/* Ken Coin - Bold emphasis */
.ken-coin {
    font-weight: 800;
    color: var(--color-green-dark);
}

/* Modern Navbar Design */
.navbar {
    background: linear-gradient(180deg, #ffffff 0%, #fafbfc 100%);
    border-bottom: 2px solid var(--color-border);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    position: sticky;
    top: 0;
    z-index: 50;
}

.navbar-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 12px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Logo Section */
.logo {
    display: flex;
    align-items: center;
    gap: 0;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 900;
    font-size: 28px;
    letter-spacing: -0.5px;
    color: #000;
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 8px 12px;
    border-radius: 10px;
    margin-left: -12px;
}

.logo:hover {
    transform: translateY(-2px);
    opacity: 0.8;
}

.logo-icon {
    display: none;
}

.logo-icon-sloth {
    width: 32px;
    height: 32px;
    margin-right: 8px;
    flex-shrink: 0;
}

.logo-img {
    height: 32px;
    max-height: 32px;
    width: auto;
    object-fit: contain;
}

.logo-text {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 900;
    font-size: 24px;
    letter-spacing: 1px;
    color: #000;
}

.footer-logo-img {
    height: 55px;
    width: auto;
    object-fit: contain;
}

.footer-logo-sloth {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
}

.footer-logo-text {
    font-weight: 900;
    font-size: 18px;
    color: #000;
    letter-spacing: 1px;
}

.footer-branding {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* App Footer */
.app-footer {
    background: white;
    border-top: 1px solid var(--color-border);
    padding: 24px 20px;
    margin-top: 40px;
}

.app-footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    text-align: center;
}

.footer-links-mini {
    display: flex;
    gap: 20px;
}

.footer-links-mini a {
    color: #666;
    text-decoration: none;
    font-size: 13px;
    transition: color 0.2s;
}

.footer-links-mini a:hover {
    color: var(--color-green-dark);
}

.app-footer p {
    color: #999;
    font-size: 12px;
    margin: 0;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 28px;
}

/* Notification Button */
.notification-btn {
    position: relative;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(26, 92, 62, 0.06);
    border: none;
    border-radius: 10px;
    font-size: 20px;
    color: #666;
    transition: all 0.3s ease;
}

.notification-btn:hover {
    background: rgba(26, 92, 62, 0.12);
    color: var(--color-green-dark);
    transform: translateY(-2px);
}

.notification-badge {
    position: absolute;
    top: 4px;
    right: 4px;
    background: linear-gradient(135deg, #ef4444, #f87171);
    color: white;
    font-size: 10px;
    font-weight: 700;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
    box-shadow: 0 2px 4px rgba(239, 68, 68, 0.3);
}

/* User Profile Section */
.user-menu-btn {
    position: relative;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    background: none;
    border: none;
    border-radius: 50%;
    padding: 0;
    font-size: 14px;
    color: #666;
    transition: all 0.3s ease;
    font-family: 'Roboto', sans-serif;
    width: 44px;
    height: 44px;
}

.user-menu-btn:hover {
    background: rgba(26, 92, 62, 0.08);
}

.user-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--color-green-light);
    transition: all 0.3s ease;
}

.user-menu-btn:hover .user-avatar {
    border-color: var(--color-green-dark);
    box-shadow: 0 4px 12px rgba(26, 92, 62, 0.25);
    transform: scale(1.05);
}

/* User Menu Dropdown */
.user-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: white;
    border: 2px solid var(--color-border);
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    min-width: 240px;
    display: none;
    z-index: 100;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.user-menu.active {
    display: block;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.user-menu-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 18px;
    background: linear-gradient(135deg, rgba(26, 92, 62, 0.05) 0%, rgba(45, 134, 89, 0.05) 100%);
}

.menu-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--color-green-dark);
}

.menu-user-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.menu-user-name {
    font-size: 15px;
    font-weight: 700;
    color: #1a1a1a;
}

.menu-user-email {
    font-size: 12px;
    color: #888;
}

.user-menu-divider {
    height: 1px;
    background: #e0d5c7;
    margin: 0;
}

.user-menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    text-decoration: none;
    color: #5a6c7d;
    font-size: 14px;
    font-family: 'Roboto', sans-serif;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.3s ease;
}

.user-menu-item:last-child {
    border-bottom: none;
}

.user-menu-item i {
    font-size: 18px;
    width: 20px;
    text-align: center;
    color: var(--color-green-dark);
}

.user-menu-item:hover {
    background: linear-gradient(90deg, rgba(26, 92, 62, 0.08) 0%, transparent 100%);
    color: var(--color-green-dark);
    padding-left: 22px;
}

.user-menu-item.logout {
    color: #ef4444;
}

.user-menu-item.logout i {
    color: #ef4444;
}

.user-menu-item.logout:hover {
    background: rgba(239, 68, 68, 0.08);
    color: #ef4444;
}

.menu-badge {
    margin-left: auto;
    background: #ef4444;
    color: white;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 10px;
}

/* Main Container */
.main-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 30px 20px;
}

/* Buttons */
.btn {
    padding: 8px 16px;
    border-radius: 8px;
    border: none;
    font-weight: 600;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-primary {
    background: white;
    color: var(--color-green-dark);
}

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

.btn-secondary {
    background: transparent;
    border: 2px solid white;
    color: white;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Ken Coin - Bold emphasis */
.ken-coin {
    font-weight: 800;
    color: #000;
}

.stat-card.primary .ken-coin {
    color: white;
}

/* Card */
.card {
    background: white;
    border-radius: 12px;
    border: 1px solid var(--color-border);
    padding: 24px;
    overflow: hidden;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--color-border);
}

.card-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--color-text);
    display: flex;
    align-items: center;
    gap: 10px;
}

.card-title i {
    font-size: 22px;
    color: var(--color-green-light);
}

.view-all {
    font-size: 13px;
    color: var(--color-green-dark);
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Activity List */
.activity-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    border-bottom: 1px solid var(--color-border);
}

.activity-item:last-child {
    border-bottom: none;
}

.activity-content {
    flex: 1;
}

.activity-title {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 4px;
    color: var(--color-text);
}

.activity-time {
    font-size: 12px;
    color: #999;
}

.activity-amount {
    font-weight: 700;
    font-size: 16px;
    color: var(--color-green-light);
}

/* Footer */
footer {
    background: white;
    border-top: 1px solid var(--color-border);
    padding: 24px 20px;
    text-align: center;
    color: #999;
    font-size: 13px;
}

footer a {
    color: #999;
    text-decoration: none;
}

footer a:hover {
    color: var(--color-green-dark);
}

/* Mobile Responsive - Navbar */
@media (max-width: 768px) {
    .navbar-content {
        gap: 15px;
    }

    .logo {
        font-size: 20px;
    }
}
