/* Navigation Items */
.nav-items {
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-items li {
    margin: 1px 0;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.15s ease;
    color: rgba(255, 255, 255, 0.9);
    letter-spacing: 0.01em;
}

.nav-items li a {
    display: flex;
    align-items: center;
    padding: 5px 12px;
    color: inherit;
    text-decoration: none;
    width: 100%;
    cursor: pointer;
    line-height: 20px;
}

.nav-items li a > span:first-child {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nav-items li a > span.count {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    min-width: 24px;
    height: 20px;
    transition: all 0.15s ease;
    margin-left: 8px;
}

.nav-items li:hover a > span.count {
    background: rgba(255, 255, 255, 0.2);
}

.nav-items li:hover {
    background: var(--hover-primary);
}

.nav-items li.active {
    background: var(--hover-primary);
}

.nav-items li span {
    display: inline-flex;
    align-items: center;
}

.nav-icon {
    margin-right: 8px;
}

.stage-marker {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 8px;
}

/* Navigation Dropdown */
.nav-dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    color: white;
    background: var(--hover-primary);
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s ease;
    min-width: 200px;
}

.nav-dropdown:hover .dropdown-button {
    border-radius: 4px 4px 0 0;
    background: var(--hover-primary);
}

.dropdown-button:hover {
    background: var(--hover-primary);
}

.dropdown-button svg {
    transition: transform 0.2s ease;
}

.nav-dropdown:hover .dropdown-button svg {
    transform: rotate(180deg);
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    width: 100%;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border-radius: 0 0 4px 4px;
    opacity: 0;
    transition: opacity 0.2s ease;
    z-index: 1000;
    margin-top: -5px;
    border-top: 1px solid var(--hover-primary);
}

.nav-dropdown:hover .dropdown-button {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    border-bottom: 1px solid var(--hover-primary);
    margin-bottom: -1px;
}

.nav-dropdown:hover .dropdown-content {
    display: block;
    opacity: 1;
}

.dropdown-content a {
    color: var(--text);
    text-decoration: none;
    padding: 8px 16px;
    display: block;
    font-size: 14px;
    transition: all 0.2s ease;
}

.dropdown-content a:hover {
    background: var(--background);
}

.dropdown-content a.active {
    color: var(--primary);
    font-weight: 500;
}

/* Search Bar */
.search-bar {
    flex: 1;
    margin: 0;
    padding-left: 100px;
    max-width: calc(100% - 750px); /* Increased width by another 10px */
}

.search-bar input {
    width: 100%;
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    background: rgba(255,255,255,0.1);
    color: white;
    font-size: 14px;
}

.search-bar input::placeholder {
    color: rgba(255,255,255,0.7);
}

/* User Actions */
.user-actions {
    display: flex;
    gap: 16px;
    align-items: center;
    color: white;
    padding: 0 20px;
    margin-left: auto;
}

.user-actions button {
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    background: var(--hover-primary);
    color: white;
    font-size: 14px;
    font-weight: 500;
}

/* User Dropdown */
.user-dropdown {
    position: relative;
}

.user-dropdown-button {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--hover-primary);
    border: none;
    border-radius: 4px;
    color: white;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.user-dropdown-button svg {
    transition: transform 0.2s ease;
}

.user-dropdown:hover .user-dropdown-button svg {
    transform: rotate(180deg);
}

.user-dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: -1px;
    background: white;
    border-radius: 0 0 4px 4px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    min-width: 160px;
    z-index: 1000;
    border-top: 1px solid var(--hover-primary);
}

.user-dropdown:hover .user-dropdown-content {
    display: block;
}

.user-dropdown:hover .user-dropdown-button {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    border-bottom: 1px solid var(--hover-primary);
    margin-bottom: -1px;
}

.user-dropdown-content .dropdown-item {
    display: block;
    width: 100%;
    padding: 8px 16px;
    text-align: left;
    background: none;
    border: none;
    color: var(--text);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.user-dropdown-content .dropdown-item:hover {
    background: var(--background);
    color: var(--primary);
}

.user-dropdown-content form {
    margin: 0;
    padding: 0;
}

/* Buttons */
.action-buttons {
    display: flex;
    gap: 12px;
    margin-top: 0px;
}

.action-buttons button,
.settings-button button {
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    font-size: 14px;
    font-weight: 500;
}

.primary-button {
    background: var(--primary);
    color: white;
}

.primary-button:hover {
    background: var(--hover-primary);
}

.secondary-button {
    background: var(--secondary);
    color: white;
}

.secondary-button:hover {
    background: var(--hover-secondary);
}

.warning-button {
    background: var(--accent);
    color: white;
}

.warning-indicator {
    color: var(--accent);
}

/* Settings Button */
.settings-button {
    margin-top: auto;
    padding: 12px;
}

.settings-button a,
.settings-button button {
    display: block;
    width: 100%;
    text-align: center;
    text-decoration: none;
    padding: 10px 16px;
    border-radius: 6px;
    transition: background-color 0.2s ease;
}

/* Stage Markers */
.stage-marker {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-flex;
    flex-shrink: 0;
    margin-right: 8px;
    vertical-align: middle;
}

/* Stage colors */
.stage-cq { background: #3b82f6; }
.stage-submitted { background: #10b981; }
.stage-invoiced { background: #f59e0b; }
.stage-paid { background: #6366f1; }
.stage-published { background: #8b5cf6; }
.stage-cc { background: #ef4444; }
.stage-wd { background: #ef4444; }
.stage-interested { background: #8b5cf6; }

/* Deals Grid Layout */
.deals-grid {
    display: flex;
    height: 100%;
    overflow-x: auto;
    background: var(--background);
    min-width: min-content;
}

.deals-column {
    background: white;
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    width: 300px;
    flex: 0 0 300px;
    height: calc(100vh - 52px); /* Full height minus just the header */
}

.deals-column:last-child {
    border-right: none;
}

.deals-header {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white;
    border-radius: 0;
}

.deals-header h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
    margin: 0;
}

.deals-count {
    background: var(--background);
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text);
}

.deals-list {
    padding: 0;
    overflow-y: auto;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1px;
    background: var(--border);
}

.deal-card {
    background: white;
    border: none;
    border-radius: 0;
    padding: 12px;
    transition: all 0.2s ease;
    margin: 0;
}

.deal-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.deal-info {
    margin-bottom: 12px;
}

.deal-title {
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.member-badge {
    background: var(--primary);
    color: white;
    padding: 1px 6px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
}

.deal-email {
    font-size: 13px;
    color: var(--text);
    opacity: 0.7;
    margin-bottom: 8px;
}

.deal-meta {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 4px 8px;
    font-size: 12px;
}

.meta-label {
    color: var(--text);
    opacity: 0.6;
    font-weight: 500;
}

.meta-value {
    color: var(--text);
}

.deal-actions {
    display: flex;
    gap: 8px;
}

.action-button {
    flex: 1;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 500;
    text-align: center;
    text-decoration: none;
    transition: all 0.2s ease;
}

.action-primary {
    background: var(--primary);
    color: white;
}

.action-primary:hover {
    background: var(--hover-primary);
}

.action-secondary {
    background: var(--secondary);
    color: white;
}

.action-secondary:hover {
    background: var(--hover-secondary);
}

.action-accent {
    background: var(--accent);
    color: white;
}

.action-accent:hover {
    opacity: 0.9;
}
