/* Gmail Interface Styles */
.gmail-interface {
    background-color: transparent;
    font-family: 'Raleway', 'Google Sans', Roboto, Arial, sans-serif;
}

/* Smooth scrolling for the entire page */
html {
    scroll-behavior: smooth;
}

/* Top Information Cards */
.info-cards-container {
    display: flex;
    gap: 20px;
    padding: 20px;
    background-color:transparent;
}

.info-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    flex: 1;
    min-height: 200px;
    transition: all 0.3s ease;
}

.clickable-card {
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

/* Mobile responsive styles for info-cards-container and info-card */
@media (max-width: 1200px) {
    .info-cards-container {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .info-cards-container {
        padding: 16px;
        gap: 12px;
        flex-direction: row;
        justify-content: stretch;
        overflow-x: visible;
    }
    
    .info-card {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
        padding: 16px 12px;
        min-height: 120px;
        max-height: 120px;
        flex: 1;
        width: auto;
        background: white;
        border-radius: 16px;
        box-shadow: 0 1px 3px rgba(0,0,0,0.1);
        border: 3px solid #e0e0e0;
        position: relative;
    }
    
    /* Hide all content except card-header on mobile */
    .info-card .action-items,
    .info-card .client-content-card,
    .info-card .appointment-content,
    .info-card .time-filter-btn {
        display: none !important;
    }
    
    /* Show only card-header */
    .info-card .card-header {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        height: 100%;
        width: 100%;
        margin: 0;
        padding: 0;
        gap: 8px;
    }
    
    /* Highlight active card */
    .info-card.active {
        border: 4px solid #4285f4;
        box-shadow: 0 2px 8px rgba(66, 133, 244, 0.3);
    }
    
    /* Default state for all cards */
    .info-card {
        border: 3px solid #e0e0e0;
    }
    
    /* Fix appointment card size to match others */
    .info-card.appointment-card {
        height: 120px;
        width: auto;
        flex: 1;
    }
}

@media (max-width: 480px) {
    .info-cards-container {
        padding: 12px;
        gap: 8px;
        flex-direction: row;
        justify-content: stretch;
        overflow-x: visible;
    }
    
    .info-card {
        padding: 10px 6px;
        min-height: 80px;
        max-height: 80px;
        flex: 1;
        width: auto;
    }
    
    .info-card::after {
        font-size: 8px;
        margin-top: 2px;
    }
}

.clickable-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border: 2px solid #1a73e8;
}

.clickable-card.selected {
    border: 3px solid #1a73e8;
    box-shadow: 0 4px 12px rgba(13, 31, 53, 0.2);
    background: #f8f9ff;
}

.clickable-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(26, 115, 232, 0.1), transparent);
    transition: left 0.5s;
}

