/* CEBristol Modern Curvy Theme */
html,
body {
    height: 100%;
    background-color: #f7f8fa;
    color: #333333;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.wrap {
    min-height: 100%;
    height: auto;
    margin: 0 auto -60px;
    padding: 0 0 60px;
}

.wrap > .container {
    padding: 80px 20px 30px;
}

/* ===================================
   CURVY NAVIGATION & NAVBAR
   =================================== */
.navbar-fixed-top {
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
}

.navbar-inverse {
    background-color: #1e1e24;
    border-color: #1e1e24;
}

.navbar-inverse .navbar-brand {
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.5px;
}

.sub-nav {
    border-radius: 16px !important;
    background-color: #ffffff;
    border: 1px solid #e7e8ec;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
    margin-bottom: 25px;
    padding: 4px 10px;
}

.sub-nav .navbar-brand {
    font-size: 16px;
    font-weight: 600;
    color: #555;
}

.sub-nav .nav > li > a {
    border-radius: 20px;
    margin: 4px 3px;
    padding: 8px 16px;
    font-weight: 500;
    color: #555;
    transition: all 0.2s ease;
}

.sub-nav .nav > li > a:hover {
    background-color: #f1e9f7;
    color: #6a0dad;
}

.sub-nav .nav > li.active > a,
.sub-nav .nav > li.active > a:focus,
.sub-nav .nav > li.active > a:hover {
    background-color: purple !important;
    color: #ffffff !important;
    box-shadow: 0 2px 8px rgba(128, 0, 128, 0.3);
}

/* Nav Search Bar */
#nav-search-input::placeholder {
    color: #b0b0b8;
}

#nav-search-input:focus {
    background: rgba(255, 255, 255, 0.22) !important;
    border-color: purple !important;
    box-shadow: 0 0 0 3px rgba(128, 0, 128, 0.25) !important;
    color: #ffffff !important;
}

/* Dropdown menus */
.dropdown-menu {
    border-radius: 14px;
    border: 1px solid #e9e9ee;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
    padding: 10px;
}

.dropdown-menu > li > a {
    border-radius: 8px;
    padding: 8px 16px;
    margin: 2px 0;
    transition: all 0.15s ease;
}

.dropdown-menu > li > a:hover {
    background-color: #f6eefc;
    color: purple;
}

/* ===================================
   CURVY PANELS & CARDS
   =================================== */
