/* 
 * Layout CSS for Chatbot Management Platform
 * Contains structural and responsive layout styles
 */

/* Container adjustments */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Page header */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid #dee2e6;
}

/* Main content area */
.main-content {
    margin-bottom: 40px;
}

/* Sidebar layout */
.sidebar {
    margin-bottom: 20px;
}

/* Split view layouts */
.split-view {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -10px;
}

.split-view-left {
    flex: 0 0 100%;
    padding: 0 10px;
    margin-bottom: 20px;
}

.split-view-right {
    flex: 0 0 100%;
    padding: 0 10px;
}

/* Card layouts */
.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background-color: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
    border-radius: 8px 8px 0 0;
}

.card-body {
    padding: 20px;
}

.card-footer {
    padding: 15px 20px;
    background-color: #f8f9fa;
    border-top: 1px solid #dee2e6;
    border-radius: 0 0 8px 8px;
}

/* Responsive layouts */
/* For tablets and larger */
@media (min-width: 768px) {
    .split-view-left {
        flex: 0 0 33.333%;
    }
    
    .split-view-right {
        flex: 0 0 66.666%;
    }
}

/* For smaller screens */
@media (max-width: 767px) {
    .page-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .page-header h1 {
        margin-bottom: 15px;
    }
    
    .action-buttons {
        flex-direction: column;
        gap: 5px;
    }
    
    .action-buttons button {
        width: 100%;
    }
}

/* Admin layout specifics */
.admin-content {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.admin-sidebar {
    flex: 0 0 100%;
    padding: 0 15px;
    margin-bottom: 20px;
}

.admin-main {
    flex: 0 0 100%;
    padding: 0 15px;
}

@media (min-width: 992px) {
    .admin-sidebar {
        flex: 0 0 25%;
    }
    
    .admin-main {
        flex: 0 0 75%;
    }
}

/* Fixed positioning for important UI elements */
.fixed-top-right {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
}

/* Special layout for the logout button */
#logout-button {
    position: relative;
    z-index: 2147483647;
}
