/* Reset and Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    background-color: #f4f4f4;
    height: 100vh;
    overflow: hidden;
}

/* Header Styles */
header {
    background-color: rgb(5, 39, 54) !important;
    padding: 0.5rem;
    height: 70px;
    display: flex;
    align-items: center;
}

.header-content {
    max-width: 1200px;
    margin: 0;
    width: 100%;
    padding: 0 1rem;
}

.header-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.25rem;
}

.header-title h1 {
    color: white !important;
    font-size: 1.2rem;
    margin: 0;
    padding: 0;
}

.bayer-logo {
    height: 30px !important;
    width: auto !important;
    max-height: 50px !important;
    max-width: 50px !important;
    object-fit: contain;
    display: block;
}

/* Breadcrumb Styles */
#breadcrumb {
    margin-top: 0.25rem;
    font-size: 0.9rem;
}

.breadcrumb-item {
    color: #ddd;
    cursor: pointer;
}

.breadcrumb-item:hover {
    color: #fff;
    text-decoration: underline;
}

/* Main Container */
.container {
    display: flex;
    height: calc(100vh - 20px);
    position: relative;
    overflow: hidden;
    width: 100%;
}

/* Side Panel Styles */
.side-panel {
    position: fixed;
    left: 0;
    top: 70px;
    width: 300px;
    height: calc(100vh - 70px);
    background-color: white;
    box-shadow: 2px 0 5px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    overflow-y: auto;
    z-index: 1000;
}

.side-panel.collapsed {
    transform: translateX(-300px);
}

#panel-content {
    padding: 1rem;
}

#panel-content h2 {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

#panel-content h2 img {
    vertical-align: middle;
}

/* Toggle Button Styles */
.toggle-panel-btn {
    position: fixed;
    left: 300px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1001;
    background: #333;
    color: white;
    border: none;
    padding: 1rem 0.5rem;
    cursor: pointer;
    border-radius: 0 5px 5px 0;
    transition: left 0.3s ease;
}

.toggle-panel-btn.collapsed {
    left: 0;
}

.toggle-panel-btn i {
    transition: transform 0.3s ease;
}

.toggle-panel-btn.collapsed i {
    transform: rotate(180deg);
}

/* Main Content Styles */
#main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 1rem;
    transition: all 0.3s ease;
    margin-left: 300px;
    width: calc(100% - 300px);
    height: calc(100vh - 30px);
    position: relative;
}

#main-content.expanded {
    margin-left: 0;
    width: 100%;
}

/* Collections Grid Styles */
.collections-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    /*width: 100%; 
    height: 100%; */
}

.collection-card {
    text-align: center;
    background: white;
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: transform 0.2s;
}

.collection-card h2 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.collection-card p {
    font-size: 0.9rem;
}

.collection-icon {
    font-size: 1.5rem; /* Reduced from 2rem */
    margin-bottom: 0.75rem; /* Reduced from 1rem */
    color: #333;
}

.collection-card:hover {
    transform: translateY(-5px);
}

.collection-icon img {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

/* App Items Styles */
.app-item {
    background: white;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
    cursor: pointer;
    transition: background-color 0.2s;
}

.app-item:hover {
    background: #f8f8f8;
}

.app-item.active {
    background: #e6e6e6;
    border-left: 4px solid #333;
}

.app-item h3 {
    margin-bottom: 0.5rem;
    color: #333;
}

.app-item p {
    color: #666;
    font-size: 0.9rem;
}

/* App Container and iFrame Styles */
.app-container {
    position: absolute;
    top: 1rem;
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: all 0.3s ease;
    z-index: 100;
}

.app-container iframe {
    position: absolute; /* Change to absolute */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 8px;
}

/* Welcome Message Styles */
.welcome-message {
    text-align: center;
    margin-bottom: 2rem;
    padding: 1rem;
    color: #333;
}

.welcome-message p {
    font-size: 1.2rem;
    line-height: 1.5;
}

/* Chat iframe - positioned in app container */
.chat-assistant-iframe {
    position: absolute;
    bottom: 20px;
    right: 20px;
    width: 400px;
    height: 600px;
    border: none;
    z-index: 200;
}




/* Quick Links Styles */
.quick-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin-top: 2rem;
    padding: 1rem;
    width: 100%; /* Add this */
}

.quick-link-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center; /* Add this */
    padding: 1rem 2rem;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
    min-width: 150px; /* Add this */
}

.quick-link-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    background-color: rgb(5, 39, 54);
    color: white;
}

.quick-link-button i {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.quick-link-button span {
    font-size: 0.9rem;
    font-weight: 500;
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    .quick-links {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .quick-link-button {
        width: 80%;
        flex-direction: row;
        justify-content: center;
        gap: 1rem;
    }

    .quick-link-button i {
        margin-bottom: 0;
    }
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
    .side-panel {
        position: fixed;
        top: 70px;
        width: 100%;
        height: auto;
        max-height: 40vh;
    }

    .side-panel.collapsed {
        transform: translateY(-100%);
    }

    .toggle-panel-btn {
        position: fixed;
        left: 50%;
        top: auto;
        bottom: -40px;
        transform: translateX(-50%) rotate(90deg);
    }

    .toggle-panel-btn.collapsed {
        top: 70px;
        left: 50%;
        transform: translateX(-50%) rotate(-90deg);
    }

    #main-content {
        margin-left: 0;
        width: 100%;
        height: calc(100vh - 70px);
        padding-top: 40px;
    }

    .app-container {
        height: calc(100vh - 130px);
    }

    .collections-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Mobile adjustments for chat iframe */
    .chat-assistant-iframe {
        width: calc(100% - 40px) !important;
        height: 70vh !important;
        right: 20px !important;
        left: 20px !important;
    }
}