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

body {
    font-family: Arial, sans-serif;
    background-color: #f5f8fa;
}

.container {
    display: flex;
    min-height: 100vh;
}

/* Sidebar Styles */
.sidebar {
    width: 70px;
    background-color: #2d3e50;
    color: white;
    padding: 15px 0;
    height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    z-index: 1000;
}

.logo {
    text-align: center;
    margin-bottom: 20px;
    padding: 0 10px;
}

.hubspot-logo {
    width: 35px;
    height: auto;
}

.side-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-item {
    margin: 5px 0;
}

.nav-link {
    color: #cbd6e2;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    transition: all 0.3s ease;
}

.nav-link:hover {
    background-color: #3a4a5c;
    color: white;
}

.nav-link i {
    font-size: 20px;
}

/* Main Content Styles */
.main-content {
    margin-left: 70px;
    margin-top: 60px;
    padding: 20px;
}

/* Top Navigation Styles */
.top-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    background-color: #2d3e50;
    position: fixed;
    top: 0;
    right: 0;
    left: 70px;
    height: 60px;
    z-index: 900;
}

.top-nav-left, .top-nav-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Search Container */
.search-container {
    position: relative;
    display: flex;
    align-items: center;
    background: #3a4a5c;
    border-radius: 4px;
    padding: 8px 12px;
    width: 300px;
    gap: 8px;
}

.search-icon {
    color: #cbd6e2;
    flex-shrink: 0;
}

.search-input {
    background: transparent;
    border: none;
    color: white;
    flex: 1;
    min-width: 0;
    padding: 0;
}

.search-input::placeholder {
    color: #cbd6e2;
}

.keyboard-shortcut {
    color: #cbd6e2;
    background: #4a5c70;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 12px;
    white-space: nowrap;
    flex-shrink: 0;
}

/* Add New Button */
.add-new-btn {
    background: #3a4a5c;
    border: none;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

/* Action Buttons */
.action-btn {
    background: #ff7a59;
    border: none;
    color: white;
    padding: 8px 16px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    font-size: 14px;
}

.upgrade-badge {
    background: white;
    color: #ff7a59;
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 12px;
}

.icon-btn {
    background: transparent;
    border: none;
    color: #cbd6e2;
    width: 32px;
    height: 32px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
}

.icon-btn:hover {
    background: #3a4a5c;
    color: white;
}

.notification-badge {
    position: absolute;
    top: 0;
    right: 0;
    background: #ff7a59;
    color: white;
    font-size: 11px;
    padding: 2px 5px;
    border-radius: 10px;
}

/* Copilot Button */
.copilot-btn {
    background: #3a4a5c;
    border: none;
    color: white;
    padding: 8px 16px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

/* User Profile */
.user-profile {
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    padding: 5px;
}

.user-profile img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
}

.user-profile i {
    color: #cbd6e2;
    font-size: 12px;
}

/* Dashboard Content Styles */
.dashboard-content {
    padding: 20px;
}

.card {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

/* Add a separator line for certain nav items */
.nav-item:nth-child(8) {
    border-top: 1px solid #3a4a5c;
    margin-top: 10px;
    padding-top: 10px;
}

/* Submenu Styles */
.has-submenu {
    position: relative;
}

.submenu {
    position: absolute;
    left: 70px; /* Width of sidebar */
    top: 0;
    background: #fff;
    width: 200px;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    display: none;
    z-index: 1000;
}

.has-submenu:hover .submenu {
    display: block;
}

.submenu-header {
    padding: 12px 16px;
    color: #33475b;
    font-weight: 600;
    border-bottom: 1px solid #eaf0f6;
}

.submenu ul {
    padding: 8px 0;
}

.submenu li a {
    padding: 8px 16px;
    color: #33475b;
    text-decoration: none;
    display: block;
    font-size: 14px;
}

.submenu li a:hover {
    background-color: #f5f8fa;
}

.submenu-divider {
    border-top: 1px solid #eaf0f6;
    margin: 8px 0;
}

/* Ensure submenu appears smoothly */
.submenu {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s, visibility 0.2s;
}

.has-submenu:hover .submenu {
    opacity: 1;
    visibility: visible;
    display: block;
}

/* Bookmark icon specific styles */
.nav-item:first-child .nav-link {
    position: relative;
}

.nav-item:first-child .nav-link:hover::after {
    content: "Bookmarks";
    position: absolute;
    left: 70px;
    background: #33475b;
    color: white;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    z-index: 1000;
}

/* Add a subtle animation for bookmark action */
.nav-item:first-child .nav-link:active i {
    transform: scale(0.9);
    transition: transform 0.1s;
}

/* Teleprompter Button */
.teleprompter-btn {
    background: #ff7a59;
    border: none;
    color: white;
    padding: 8px 16px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.teleprompter-btn i {
    font-size: 16px;
}

.teleprompter-badge {
    background: white;
    color: #ff7a59;
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 500;
}

.teleprompter-btn:hover {
    background: #f65c3d;
}

/* 404 Page Styles */
.error-page {
    text-align: center;
    padding: 60px 20px;
}

.error-page h1 {
    color: #33475b;
    font-size: 32px;
    margin-bottom: 16px;
}

.error-page p {
    color: #516f90;
    margin-bottom: 24px;
}

.back-link {
    display: inline-block;
    padding: 8px 16px;
    background: #0091ae;
    color: white;
    text-decoration: none;
    border-radius: 4px;
}

.back-link:hover {
    background: #007a8c;
}

/* Name Links */
.name-link {
    color: #0091ae;
    text-decoration: none;
    font-size: inherit;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.name-link:hover {
    color: #007a8c;
    text-decoration: underline;
}

/* For cells containing links */
.owner-cell .name-link {
    max-width: calc(100% - 40px); /* Account for avatar */
}

/* For table cells with links */
td .name-link {
    max-width: 100%;
} 