.panel {
    border-radius: 16px !important;
    overflow: hidden;
    border: 1px solid #e5e6eb;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.04);
    background-color: #ffffff;
    margin-bottom: 22px;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.panel-heading {
    border-top-left-radius: 16px !important;
    border-top-right-radius: 16px !important;
    padding: 14px 20px;
}

.panel-primary > .panel-heading {
    background-color: purple !important;
    border-color: purple !important;
    color: #ffffff !important;
    font-weight: 600;
    font-size: 16px;
}

.panel-body {
    padding: 20px;
}

.tab-content-container {
    border-radius: 18px !important;
    background-color: #ffffff;
    border: 1px solid #e6e7ec;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.04);
    padding: 25px;
}

/* ===================================
   CURVY BUTTONS (PILL STYLE)
   =================================== */
.btn {
    border-radius: 24px !important;
    padding: 8px 20px;
    font-weight: 500;
    transition: all 0.2s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.btn:active {
    transform: translateY(0);
}

.btn-xs {
    border-radius: 16px !important;
    padding: 3px 10px;
    font-size: 12px;
}

.btn-sm {
    border-radius: 20px !important;
    padding: 5px 15px;
    font-size: 13px;
}

.btn-lg {
    border-radius: 30px !important;
    padding: 12px 28px;
}

.btn-primary {
    background-color: purple !important;
    border-color: purple !important;
    color: #fff !important;
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: #6a0dad !important;
    border-color: #6a0dad !important;
}

.btn-success {
    background-color: #2e7d32 !important;
    border-color: #2e7d32 !important;
}

.btn-success:hover {
    background-color: #1b5e20 !important;
    border-color: #1b5e20 !important;
}

/* ===================================
   CURVY FORMS & INPUTS
   =================================== */
.form-control {
    border-radius: 12px !important;
    border: 1px solid #dcdde3;
    padding: 8px 14px;
    height: auto;
    min-height: 38px;
    box-shadow: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.input-sm {
    border-radius: 10px !important;
    min-height: 32px;
    padding: 4px 12px;
}

.form-control:focus {
    border-color: purple !important;
    box-shadow: 0 0 0 3px rgba(128, 0, 128, 0.15) !important;
    outline: none;
}

textarea.form-control {
    border-radius: 14px !important;
    padding: 12px 16px;
}

/* ===================================
   CURVY BADGES & LABELS
   =================================== */
.label {
    border-radius: 20px !important;
    padding: 4px 12px;
    font-weight: 600;
    letter-spacing: 0.3px;
    display: inline-block;
}

.badge {
    border-radius: 20px !important;
    padding: 4px 10px;
    background-color: purple;
}

/* ===================================
   CURVY TABLES
   =================================== */
.table-responsive {
    border-radius: 16px !important;
    overflow: hidden;
    border: 1px solid #e7e8ed;
    background-color: #ffffff;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.03);
    margin-bottom: 20px;
}

.table {
    margin-bottom: 0;
}

.table > thead > tr > th {
    background-color: #f5f6f9;
    border-bottom: 2px solid #e0e2e8;
    color: #444;
    font-weight: 600;
    padding: 12px 14px;
}

.table > tbody > tr > td {
    padding: 12px 14px;
    vertical-align: middle;
    border-top: 1px solid #edf0f4;
}

.table-hover > tbody > tr:hover {
    background-color: #faf7fd;
}

/* ===================================
   CURVY IMAGES & THUMBNAILS
   =================================== */
.img-thumbnail {
    border-radius: 14px !important;
    border: 1px solid #e0e1e6;
    padding: 4px;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.05);
}

.progress-thumb {
    width: 150px;
    margin-right: 18px;
    float: left;
    border-radius: 14px !important;
    border: 1px solid #e3e4ea;
    padding: 4px;
    background: #fff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
}

.progress-thumb:hover {
    transform: scale(1.03);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

/* ===================================
   CURVY BREADCRUMBS & ALERTS
   =================================== */
.breadcrumb {
    border-radius: 24px !important;
    background-color: #ffffff;
    border: 1px solid #e8e9ee;
    padding: 10px 20px;
    margin-bottom: 22px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.alert {
    border-radius: 14px !important;
    border: 1px solid transparent;
    padding: 14px 18px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.04);
}

.alert-dismissible .close {
    top: -2px;
    right: -2px;
}

.pagination {
    border-radius: 24px;
}

.pagination > li > a,
.pagination > li > span {
    border-radius: 16px !important;
    margin: 0 3px;
    border: 1px solid #e0e2e8;
    color: purple;
}

.pagination > .active > a,
.pagination > .active > span {
    background-color: purple !important;
    border-color: purple !important;
}

/* Footer */
.footer {
    height: 60px;
    background-color: #ffffff;
    border-top: 1px solid #e9e9ee;
    padding-top: 20px;
    color: #777;
}

/* ===================================
   LIGHTBOX MODAL
   =================================== */
.ceb-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 999999;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.22s ease;
    outline: none;
}

.ceb-lightbox.is-open {
    opacity: 1;
}

.ceb-lightbox-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(12, 14, 20, 0.88);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    cursor: zoom-out;
}

.ceb-lightbox-content {
    position: relative;
    z-index: 2;
    max-width: 92vw;
    max-height: 92vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transform: scale(0.95);
    transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.ceb-lightbox.is-open .ceb-lightbox-content {
    transform: scale(1);
}

.ceb-lightbox-card {
    position: relative;
    display: inline-flex;
    flex-direction: column;
    align-items: stretch;
    width: -moz-fit-content;
    width: fit-content;
    max-width: 88vw;
    max-height: 88vh;
    background: #0a0c12;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.ceb-lightbox-img-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000000;
    width: 100%;
    margin: 0 auto;
    overflow: hidden;
    padding: 0;
}

#ceb-lightbox-img {
    display: block;
    margin: 0 auto;
    max-width: 88vw;
    max-height: 74vh;
    width: auto;
    height: auto;
    object-fit: contain;
    user-select: none;
    -webkit-user-drag: none;
}

.ceb-lightbox-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 10px 18px;
    background: #181b24;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: #f3f4f6;
    font-size: 13px;
    min-height: 44px;
    box-sizing: border-box;
    width: 100%;
}

.ceb-lightbox-caption {
    font-weight: 500;
    color: #ffffff;
    line-height: 1.4;
    white-space: normal;
    word-break: break-word;
    flex: 1 1 auto;
    width: -moz-max-content;
    width: max-content;
    max-width: 100%;
}

.ceb-lightbox-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
    margin-left: auto;
}

.ceb-lightbox-counter {
    color: #9ca3af;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
}

.ceb-lightbox-raw {
    color: #c084fc;
    text-decoration: none;
    font-size: 12px;
    padding: 3px 8px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.08);
    white-space: nowrap;
    transition: background 0.15s, color 0.15s;
}

.ceb-lightbox-raw:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
    text-decoration: none;
}

.ceb-lightbox-close {
    position: fixed;
    top: 20px;
    right: 25px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: #ffffff;
    font-size: 32px;
    line-height: 40px;
    text-align: center;
    cursor: pointer;
    z-index: 10;
    transition: background 0.2s, transform 0.2s;
    outline: none;
}

.ceb-lightbox-close:hover {
    background: rgba(255, 255, 255, 0.35);
    transform: scale(1.08);
}

.ceb-lightbox-nav {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: #ffffff;
    font-size: 24px;
    line-height: 48px;
    text-align: center;
    cursor: pointer;
    z-index: 10;
    transition: background 0.2s, transform 0.2s;
    outline: none;
}

.ceb-lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.35);
    transform: translateY(-50%) scale(1.1);
}

.ceb-lightbox-prev {
    left: 20px;
}

.ceb-lightbox-next {
    right: 20px;
}

@media (max-width: 768px) {
    .ceb-lightbox-nav {
        width: 38px;
        height: 38px;
        font-size: 18px;
        line-height: 36px;
    }
    .ceb-lightbox-prev { left: 8px; }
    .ceb-lightbox-next { right: 8px; }
    .ceb-lightbox-close { top: 12px; right: 12px; width: 38px; height: 38px; font-size: 26px; line-height: 34px; }
    .ceb-lightbox-caption { max-width: 50%; }
}

/* Print Styles */
@media print {
    .ceb-lightbox, .navbar, .btn, .breadcrumb, footer, .no-print, form {
        display: none !important;
    }
    .wrap > .container {
        padding: 0 !important;
    }
}