.main-nav {
    background: #ffffff;
    border-bottom: 1px solid #eaeaea;
    padding: 0 15px;
    height: 60px;
    display: flex;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1100;
}
.nav-container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between; /* Keeps Logo left, Group right */
    align-items: center;
}

/* New Wrapper to group all buttons together on the right */
.nav-right-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo {
    font-size: 0.95rem;
    font-weight: 800;
    text-decoration: none;
    color: #000;
    letter-spacing: -0.5px;
}

.nav-links { display: flex; gap: 12px; align-items: center; }

.create-fab {
    background: #0070f3;
    color: white;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 4px 12px rgba(0, 112, 243, 0.25);
}
.create-fab span { font-size: 1.6rem; font-weight: 300; margin-top: -2px; }
.create-fab:hover { background: #0060d0; transform: scale(1.05); }

.history-btn {
    text-decoration: none;
    background: #f8f9fa;
    border: 1px solid #eee;
    width: 36px; 
    height: 36px; 
    border-radius: 10px; 
    display: flex;
    align-items: center;
    justify-content: center;
    color: #444;
    transition: all 0.2s;
    overflow: hidden;
}

.nav-text { display: none; } 

.history-btn:hover {
    background: #f1f3f5;
    border-color: #e2e2e2;
    color: #000;
}

.icon-wrapper { position: relative; display: flex; align-items: center; }

.icon-clock {
    width: 14px;
    height: 14px;
    border: 1.5px solid currentColor;
    border-radius: 50%;
    position: relative;
}
.icon-clock::before {
    content: '';
    position: absolute;
    width: 1.5px;
    height: 4px;
    background: currentColor;
    left: 4.8px;
    top: 2px;
}
.icon-clock::after {
    content: '';
    position: absolute;
    width: 3px;
    height: 1.5px;
    background: currentColor;
    left: 4.8px;
    top: 6px;
}

.new-dot {
    position: absolute;
    top: -2px;
    right: -2px;
    width: 6px;
    height: 6px;
    background: #0070f3;
    border: 1.5px solid #fff;
    border-radius: 50%;
}

.drop-btn-circle {
    background: #f1f1f1;
    border: 1px solid #eee;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 700;
    color: #444;
    transition: all 0.2s;
}
.drop-btn-circle:hover { background: #e8e8e8; }

.profile-dropdown { position: relative; padding: 5px 0; }
.dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    top: 45px;
    background: #fff;
    min-width: 200px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-radius: 12px;
    border: 1px solid #eee;
    overflow: hidden;
}
.profile-dropdown:hover .dropdown-content { display: block; }

.dropdown-header {
    padding: 15px;
    background: #fafafa;
    border-bottom: 1px solid #eee;
}
.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}
.dropdown-header strong { font-size: 0.85rem; color: #000; }
.dropdown-header span { font-size: 0.75rem; color: #0070f3; display: block; }

.credits-pill-inline {
    background: #fff;
    color: #0070f3;
    padding: 2px 8px;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 800;
    border: 1px solid #eee;
}

.dropdown-content a { color: #555; padding: 10px 15px; text-decoration: none; display: block; font-size: 0.85rem; }
.dropdown-content a:hover { background: #f7f7f7; color: #000; }
.logout-link { color: #ff4d4d !important; }

.login-btn {
    background: #000;
    color: #fff;
    padding: 7px 15px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 600;
}