.clickable-card:hover::before {
    left: 100%;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.card-title {
    font-size: 15px;
    font-weight: 500;
    color: #202124;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 5px;
}

.notification-icon {
    position: relative;
    color: #5f6368;
}

.notification-icon::after {
    content: '';
    position: absolute;
    top: -2px;
    right: -2px;
    width: 6px;
    height: 6px;
    background: #ea4335;
    border-radius: 50%;
    border: 1px solid white;
}

.card-title i {
    color: #5f6368;
    font-size: 14px;
}

/* Mobile responsive styles for card-header and card-title */
@media (max-width: 768px) {
    .card-header {
        margin-bottom: 0;
        padding-bottom: 0;
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        border-bottom: none;
        width: 100%;
    }
    
    .card-title {
        font-size: 12px;
        text-align: left;
        line-height: 1.2;
        margin: 0;
        font-weight: 500;
        color: #202124;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        width: 100%;
        font-family: 'Roboto', Arial, sans-serif;
    }
    
    .card-title-icon {
        display: flex;
        align-items: center;
        justify-content: flex-start;
    }
    
    .card-title-icon i {
        font-size: 24px;
        margin: 0;
        display: block;
        color: #202124;
    }
    
    .card-title-text {
        font-size: 13px;
        text-align: left;
        line-height: 1.2;
        color: #202124;
        font-weight: 500;
        font-family: 'Roboto', Arial, sans-serif;
    }
    
    .card-title i {
        font-size: 24px;
        margin-bottom: 0;
        display: block;
        color: #202124;
    }
    
    /* Add notification dot for bell icon */
    .notification-icon {
        position: relative;
    }
    
    .notification-icon::after {
        content: '';
        position: absolute;
        top: -2px;
        right: -2px;
        width: 6px;
        height: 6px;
        background: #ea4335;
        border-radius: 50%;
        border: 1px solid white;
    }
}

@media (max-width: 480px) {
    .card-title {
        font-size: 10px;
        gap: 6px;
        font-weight: 500;
        font-family: 'Roboto', Arial, sans-serif;
    }
    
    .card-title-text {
        font-size: 10px;
        font-weight: 500;
        font-family: 'Roboto', Arial, sans-serif;
    }
    
    .card-title-icon i {
        font-size: 20px;
    }
    
    .card-title i {
        font-size: 20px;
    }
}

.time-filter-btn {
    background: #E0F2FF;
    color: #1a73e8;
    border: none;
    padding: 10px 16px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.time-filter-btn:hover {
    background: #D1E7FF;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.time-filter-btn i {
    color: #1a73e8;
    font-size: 14px;
}

/* Action Plan Card */
.action-items {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.action-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px 12px 16px;
    border-radius: 8px;
    position: relative;
    min-height: 60px;
    background: white;
}

.action-item.blue-category {
    background-color: #f0f8ff;
}

.action-item.green-category {
    background-color: #f0fff4;
}

.action-item.red-category {
    background-color: #fff0f0;
}

.category-bar {
    width: 6px;
    height: 100%;
    border-radius: 8px 0 0 8px;
    flex-shrink: 0;
    position: absolute;
    left: 0;
    top: 0;
}

.blue-bar {
    background-color: #4285f4;
}

.green-bar {
    background-color: #34a853;
}

.red-bar {
    background-color: #ea4335;
}

.action-icon {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    flex-shrink: 0;
}

.profile-avatars {
    display: flex;
    align-items: center;
    gap: -4px;
    flex-shrink: 0;
    margin-top: 0;
}

.profile-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #f5f5f5;
    border: 1px solid #e0e0e0;
    color: #5f6368;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 600;
    margin-left: -4px;
    position: relative;
    z-index: 1;
}

.profile-avatar:first-child {
    margin-left: 0;
}

.profile-avatar.count {
    background: #9e9e9e;
    color: white;
    font-size: 10px;
}

.profile-avatar.profile-pic {
    background: #f5f5f5;
    font-size: 16px;
}

.action-text {
    flex: 1;
    font-size: 13px;
    color: #202124;
    line-height: 1.4;
    font-weight: 400;
}

.status-icon {
    font-size: 16px;
}

.status-icon.completed {
    color: #34a853;
}

.status-icon.pending {
    color: #ea4335;
}

.notification-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    background: #ea4335;
    color: white;
    border-radius: 50%;
    width: 16px;
    height: 16px;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Client Information Card */
.client-content-card {
    background: white;
    border-radius: 8px 8px 0 0;
    border-top: 4px solid #4285f4;
    padding: 16px;
    margin-top: 8px;
}

.client-budget {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.budget-dot {
    width: 8px;
    height: 8px;
    background: #34a853;
    border-radius: 50%;
    flex-shrink: 0;
}

.client-budget span {
    font-size: 14px;
    color: #202124;
    font-weight: 400;
}

.client-name {
    font-size: 20px;
    font-weight: 700;
    color: #202124;
    margin-bottom: 16px;
}

.room-requirements {
    margin-top: 8px;
}

.requirements-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 8px;
}

.requirements-column {
    display: flex;
    flex-direction: column;
}

.requirements-title {
    font-size: 10px;
    color: #9aa0a6;
    font-weight: 400;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.requirements-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.requirements-list li {
    font-size: 12px;
    color: #202124;
    font-weight: 400;
    margin-bottom: 2px;
    padding-left: 12px;
    position: relative;
    line-height: 1.2;
}

.requirements-list li::before {
    content: "•";
    color: #202124;
    font-weight: bold;
    position: absolute;
    left: 0;
    top: 0;
    font-size: 10px;
}

.download-contact-btn {
    background: #fff;
    border: 1px solid #56B9FF;
    border-radius: 15px;
    color: #56B9FF;
    font-size: 10px;
    font-weight: 400;
    width: 100%;
    padding: 5px 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    align-self: center;
    margin: 4px auto 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-family: 'Raleway', 'Google Sans', Roboto, Arial, sans-serif;
    letter-spacing: 0.2px;
}

.download-contact-btn:hover {
    border-color: #56B9FF;
    background: #f8f9fa;
    color: #56B9FF;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.download-contact-btn i {
    font-size: 10px;
    color: #56B9FF;
    display: flex;
    align-items: center;
    justify-content: center;
}

.client-signals,
.client-next,
.client-risk {
    font-size: 13px;
    color: #202124;
    line-height: 1.4;
}

/* Appointment Card */
.appointment-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: white;
    border-radius: 8px 8px 0 0;
    border-top: 4px solid #4285f4;
    padding: 12px;
    margin-top: 8px;
}

.appointment-layout {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.appointment-image-left {
    width: 140px;
    height: 180px;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-size: 14px;
    flex-shrink: 0;
    overflow: hidden;
}

.appointment-image-left img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.appointment-image-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.appointment-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 16px;
}

.appointment-card {
    background: white;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.appointment-image {
    width: calc(100% + 40px);
    height: 150px;
    margin: -20px -20px 16px -20px;
    border-radius: 0 0 0 0;
    overflow: hidden;
}

.appointment-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0 0 0 0;
}

.appointment-header {
    padding: 0 0 16px 0;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.appointment-icon {
    width: 32px;
    height: 32px;
    background: #e8f0fe;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4285f4;
    font-size: 16px;
    flex-shrink: 0;
}

.appointment-details {
    flex: 1;
}

.appointment-time {
    font-size: 16px;
    font-weight: 700;
    color: #202124;
    margin-bottom: 4px;
    line-height: 1.2;
}

.appointment-name {
    font-size: 14px;
    color: #5f6368;
    font-weight: 400;
    line-height: 1.2;
}

.room-section {
    padding: 0 0 12px 0;
}

.room-label {
    font-size: 12px;
    color: #5f6368;
    font-weight: 400;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.room-name {
    font-size: 14px;
    color: #202124;
    font-weight: 400;
    line-height: 1.3;
}

.prep-section {
    padding: 0 0 12px 0;
}

.prep-label {
    font-size: 12px;
    color: #5f6368;
    font-weight: 400;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.prep-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.prep-list li {
    font-size: 13px;
    color: #202124;
    font-weight: 400;
    line-height: 1.4;
    margin-bottom: 4px;
    position: relative;
    padding-left: 12px;
}

.prep-list li::before {
    content: "•";
    color: #202124;
    font-weight: bold;
    position: absolute;
    left: 0;
    top: 0;
}

.context-section {
    padding: 0 0 12px 0;
}

.context-label {
    font-size: 12px;
    color: #5f6368;
    font-weight: 400;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.context-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.context-list li {
    font-size: 13px;
    color: #202124;
    font-weight: 400;
    line-height: 1.4;
    margin-bottom: 4px;
    position: relative;
    padding-left: 12px;
}

.context-list li::before {
    content: "•";
    color: #202124;
    font-weight: bold;
    position: absolute;
    left: 0;
    top: 0;
}

.calendar-btn {
    margin: 0;
    margin-top: auto;
    padding: 5px 14px;
    background: #fff;
    border: 1px solid #56B9FF;
    border-radius: 15px;
    color: #56B9FF;
    font-size: 10px;
    font-weight: 400;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    font-family: 'Raleway', 'Google Sans', Roboto, Arial, sans-serif;
    letter-spacing: 0.2px;
}

.calendar-btn:hover {
    border-color: #56B9FF;
    background: #f8f9fa;
    color: #56B9FF;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.calendar-btn i {
    font-size: 10px;
    color: #56B9FF;
    display: flex;
    align-items: center;
    justify-content: center;
}

.calendar-btn i img {
    width: 14px;
    height: 14px;
    object-fit: contain;
    display: block;
}


.appointment-cards-grid .appointment-card {
    border-top: 4px solid #4285f4;
    border-radius: 6px 6px 0 0;
}

.appointment-main-block {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.house-icon {
    width: 40px;
    height: 40px;
    background: #e8f0fe;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4285f4;
    font-size: 18px;
    flex-shrink: 0;
}

.appointment-info {
    flex: 1;
}

.appointment-time {
    font-size: 16px;
    font-weight: 700;
    color: #202124;
    margin-bottom: 4px;
}

.appointment-location {
    font-size: 14px;
    color: #202124;
    font-weight: 400;
}

.appointment-sections {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0px;
    margin-top:-5px;
}

.appointment-section {
    display: flex;
    flex-direction: column;
    gap: 0px;
    margin: 0;
    padding: 0;
}

.appointment-section-label {
    font-size: 8px;
    font-weight: 500;
    color: #9aa0a6;
    margin: 0 0 1px 0;
    padding: 0;
    text-transform: uppercase;
    letter-spacing: 0.2px;
    line-height: 1;
}

.appointment-section-text {
    font-size: 8px;
    color: #202124;
    font-weight: 400;
    line-height: 1.1;
    margin: 0;
    padding: 0;
}

.appointment-section-text ul {
    margin: 0;
    padding: 0 0 0 12px;
    list-style: none;
}

.appointment-section-text li {
    margin: 0 0 1px 0;
    padding: 0;
    position: relative;
    font-size: 8px;
    line-height: 1.1;
}

.appointment-section-text li::before {
    content: "•";
    position: absolute;
    left: -8px;
    color: #9aa0a6;
    font-size: 6px;
}


.section-content {
    font-size: 10px;
    color: #202124;
    font-weight: 400;
    line-height: 1.1;
}



.appointment-prep,
.appointment-context {
    font-size: 13px;
    color: #202124;
    line-height: 1.4;
}


/* Gmail Container */
.gmail-container {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    margin: 0 20px 20px 20px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.1),
        0 2px 8px rgba(0, 0, 0, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    overflow: hidden;
}

/* Gmail Header */
.gmail-header {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    background: white;
    border-bottom: 1px solid transparent;
    gap: 16px;
}

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

.menu-btn {
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    color: #5f6368;
    border-radius: 50%;
    transition: background-color 0.2s ease;
}

.menu-btn:hover {
    background: #f1f3f4;
}

.mobile-menu-btn {
    display: block;
}

@media (min-width: 769px) {
    .mobile-menu-btn {
        display: none;
    }
}

.gmail-logo {
    font-size: 22px;
    font-weight: 400;
    color: #5f6368;
}

.gmail-search {
    flex: 1;
    position: relative;
    max-width: 600px;
}

.search-input {
    width: 100%;
    padding: 12px 16px 12px 48px;
    border: 1px solid transparent;
    border-radius: 24px;
    font-size: 14px;
    background: #f1f3f4;
}

.search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #5f6368;
}

.gmail-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}

.action-btn {
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    color: #5f6368;
    border-radius: 50%;
}

.action-btn:hover {
    background: #f1f3f4;
}

.profile-avatar-large {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #1a73e8;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 500;
}

.google-apps {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-left: 8px;
}

.google-apps i {
    font-size: 12px;
    color: #5f6368;
}

/* Gmail Content */
.gmail-content {
    display: flex;
    height: 70vh;
    max-height: 800px;
    overflow: hidden;
}

/* Gmail Sidebar */
.gmail-sidebar {
    width: 200px;
    background: white;
    border-right: 1px solid transparent;
    padding: 16px 8px;
    overflow-y: auto;
    height: 100%;
}

.compose-btn {
    background: #e3f2fd;
    color: #5f6368;
    border: 1px solid transparent;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    width: fit-content;
    justify-content: flex-start;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    transition: all 0.2s ease;
}

.compose-btn:hover {
    background: #bbdefb;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    transform: translateY(-1px);
}

.compose-btn i {
    color: #333;
    font-size: 16px;
}

.gmail-nav-menu {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 16px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 12px;
    text-decoration: none;
    color: #202124;
    font-size: 14px;
    border-radius: 0 20px 20px 0;
    position: relative;
}

.nav-item.active {
    background: #e8f0fe;
    color: #1a73e8;
    font-weight: 500;
}

.nav-item:hover {
    background: #f1f3f4;
}

.inbox-count {
    margin-left: auto;
    background: #1a73e8;
    color: white;
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 500;
}

.labels-section {
    border-top: 1px solid transparent;
    padding-top: 16px;
}

.labels-title {
    font-size: 13px;
    font-weight: 500;
    color: #5f6368;
    margin: 0 0 8px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.label-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 12px;
    font-size: 13px;
    color: #202124;
    cursor: pointer;
}

.label-color {
    width: 12px;
    height: 12px;
    border-radius: 2px;
}

.label-color.orange { background: #ff9800; }
.label-color.green { background: #4caf50; }
.label-color.blue { background: #2196f3; }
.label-color.red { background: #f44336; }
.label-color.purple { background: #9c27b0; }

/* Gmail Main */
.gmail-main {
    flex: 1;
    background: white;
    display: flex;
    flex-direction: row;
    height: 100%;
    overflow: hidden;
}

.gmail-main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
}

/* Email Controls */
.email-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 16px;
    border-bottom: 1px solid transparent;
    background:transparent;
}

.pagination {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #5f6368;
    order: 2;
}

.nav-btn {
    background: none;
    border: none;
    padding: 4px;
    cursor: pointer;
    color: #5f6368;
}

.email-actions {
    display: flex;
    align-items: center;
    gap: 4px;
    order: 1;
}

.refresh-btn {
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    color: #5f6368;
    border-radius: 50%;
}

.refresh-btn:hover {
    background: #e0e0e0;
}

/* Email Content */
.email-content {
    padding: 20px;
    width: 100%;
    flex: 1;
    overflow-y: auto;
    height: 100%;
}

/* Right Sidebar */
.gmail-right-sidebar {
    width: 60px;
    background: transparent;
    border-left: 1px solid transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 0;
    height: 100%;
}

.google-apps-vertical {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.app-icon {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
    color: white;
}

.app-icon:hover {
    transform: scale(1.1);
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.calendar-icon {
    background: linear-gradient(135deg, #4285f4 0%, #34a853 100%);
}

.keep-icon {
    background: #fbbc04;
}

.contacts-icon {
    background: #4285f4;
}

.add-icon {
    background: #5f6368;
    border-radius: 50%;
}

.app-separator {
    width: 2px;
    height: 12px;
    background: #e0e0e0;
    margin: 4px 0;
}

.email-header {
    border-bottom: 1px solid transparent;
    padding-bottom: 16px;
    margin-bottom: 20px;
}

.email-subject {
    font-size: 20px;
    font-weight: 400;
    color: #202124;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.inbox-tag {
    background: #e8f0fe;
    color: #1a73e8;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.close-btn {
    background: none;
    border: none;
    padding: 4px;
    cursor: pointer;
    color: #5f6368;
    margin-left: auto;
}

.email-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13px;
    color: #5f6368;
}

.email-right-section {
    display: flex;
    align-items: center;
    gap: 16px;
}

.sender-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.to-me {
    color: #1a73e8;
}

.email-actions-header {
    display: flex;
    align-items: center;
    gap: 8px;
}

.star-btn,
.reply-btn,
.more-btn {
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    color: #5f6368;
    border-radius: 50%;
}

.star-btn:hover,
.reply-btn:hover,
.more-btn:hover {
    background: #f1f3f4;
}

/* AI Summary */
.ai-summary {
    background: white;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 24px;
}

.ai-logo {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 20px;
}

.speech-bubble-icon {
    width: 32px;
    height: 32px;
    background: #4285f4;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 16px;
    flex-shrink: 0;
}

.company-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.ai-company {
    font-size: 16px;
    font-weight: 700;
    color: #202124;
    letter-spacing: 0.5px;
}

.company-tagline {
    font-size: 12px;
    font-weight: 400;
    color: #5f6368;
}

.summary-title {
    font-size: 28px;
    font-weight: 700;
    color: #202124;
    margin: 0 0 12px 0;
    line-height: 1.2;
}

.title-main {
    position: relative;
}

.title-main::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 1px;
    background: #e0e0e0;
}

.summary-date {
    font-size: 14px;
    color: #5f6368;
    margin-bottom: 16px;
    font-weight: 400;
}

.summary-greeting {
    font-size: 16px;
    color: #202124;
    margin: 0 0 8px 0;
    font-weight: 400;
}

.summary-text {
    font-size: 16px;
    color: #202124;
    margin: 0;
    line-height: 1.5;
    font-weight: 400;
}

/* Action Items Section */
.action-items-section {
    margin-bottom: 32px;
}

.section-title {
    font-size: 18px;
    font-weight: 500;
    color: #202124;
    margin: 0 0 8px 0;
}

.time-section {
    font-size: 14px;
    color: #1a73e8;
    font-weight: 500;
    margin-bottom: 16px;
}

.action-items-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.action-item-card {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 12px;
    position: relative;
    min-height: 80px;
    display: flex;
    align-items: stretch;
}

.action-item-card.blue-category {
    background: linear-gradient(135deg, #e3f2fd 0%, #f0f8ff 100%);
}

.action-item-card.red-category {
    background: linear-gradient(135deg, #ffebee 0%, #fff0f0 100%);
}

.action-item-card.green-category {
    background: linear-gradient(135deg, #e8f5e8 0%, #f0fff4 100%);
}

.action-item-card.yellow-category {
    background: linear-gradient(135deg, #fff8e1 0%, #fffbf0 100%);
}

.action-item-card.purple-category {
    background: linear-gradient(135deg, #f3e5f5 0%, #f8f0ff 100%);
}

.action-content {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    flex: 1;
    padding-left: 4px;
    gap: 12px;
}

/* Action Icons for action-items-grid */
.action-item-card .action-icon {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
    margin-right: 0px;
}

.action-item-card .blue-icon {
    background: transparent;
    color: #4285f4;
}

.action-item-card .red-icon {
    background: transparent;
    color: #ea4335;
}

.action-item-card .green-icon {
    background: transparent;
    color: #34a853;
}

.action-item-card .yellow-icon {
    background: transparent;
    color: #fbbc04;
}

.action-item-card .purple-icon {
    background: transparent;
    color: #9c27b0;
}

.action-text {
    font-size: 13px;
    color: #202124;
    line-height: 1.4;
    margin-bottom: 8px;
    flex: 1;
}

.yellow-bar {
    background-color: #fbbc04;
}

.purple-bar {
    background-color: #9c27b0;
}

/* Client Cards Section */
.client-cards-section {
    margin-bottom: 32px;
}

.client-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 16px;
}

.client-card {
    background: white;
    border-radius: 8px;
    padding: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border-top: 4px solid #4285f4;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.client-price {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.price-dot {
    width: 8px;
    height: 8px;
    background: #34a853;
    border-radius: 50%;
    flex-shrink: 0;
}

.client-price span {
    font-size: 14px;
    color: #202124;
    font-weight: 400;
}

.client-name {
    font-size: 18px;
    font-weight: 700;
    color: #202124;
    margin-bottom: 16px;
}

.client-section {
    margin-bottom: 16px;
}

.section-title-small {
    font-size: 12px;
    color: #9aa0a6;
    font-weight: 400;
    margin-bottom: 8px;
}

.client-card .download-contact-btn {
    margin-top: 16px;
    width: 100%;
}

.client-section .requirements-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.client-section .requirements-list li {
    font-size: 14px;
    color: #202124;
    font-weight: 400;
    margin-bottom: 4px;
    padding-left: 16px;
    position: relative;
}

.client-section .requirements-list li::before {
    content: "•";
    color: #202124;
    font-weight: bold;
    position: absolute;
    left: 0;
    top: 0;
}

.client-budget,
.client-interests,
.client-signals,
.client-must-haves,
.client-deal-breakers {
    font-size: 13px;
    color: #202124;
    line-height: 1.5;
    margin-bottom: 10px;
}

.client-budget strong,
.client-interests strong,
.client-signals strong,
.client-must-haves strong,
.client-deal-breakers strong {
    color: #1a73e8;
}

/* Gmail Footer */
.gmail-footer {
    text-align: center;
    padding: 20px 20px;
    margin: 0 20px 0px 20px;
    
    /* Glass card style border and background */
    background: rgba(255, 255, 255, 0.08);
    /*backdrop-filter: blur(12px);*/
    /*-webkit-backdrop-filter: blur(12px);*/
    border-radius: 20px;
    /*border: 1px solid rgba(255, 255, 255, 0.15);*/
    /*box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);*/
    
    color: #0D3C74;
    font-size: 18px;
    font-weight: 500;
}

.gmail-footer p {
    margin: 0 0 20px 0;
    line-height: 1.5;
}

/* Custom Scrollbar Styling */
.email-content::-webkit-scrollbar,
.gmail-sidebar::-webkit-scrollbar {
    width: 8px;
}

.email-content::-webkit-scrollbar-track,
.gmail-sidebar::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.email-content::-webkit-scrollbar-thumb,
.gmail-sidebar::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

.email-content::-webkit-scrollbar-thumb:hover,
.gmail-sidebar::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Firefox scrollbar */
.email-content,
.gmail-sidebar {
    scrollbar-width: thin;
    scrollbar-color: #c1c1c1 #f1f1f1;
}

/* Highlight effect for selected sections */
.highlighted-section {
    animation: highlightPulse 3s ease-in-out;
    border-radius: 8px;
    padding: 4px;
    margin: -4px;
}

@keyframes highlightPulse {
    0% {
        background-color: rgba(26, 115, 232, 0.1);
        box-shadow: 0 0 0 0 rgba(26, 115, 232, 0.4);
    }
    50% {
        background-color: rgba(26, 115, 232, 0.2);
        box-shadow: 0 0 0 10px rgba(26, 115, 232, 0);
    }
    100% {
        background-color: rgba(26, 115, 232, 0);
        box-shadow: 0 0 0 0 rgba(26, 115, 232, 0);
    }
}

/* Responsive Design */
@media (max-width: 1200px) {
    
    .client-cards-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    /* Hide Gmail sidebar on mobile */
    .gmail-sidebar {
        display: none;
    }
    
    /* Make Gmail main content full width */
    .gmail-main {
        width: 100%;
        flex-direction: column;
    }
    
    .gmail-right-sidebar {
        display: none;
    }
    
    /* Hide detailed sections in info cards on mobile */
    .action-items {
        display: none;
    }
    
    .client-details {
        display: none;
    }
    
    /* Gmail footer mobile device view */
    .gmail-footer {
        margin: 0 10px 0px 10px;
    }
    
    .appointment-details {
        display: none;
    }
    
    /* Transform cards to square-like design on mobile - full width */
    
    
    .time-filter-btn {
        display: none;
    }
    
    /* Add mobile summary text below the title */
    .action-plan-card::after {
        content: '3 pending';
        color: #5f6368;
        font-size: 9px;
        font-weight: 500;
        margin-top: 4px;
        display: none;
    }
    
    .client-info-card::after {
        content: 'John Doe';
        color: #5f6368;
        font-size: 9px;
        font-weight: 500;
        margin-top: 4px;
        display: none;
    }
    
    .appointment-card::after {
        content: 'Wed 3PM';
        color: #5f6368;
        font-size: 9px;
        font-weight: 500;
        margin-top: 4px;
        display: none;
    }
    
    /* Adjust Gmail header for mobile */
    .gmail-header {
        flex-wrap: wrap;
        gap: 8px;
        padding: 8px 12px;
    }
    
    .gmail-nav {
        gap: 8px;
    }
    
    .gmail-logo {
        font-size: 18px;
    }
    
    .gmail-search {
        order: 3;
        width: 100%;
        margin-top: 8px;
    }
    
    .search-input {
        padding: 10px 14px 10px 40px;
        font-size: 16px; /* Prevent zoom on iOS */
    }
    
    .gmail-actions {
        gap: 4px;
    }
    
    .action-btn {
        padding: 6px;
    }
    
    .profile-avatar-large {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }
    
    /* Adjust email content for mobile */
    .email-content {
        padding: 16px;
    }
    
    .email-subject {
        font-size: 18px;
        line-height: 1.3;
    }
    
    .email-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .email-right-section {
        align-self: flex-end;
        flex-direction: column;
        align-items: flex-end;
        gap: 8px;
    }
    
    .email-actions-header {
        align-self: flex-end;
    }
    
    /* Adjust AI summary for mobile */
    .ai-summary {
        padding: 16px;
    }
    
    .summary-title {
        font-size: 20px;
    }
    
    /* Adjust client cards for mobile */
    .client-cards-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .client-card {
        padding: 12px;
    }
    
    .client-name {
        font-size: 16px;
        margin-bottom: 12px;
    }
    
    .client-section {
        margin-bottom: 12px;
    }
    
    .section-title-small {
        font-size: 11px;
        margin-bottom: 6px;
    }
    
    .client-section .requirements-list li {
        font-size: 13px;
        margin-bottom: 3px;
    }
    
    /* Fix appointment cards for mobile */
    .appointment-cards-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .appointment-card {
        padding: 12px;
        /*border-top: 4px solid #4285f4;*/
    }
    
    .appointment-image {
        width: calc(100% + 24px);
        height: 120px;
        margin: -12px -12px 12px -12px;
        border-radius: 0px 0px 0 0;
    }
    
    .appointment-image img {
        border-radius: 0px 0px 0 0;
    }
    
    /* Adjust info cards for mobile - full width layout */
    
    /* Adjust action items for mobile */
    .action-item {
        padding: 6px;
        gap: 8px;
    }
    
    .profile-avatar {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }
    
    .action-text {
        font-size: 13px;
    }
    
    /* Adjust client details for mobile */
    .client-name {
        font-size: 16px;
    }
    
    .client-key-details {
        font-size: 13px;
    }
    
    .client-signals,
    .client-next,
    .client-risk {
        font-size: 12px;
    }
    
    /* Adjust appointment details for mobile */
    .appointment-time {
        font-size: 14px;
    }
    
    .appointment-location {
        font-size: 13px;
    }
    
    .appointment-prep,
    .appointment-context {
        font-size: 12px;
    }
    
    .appointment-cards-grid {
        grid-template-columns: 1fr;
        gap: 12px;
        margin-top: 12px;
    }
    
    .appointment-card {
        padding: 12px;
    }
    
    .appointment-main-block {
        gap: 10px;
        margin-bottom: 12px;
    }
    
    .house-icon {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }
    
    .appointment-time {
        font-size: 15px;
    }
    
    .appointment-location {
        font-size: 13px;
    }
    
    .appointment-sections {
        gap: 6px;
    }
    
    .appointment-section .section-title {
        font-size: 14px;
    }
    
    .section-content {
        font-size: 11px;
    }
    
    
    /* Adjust Gmail container for mobile */
    .gmail-container {
        margin: 0 16px 16px 16px;
        border-radius: 16px;
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
    }
    
    /* Adjust email controls for mobile */
    .email-controls {
        padding: 6px 12px;
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .pagination {
        font-size: 12px;
    }
    
    .email-actions {
        gap: 2px;
    }
    
    .action-btn {
        padding: 6px;
    }
    
    /* Adjust section titles for mobile */
    .section-title {
        font-size: 16px;
    }
    
    .time-section {
        font-size: 13px;
    }
    
    .action-items-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .action-item-card {
        min-height: 60px;
        padding: 8px;
    }
    
    .action-text {
        font-size: 12px;
        margin-bottom: 6px;
    }
    
    .profile-avatars {
        gap: 4px;
    }
    
    .profile-avatar {
        width: 24px;
        height: 24px;
        font-size: 10px;
    }
    
    
}

@media (max-width: 480px) {
    /* Extra small mobile adjustments - full width cards */
    
    
    .gmail-container {
        margin: 0 12px 12px 12px;
        border-radius: 14px;
        backdrop-filter: blur(14px);
        -webkit-backdrop-filter: blur(14px);
    }
    
    .email-content {
        padding: 12px;
    }
    
    .ai-summary {
        padding: 12px;
    }
    
    .client-card {
        padding: 10px;
    }
    
    .client-name {
        font-size: 15px;
        margin-bottom: 10px;
    }
    
    .client-section .requirements-list li {
        font-size: 12px;
    }
    
    /* Fix appointment cards for extra small mobile */
    .appointment-card {
        padding: 10px;
    }
    
    .appointment-image {
        width: calc(100% + 20px);
        height: 100px;
        margin: -10px -10px 10px -10px;
    }

    .gmail-header {
        padding: 6px 8px;
    }
    
    .email-controls {
        padding: 4px 8px;
    }
}

/* Email Content Popup Styles */
.email-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.email-popup-overlay.active {
    opacity: 1;
    visibility: visible;
}

.email-popup-content {
    background: white;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    max-height: 80vh;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

.email-popup-overlay.active .email-popup-content {
    transform: scale(1);
}

.email-popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid #e0e0e0;
    background: #f8f9fa;
}

.email-popup-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #202124;
}

.email-popup-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #5f6368;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s ease;
}

.email-popup-close:hover {
    background-color: #e8eaed;
}

.email-popup-body {
    padding: 20px;
    max-height: 60vh;
    overflow-y: auto;
    background: white;
}

/* Make email content clickable on mobile */
@media (max-width: 768px) {
    .email-content {
        cursor: pointer;
        transition: background-color 0.2s ease;
    }
    
    .email-content:hover {
        background-color: #f8f9fa;
    }
    
    .email-content:active {
        background-color: #e8eaed;
    }
}

/* Calendar Event Notification */
.calendar-notification,
.download-notification {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(-100px);
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    color: white;
    padding: 16px 24px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    z-index: 10000;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    pointer-events: none;
    min-width: 300px;
}

.download-notification {
    background: linear-gradient(135deg, #2196F3 0%, #1976D2 100%);
}

.calendar-notification.show,
.download-notification.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
}

.notification-content {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    font-weight: 500;
}

.notification-content i {
    font-size: 20px;
    color: white;
}

/* Mobile responsive notification */
@media (max-width: 768px) {
    .calendar-notification,
    .download-notification {
        min-width: 280px;
        padding: 14px 20px;
        top: 10px;
    }
    
    .notification-content {
        font-size: 14px;
        gap: 10px;
    }
    
    .notification-content i {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .calendar-notification,
    .download-notification {
        min-width: 260px;
        max-width: 90%;
        padding: 12px 18px;
    }
    
    .notification-content {
        font-size: 13px;
    }
}
