/* Custom Styles for PressOne AI Chat Agent Platform */

:root {
    --sidebar-width: 250px;
    --primary-color: #0d6efd;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 14px;
}

/* Navbar */
.navbar {
    z-index: 1030;
}

/* Sidebar */
.sidebar {
    position: fixed;
    top: 56px;
    bottom: 0;
    left: 0;
    z-index: 100;
    padding: 0;
    box-shadow: inset -1px 0 0 rgba(0, 0, 0, .1);
    overflow-y: auto;
}

.sidebar .nav-link {
    font-weight: 500;
    color: #333;
    padding: 0.75rem 1rem;
    border-left: 3px solid transparent;
}

.sidebar .nav-link:hover {
    color: var(--primary-color);
    background-color: #f8f9fa;
}

.sidebar .nav-link.active {
    color: var(--primary-color);
    border-left-color: var(--primary-color);
    background-color: #f8f9fa;
}

.sidebar .nav-link i {
    margin-right: 0.5rem;
}

/* Offcanvas Mobile Menu */
.offcanvas {
    width: 250px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.offcanvas .nav-link {
    font-weight: 500;
    color: #333;
    padding: 0.75rem 1rem;
    border-left: 3px solid transparent;
}

.offcanvas .nav-link:hover {
    color: var(--primary-color);
    background-color: #f8f9fa;
}

.offcanvas .nav-link.text-primary {
    border-left-color: var(--primary-color);
}

.offcanvas .nav-link i {
    margin-right: 0.75rem;
}

/* Main content */
main {
    padding-top: 0;
}

/* Cards */
.card {
    border: none;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    margin-bottom: 1.5rem;
}

.card-header {
    background-color: #fff;
    border-bottom: 1px solid rgba(0, 0, 0, 0.125);
    font-weight: 600;
}

/* Stat cards */
.card .card-body h3 {
    font-weight: 700;
}

/* Tables */
.table {
    font-size: 0.9rem;
}

.table thead th {
    border-bottom: 2px solid #dee2e6;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
}

/* Badges */
.badge {
    font-weight: 500;
    padding: 0.35em 0.65em;
}

/* Forms */
.form-label {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

/* Mobile Responsive Adjustments */
@media (max-width: 767.98px) {
    .navbar-brand span:last-child {
        display: none;
    }

    .table {
        font-size: 0.85rem;
    }

    .table th, .table td {
        padding: 0.5rem !important;
    }

    .card-body {
        padding: 0.75rem !important;
    }

    .card-body h3, .card-body h4, .card-body h5, .card-body h6 {
        font-size: 0.95rem !important;
    }

    main {
        padding: 0.75rem;
    }

    .content-area {
        font-size: 0.9rem;
    }

    .content-area h1 {
        font-size: 1.25rem;
    }

    .content-area h2 {
        font-size: 1.1rem;
    }

    .content-area h3 {
        font-size: 1rem;
    }

    .btn-sm {
        padding: 0.35rem 0.5rem;
        font-size: 0.8rem;
    }

    .d-none.d-sm-inline {
        display: inline !important;
    }
}

/* Buttons */
.btn {
    font-weight: 500;
}

/* Modal */
.modal-header {
    background-color: var(--primary-color);
    color: white;
}

.modal-header .btn-close {
    filter: invert(1);
}

/* List groups */
.list-group-item-action:hover {
    background-color: #f8f9fa;
}

/* Loading spinner */
.spinner-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 200px;
}

/* Empty states */
.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: #6c757d;
}

.empty-state i {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.3;
}

/* Code blocks */
code {
    background-color: #f8f9fa;
    padding: 0.2rem 0.4rem;
    border-radius: 0.25rem;
}

pre code {
    display: block;
    padding: 1rem;
    overflow-x: auto;
}

/* Navigation tabs */
.nav-tabs {
    border-bottom: 2px solid #dee2e6;
}

.nav-tabs .nav-link {
    border: none;
    color: #6c757d;
    font-weight: 500;
}

.nav-tabs .nav-link:hover {
    border: none;
    color: var(--primary-color);
}

.nav-tabs .nav-link.active {
    color: var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
}

/* Responsive adjustments */
@media (max-width: 767.98px) {
    .sidebar {
        top: 5rem;
    }
    
    main {
        padding-top: 1rem;
    }
}

/* Utility classes */
.text-truncate-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.cursor-pointer {
    cursor: pointer;
}
