body {
    background-color: #f5f5f5;
}

/* Modern Logo Styling */
.logo-modern {
    height: 45px;
    width: auto;
    max-width: 220px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    filter: drop-shadow(0 2px 6px rgba(102, 126, 234, 0.15));
    vertical-align: middle;
}

.logo-modern:hover {
    transform: scale(1.08) translateY(-2px);
    filter: drop-shadow(0 6px 12px rgba(102, 126, 234, 0.25));
}

.brand {
    display: inline-block;
    padding: 8px 15px !important;
    margin-top: 3px;
    transition: all 0.3s ease;
    border-radius: 8px;
}

.brand:hover {
    background: rgba(102, 126, 234, 0.05) !important;
    backdrop-filter: blur(10px);
}

/* Responsive logo sizing */
@media (max-width: 768px) {
    .logo-modern {
        height: 38px;
        max-width: 180px;
    }

    .brand {
        padding: 5px 10px !important;
    }
}

@media (max-width: 480px) {
    .logo-modern {
        height: 32px;
        max-width: 150px;
    }
}

.footer-links li { display: inline; padding: 0 2px }

.footer {
	text-align: center;
	padding: 30px 0;
	margin-top: 18px;
	border-top: 1px solid #efefef;
	background-color: #efefef;
}

.magnifyarea  img { max-width: none ! important; max-height: none !important; }

.topFiller { height: 52px; display: block }

.box { }
.box .profile-intro { padding-left: 20px }

.thumbnail.box { height: 84px }

.thumbnail.order .price { text-align: center; font-size: 18px }

.oldprice { text-align: center; font-size: 14px; color: #888888 }

.thumbnail.order .percentage { color: #616161;
	font-size: 12px;
	font-weight: bold;
	padding-top: 8px;
	text-align: center;
}

.table-clickable tr:hover { cursor: pointer; }

.price { font-size: 15px }

.price .decimals { font-size: smaller }

.brand strong { color: #222222 }

/* MZ: Clear floating class */
.clr { content: "\0020"; display: block; clear: both; visibility: hidden; line-height: 0; height: 0 }

.image {
	position: relative;
}

.image .sale {
	position: absolute; /* absolute position (so we can position it where we want)*/
	/*bottombottom:0px; *//* position will be on bottom */
	toptop: 0px;
	left: 110px;
	top: -4px;
	width: 100%;
	/* styling bellow */
	font-family: 'tahoma';
	font-size: 15px;
	color: white;
	opacity: 0.9; /* transparency */
	filter: alpha(opacity=90); /* IE transparency */
	background: url('/resources/gfx/overlay/sale.png') no-repeat;
	height: 100px;
}

.nextpageicon { padding-top: 48px }

a.nextpage { font-size: 122px !important; height: 138px !important }

a:hover { text-decoration: none !important; }

.ui-autocomplete-input { background: #ffffff !important; }

.ui-autocomplete-input:focus { background-color: #eaeaea; }

.filterOptionSelection { cursor: pointer }

.removable { background-position: 3px 11px !important; }

.alert li { list-style: none }

.ui-autocomplete-input { float: left }


.well { background-color: #dedede !important; }

#frmFilter { padding-left: 2px }

#frmFilter .ui-autocomplete-input { width: 168px }

#frmFilter input[type="text"] { width: 248px }

#frmFilter select { width: 260px }

#frmFilter input[type="radio"] { float: left }

.ui-multiselect-checkboxes label input {
	margin-right: 6px;
	position: relative;
	top: -3px;
}

.filterOptionSelectionsBox {
	background-color: #cbd3cb;
	border: 1px solid #b5b5b5;
	border-radius: 5px 5px 5px 5px;
	margin-bottom: 4px;
	padding: 8px;
}

.replyform textarea#body { height: 200px  }

.filterOptionSelection  { cursor: pointer }
.removable { background-position: 3px 11px !important; }

.ui-button-autocomplete
{
	background-color: #888888;
	border: 1px solid #555;
	border-radius: 3px 3px 3px 3px;
	height: 18px !important;
	left: -19px;
	position: relative;
	width: 19px !important;
}

.thumbnailcontainer { height: 210px }

.contact-info { margin-left: 10px  }

.btn-embedded-toolbar { margin-top: 0px }

.tab-pane .row-fluid { }

.span-header { font-weight: bold }
.tab-pane > .row-fluid { padding: 4px }
.tab-pane > .row-fluid:nth-child(2n+1) { 	background-color: #f1f1f1; }


.paused { opacity: 0.5; filter:alpha(opacity=50);}

.navbar-inner .brand { padding-top: 4px; padding-bottom: 4px }

/* Navbar Styling - Ensure white text on dark background */
.navbar-dark .navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.95) !important;
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link:focus {
    color: #ffffff !important;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.navbar-dark .navbar-nav .nav-item.active .nav-link {
    color: #ffffff !important;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}

.navbar-dark .dropdown-menu {
    background-color: rgba(255, 255, 255, 0.98);
}

.navbar-dark .navbar-brand {
    color: #ffffff !important;
}

.navbar-dark .navbar-toggler {
    border-color: rgba(255, 255, 255, 0.5);
}

.navbar-dark .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.95%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.navbar .btn {
    color: #ffffff !important;
}

.navbar a:not(.dropdown-item) {
    color: rgba(255, 255, 255, 0.95) !important;
}

.navbar a:not(.dropdown-item):hover {
    color: #ffffff !important;
}

.messagecontent {  background: none repeat scroll 0 0 #EEEEEE;
	border: 1px solid #EEEEEE;
	border-radius: 10px 10px 10px 10px;
	padding: 10px;
}

.messagecontent h3 { margin-top: 0px  }

.middle { vertical-align: middle }

/* Private Message Styling */
.chatMessagePrivate {
    position: relative;
}

.chatMessagePrivate .messageBubble.privateBubble {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    border: 2px solid #667eea;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.chatMessagePrivate.chatMessageOwn .messageBubble.privateBubble {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%) !important;
    border: 2px solid #f093fb;
}

.chatMessagePrivate .messageContent {
    color: #ffffff !important;
}

.chatMessagePrivate .messageAuthor {
    color: #ffffff !important;
    font-weight: bold;
}

.chatMessagePrivate .messageTime {
    color: rgba(255, 255, 255, 0.9) !important;
}

.privateIndicator {
    display: inline-block;
    margin-left: 8px;
    padding: 2px 8px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    font-size: 11px;
    color: #ffffff;
    font-weight: normal;
}

.privateIndicator i {
    margin-right: 4px;
}

/* Private Message Modal Styling */
#privateMessageModal .modal-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 4px 4px 0 0;
}

#privateMessageModal .modal-header .close {
    color: white;
    opacity: 0.8;
}

#privateMessageModal .modal-header .close:hover {
    opacity: 1;
}

#privateMessageModal .modal-title {
    font-weight: 600;
}

#privateMessageModal .modal-title i {
    margin-right: 8px;
}

#privateMessageModal .recipient-info {
    padding: 10px 15px;
    background: rgba(102, 126, 234, 0.1);
    border-radius: 6px;
    border-left: 3px solid #667eea;
}

#privateMessageModal .recipient-name {
    color: #667eea;
    font-weight: 600;
    margin-left: 5px;
}

#privateMessageModal #privateMessageText {
    resize: vertical;
    min-height: 100px;
}

#privateMessageModal #privateMessageText:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

#privateMessageModal .btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
}

#privateMessageModal .btn-primary:hover {
    background: linear-gradient(135deg, #5568d3 0%, #63408a 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(102, 126, 234, 0.3);
}

#privateMessageModal .btn-primary i {
    margin-right: 6px;
}

.chatroomUser {
    cursor: pointer;
    transition: all 0.2s ease;
    border-radius: 6px;
    margin-bottom: 4px;
    padding: 8px;
}

.chatroomUser:hover {
    background: rgba(102, 126, 234, 0.1);
    transform: translateX(4px);
}

.chatroomUser .info {
    cursor: pointer;
}

.chatroomUser.ownUser {
    opacity: 0.7;
    cursor: default;
}

.chatroomUser.ownUser:hover {
    background: transparent;
    transform: none;
}

.guestUser {
    cursor: pointer;
    transition: all 0.2s ease;
    border-radius: 6px;
    margin-bottom: 4px;
    padding: 8px;
}

.guestUser:hover {
    background: rgba(102, 126, 234, 0.08);
}

/* ========================================
   Professional Form Styling
   ======================================== */

/* Form Container */
.form-horizontal {
    background: #ffffff;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

/* Fieldsets */
fieldset {
    background: #f8f9fa;
    border: 1px solid #e0e4e8;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 25px;
    transition: all 0.3s ease;
}

fieldset:hover {
    border-color: #667eea;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.1);
}

fieldset legend {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
    width: auto;
    border: none;
    box-shadow: 0 2px 6px rgba(102, 126, 234, 0.25);
}

/* Form Groups */
.control-group {
    margin-bottom: 20px;
    transition: all 0.2s ease;
}

.control-group:hover {
    transform: translateX(2px);
}

.control-label {
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 8px;
    display: block;
}

/* Input Fields */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="date"],
input[type="tel"],
input[type="url"],
textarea,
select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e0e4e8;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
    background: #ffffff;
    color: #2d3748;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="number"]:focus,
input[type="date"]:focus,
input[type="tel"]:focus,
input[type="url"]:focus,
textarea:focus,
select:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    outline: none;
    background: #fafbfc;
}

input[type="text"]:hover,
input[type="email"]:hover,
input[type="password"]:hover,
input[type="number"]:hover,
input[type="date"]:hover,
input[type="tel"]:hover,
input[type="url"]:hover,
textarea:hover,
select:hover {
    border-color: #667eea;
}

/* Textareas */
textarea {
    min-height: 120px;
    resize: vertical;
    font-family: inherit;
}

/* Select Dropdowns */
select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23667eea' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 40px;
}

/* Checkboxes and Radio Buttons */
input[type="checkbox"],
input[type="radio"] {
    width: 18px;
    height: 18px;
    margin-right: 8px;
    cursor: pointer;
    vertical-align: middle;
}

/* File Upload */
input[type="file"] {
    padding: 10px;
    border: 2px dashed #e0e4e8;
    border-radius: 8px;
    background: #f8f9fa;
    cursor: pointer;
    transition: all 0.3s ease;
}

input[type="file"]:hover {
    border-color: #667eea;
    background: #fafbfc;
}

/* Buttons */
.btn {
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #5568d3 0%, #63408a 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.4);
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.btn-default,
.btn-secondary {
    background: #e0e4e8;
    color: #2d3748;
}

.btn-default:hover,
.btn-secondary:hover {
    background: #cbd3db;
    transform: translateY(-2px);
}

.btn-success {
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
    color: white;
}

.btn-success:hover {
    background: linear-gradient(135deg, #38a169 0%, #2f855a 100%);
    transform: translateY(-2px);
}

.btn-danger {
    background: linear-gradient(135deg, #f56565 0%, #e53e3e 100%);
    color: white;
}

.btn-danger:hover {
    background: linear-gradient(135deg, #e53e3e 0%, #c53030 100%);
    transform: translateY(-2px);
}

.btn-warning {
    background: linear-gradient(135deg, #ed8936 0%, #dd6b20 100%);
    color: white;
}

.btn-warning:hover {
    background: linear-gradient(135deg, #dd6b20 0%, #c05621 100%);
    transform: translateY(-2px);
}

.btn i,
.btn [class^="icon-"],
.btn [class*=" icon-"] {
    font-size: 16px;
}

/* Button Sizes */
.btn-large {
    padding: 16px 32px;
    font-size: 16px;
}

.btn-small {
    padding: 8px 16px;
    font-size: 12px;
}

/* Help Text */
.help-block,
.text-warning,
.text-info {
    font-size: 13px;
    margin-top: 6px;
    display: block;
}

.text-warning {
    color: #d69e2e;
    font-style: italic;
}

.text-info {
    color: #4299e1;
}

.text-right {
    text-align: right;
}

/* Alerts */
.alert {
    padding: 16px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.alert-info {
    background: linear-gradient(135deg, #4299e1 0%, #3182ce 100%);
    color: white;
}

.alert-success {
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
    color: white;
}

.alert-warning {
    background: linear-gradient(135deg, #ed8936 0%, #dd6b20 100%);
    color: white;
}

.alert-danger,
.alert-error {
    background: linear-gradient(135deg, #f56565 0%, #e53e3e 100%);
    color: white;
}

.alert ul {
    margin: 0;
    padding: 0;
}

.alert li {
    list-style: none;
    padding: 4px 0;
}

.alert i,
.alert [class^="icon-"],
.alert [class*=" icon-"] {
    margin-right: 8px;
}

/* Form Validation States */
.control-group.error input,
.control-group.error textarea,
.control-group.error select {
    border-color: #f56565;
}

.control-group.error .control-label {
    color: #e53e3e;
}

.control-group.success input,
.control-group.success textarea,
.control-group.success select {
    border-color: #48bb78;
}

.control-group.warning input,
.control-group.warning textarea,
.control-group.warning select {
    border-color: #ed8936;
}

/* Page Headers */
h2, h3, h4 {
    color: #2d3748;
    font-weight: 600;
    margin-bottom: 20px;
}

h2 {
    font-size: 28px;
    padding-bottom: 12px;
    border-bottom: 3px solid #667eea;
    display: inline-block;
    margin-bottom: 30px;
}

/* Responsive Form Layout */
@media (max-width: 768px) {
    .form-horizontal {
        padding: 15px;
    }

    fieldset {
        padding: 15px;
    }

    fieldset legend {
        padding: 8px 15px;
        font-size: 14px;
    }

    input[type="text"],
    input[type="email"],
    input[type="password"],
    input[type="number"],
    input[type="date"],
    input[type="tel"],
    input[type="url"],
    textarea,
    select {
        padding: 10px 12px;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }
}

/* Multi-Select / Checkbox Groups */
.checkbox-group,
.radio-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.checkbox-group label,
.radio-group label {
    display: flex;
    align-items: center;
    padding: 10px;
    border: 2px solid #e0e4e8;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.checkbox-group label:hover,
.radio-group label:hover {
    border-color: #667eea;
    background: #f8f9fa;
}

.checkbox-group input:checked + label,
.radio-group input:checked + label {
    border-color: #667eea;
    background: rgba(102, 126, 234, 0.1);
}

/* Loading States */
.btn.loading {
    opacity: 0.7;
    cursor: wait;
    position: relative;
}

.btn.loading::after {
    content: "";
    position: absolute;
    width: 16px;
    height: 16px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 0.6s linear infinite;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
}

@keyframes spin {
    to { transform: translateY(-50%) rotate(360deg); }
}

/* Form Embedded Styling */
.form_embedded {
    margin-bottom: 20px;
}

.form_embedded .control-group {
    margin-bottom: 0;
}

/* Profile Edit Specific Styling */
.profile-edit-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 30px 20px;
}

.page-header {
    margin-bottom: 40px;
    text-align: center;
}

.page-header h2 {
    display: inline-block;
    margin: 0;
    padding: 15px 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
    border: none;
}

.page-header h2 i {
    margin-right: 10px;
}

.featured-section {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
    border: 2px solid #667eea;
}

.photo-section {
    background: linear-gradient(135deg, rgba(237, 137, 54, 0.05) 0%, rgba(221, 107, 32, 0.05) 100%);
    border: 2px solid #ed8936;
}

.photo-section legend {
    background: linear-gradient(135deg, #ed8936 0%, #dd6b20 100%);
}

.featured-section legend {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

fieldset legend i {
    margin-right: 8px;
}

.form-section {
    margin-bottom: 25px;
    padding-top: 15px;
}

.form-section:first-child {
    padding-top: 0;
}

.form-section:not(:last-child) {
    border-bottom: 1px solid #e0e4e8;
    padding-bottom: 20px;
}

.section-subtitle {
    font-size: 16px;
    font-weight: 600;
    color: #667eea;
    margin-bottom: 15px;
    padding-left: 10px;
    border-left: 4px solid #667eea;
}

.form-actions {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 8px;
    text-align: center;
    margin-top: 30px;
    border: 2px dashed #e0e4e8;
}

.form-actions .btn {
    margin: 0 10px;
}

.help-block {
    display: block;
    margin-top: 8px;
    color: #718096;
    font-size: 13px;
    line-height: 1.5;
}

.help-block i {
    margin-right: 6px;
    color: #4299e1;
}

/* Saved Indicator Animation */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.alert-success {
    animation: fadeInDown 0.5s ease;
}

/* Form Field Icons */
.control-group.with-icon {
    position: relative;
}

.control-group.with-icon i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #a0aec0;
    pointer-events: none;
}

.control-group.with-icon input {
    padding-left: 45px;
}

/* Improved Well Styling */
.well {
    background: #f8f9fa !important;
    border: 1px solid #e0e4e8;
    border-radius: 8px;
    box-shadow: none;
}

/* Responsive Adjustments for Profile Edit */
@media (max-width: 768px) {
    .profile-edit-container {
        padding: 15px 10px;
    }

    .page-header h2 {
        padding: 12px 20px;
        font-size: 22px;
    }

    .form-actions .btn {
        width: 100%;
        margin: 5px 0;
    }

    .section-subtitle {
        font-size: 14px;
    }
}

/* Registration Page Styling */
.register-container {
    margin: 0 auto;
}

.register-container .form-horizontal {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.register-container fieldset {
    margin-bottom: 30px;
}

@media (max-width: 768px) {
    .register-container {
        padding: 15px 10px;
    }
}

/* ========================================
   Additional Form Utilities
   ======================================== */

/* Label with Required Indicator */
.required::after {
    content: " *";
    color: #e53e3e;
    font-weight: bold;
}

/* Input Groups */
.input-group {
    display: flex;
    align-items: stretch;
}

.input-group input {
    border-radius: 8px 0 0 8px;
    flex: 1;
}

.input-group-addon {
    padding: 12px 16px;
    background: #e0e4e8;
    border: 2px solid #e0e4e8;
    border-left: none;
    border-radius: 0 8px 8px 0;
    display: flex;
    align-items: center;
    font-size: 14px;
    color: #2d3748;
}

/* Form Grid Layout */
.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

/* Inline Form Elements */
.form-inline {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.form-inline input,
.form-inline select {
    flex: 1;
    min-width: 200px;
}

/* Badge on Forms */
.badge-form {
    display: inline-block;
    padding: 4px 10px;
    background: #667eea;
    color: white;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    margin-left: 8px;
}

/* Character Counter */
.char-counter {
    text-align: right;
    font-size: 12px;
    color: #a0aec0;
    margin-top: 4px;
}

.char-counter.warning {
    color: #ed8936;
}

.char-counter.danger {
    color: #e53e3e;
}

/* Toggle Switch */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #cbd5e0;
    transition: 0.3s;
    border-radius: 26px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

.toggle-switch input:checked + .toggle-slider {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.toggle-switch input:checked + .toggle-slider:before {
    transform: translateX(24px);
}

/* Disabled States */
input:disabled,
textarea:disabled,
select:disabled,
button:disabled,
.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

input:disabled,
textarea:disabled,
select:disabled {
    background-color: #f1f1f1;
}

/* Placeholder Styling */
input::placeholder,
textarea::placeholder {
    color: #a0aec0;
    opacity: 1;
}

/* Focus Within for Form Groups */
.control-group:focus-within .control-label {
    color: #667eea;
}

/* Progress Bar for Forms */
.form-progress {
    width: 100%;
    height: 6px;
    background: #e0e4e8;
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 30px;
}

.form-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    transition: width 0.3s ease;
}

/* Tooltip Support */
.tooltip-trigger {
    position: relative;
    cursor: help;
    border-bottom: 1px dotted #667eea;
}

.tooltip-trigger:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    padding: 8px 12px;
    background: #2d3748;
    color: white;
    font-size: 12px;
    white-space: nowrap;
    border-radius: 6px;
    margin-bottom: 5px;
    z-index: 1000;
}

/* Floating Labels */
.floating-label-group {
    position: relative;
    margin-bottom: 25px;
}

.floating-label-group input,
.floating-label-group textarea {
    padding-top: 20px;
}

.floating-label-group label {
    position: absolute;
    left: 16px;
    top: 12px;
    color: #a0aec0;
    transition: all 0.3s ease;
    pointer-events: none;
}

.floating-label-group input:focus + label,
.floating-label-group textarea:focus + label,
.floating-label-group input:not(:placeholder-shown) + label,
.floating-label-group textarea:not(:placeholder-shown) + label {
    top: 4px;
    font-size: 11px;
    color: #667eea;
}

/* Card Style Forms */
.form-card {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 25px;
}

.form-card-header {
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e0e4e8;
}

.form-card-title {
    font-size: 20px;
    font-weight: 600;
    color: #2d3748;
    margin: 0;
}

/* Search Form Specific */
.search-form {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
}

.search-form input {
    flex: 1;
}

.search-form button {
    white-space: nowrap;
}

.formfield-fieldmulticheckboxrendertype {
    border: 1px solid #e0e4e8;
    padding: 4px
}

.formfield-fieldmulticheckboxrendertype .controls {
    max-height: 300px;
    overflow-y: auto;

}

.formfield-fieldmulticheckboxrendertype .toggle-all {
    display: block !important;

}

.formfield-fieldmulticheckboxrendertype .checkbox-group-item {
    display: contents;

}

.formfield-fieldmulticheckboxrendertype .checkbox-group-item label {
    margin-right: 15px;

}

/* Profile Search Filter Styling */
#filterAccordion .card {
    border-radius: 6px;
    overflow: hidden;
}

#filterAccordion .card-header {
    border-radius: 6px !important;
    transition: all 0.2s ease;
}

#filterAccordion .card-header:hover {
    background-color: #e8f0fe !important;
}

#filterAccordion .btn-link {
    text-decoration: none;
    padding: 0.75rem 1rem;
    transition: all 0.2s ease;
}

#filterAccordion .btn-link:hover {
    text-decoration: none;
}

#filterAccordion .btn-link i.fa-chevron-down {
    transition: transform 0.2s ease;
    float: right;
    margin-top: 4px;
}

#filterAccordion .btn-link:not(.collapsed) i.fa-chevron-down {
    transform: rotate(180deg);
}

#filterAccordion .card-body {
    background-color: #fafbfc;
}

#filterAccordion label.small {
    margin-bottom: 0.25rem;
    color: #5f6368;
}

#filterAccordion .form-control,
#filterAccordion .custom-select {
    font-size: 0.9rem;
    border-radius: 4px;
    border-color: #dadce0;
}

#filterAccordion .form-control:focus,
#filterAccordion .custom-select:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.15);
}

/* Compact filter top bar */
.filter-topbar {
    border-radius: 8px;
}

.filter-topbar .filter-chip {
    font-size: 0.75rem;
    font-weight: 500;
}

.filter-topbar .gap-2 {
    gap: 0.5rem;
}

#filterModal .modal-body {
    max-height: 70vh;
}

#filterModal .filter-accordion .btn-link .fas.fa-chevron-down {
    transition: transform 0.3s ease;
}

#filterModal .filter-accordion .btn-link.collapsed .fas.fa-chevron-down {
    transform: rotate(-90deg);
}

#filterModal .filter-accordion .btn-link:not(.collapsed) .fas.fa-chevron-down {
    transform: rotate(0deg);
}

/* Search results styling */
.search-results-header {
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 1rem;
    margin-bottom: 2rem;
}

/* Mobile responsive filters */
@media (max-width: 768px) {
    .filter-topbar .card-body {
        padding: 0.75rem;
    }
}

/* ========================================
   Responsive Navbar Styling
   ======================================== */

/* Navbar spacing and padding for all devices */
.navbar {
    padding: 0.75rem 1rem;
}

.navbar-brand {
    padding-top: 0;
    padding-bottom: 0;
}

/* Navbar item spacing */
.navbar-nav .nav-item {
    margin: 0 0.25rem;
}

.navbar-nav .nav-link {
    padding: 0.5rem 0.75rem !important;
    border-radius: 6px;
    transition: all 0.2s ease;
}

/* Dropdown menu improvements */
.navbar-nav .dropdown-menu {
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border: none;
    margin-top: 0.5rem;
}

.navbar-nav .dropdown-item {
    padding: 0.5rem 1.25rem;
    transition: all 0.2s ease;
}

.navbar-nav .dropdown-item:hover {
    background-color: rgba(102, 126, 234, 0.1);
    color: #667eea;
}

/* Badge positioning for message count */
.nav-link .badge {
    font-size: 0.65rem;
    padding: 0.25em 0.5em;
}

/* Mobile responsive adjustments */
@media (max-width: 991.98px) {
    /* Stack navbar items vertically on mobile */
    .navbar-collapse {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        margin: 0.5rem -1rem -0.75rem;
        padding: 1rem;
        border-radius: 0 0 8px 8px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    }

    .navbar-nav {
        margin-top: 0.5rem;
    }

    .navbar-nav .nav-item {
        margin: 0.25rem 0;
    }

    .navbar-nav .nav-link {
        padding: 0.75rem 1rem !important;
        border-radius: 6px;
    }

    .navbar-nav .nav-link:hover,
    .navbar-nav .nav-link:focus {
        background-color: rgba(255, 255, 255, 0.15);
    }

    /* Dropdown on mobile */
    .navbar-nav .dropdown-menu {
        background-color: rgba(255, 255, 255, 0.95);
        margin: 0.5rem 0;
        border-radius: 6px;
    }

    /* Show text labels on mobile */
    .navbar-nav .nav-link .d-none {
        display: inline !important;
    }

    /* Better spacing for user info section */
    .navbar-nav.ms-auto {
        margin-top: 1rem;
        padding-top: 1rem;
        border-top: 1px solid rgba(255, 255, 255, 0.2);
    }

    /* Adjust message badge on mobile */
    .nav-link .position-absolute {
        position: relative !important;
        transform: none !important;
        display: inline-block;
        margin-left: 0.5rem;
    }
}

/* Tablet adjustments */
@media (min-width: 768px) and (max-width: 991.98px) {
    .navbar-nav .nav-link {
        font-size: 0.9rem;
        padding: 0.4rem 0.6rem !important;
    }

    .logo-modern {
        height: 36px;
    }
}

/* Small mobile devices */
@media (max-width: 575.98px) {
    .navbar {
        padding: 0.5rem 0.75rem;
    }

    .logo-modern {
        height: 32px;
        max-width: 140px;
    }

    .topFiller {
        height: 56px;
    }

    /* Compact mobile menu */
    .navbar-nav .nav-link {
        padding: 0.6rem 0.75rem !important;
        font-size: 0.95rem;
    }

    .navbar-nav .nav-link i {
        font-size: 1.1rem;
        margin-right: 0.5rem;
    }
}

/* Container responsive padding */
@media (max-width: 768px) {
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
}

/* Fix modal on mobile */
@media (max-width: 576px) {
    .modal-dialog {
        margin: 0.5rem;
    }

    .modal-content {
        border-radius: 8px;
    }
}

/* Responsive chatroom tiles */
@media (max-width: 768px) {
    .chatroom-tile {
        margin-bottom: 1rem;
    }
}

/* Responsive profile cards */
@media (max-width: 576px) {
    .profile-card {
        margin-bottom: 1rem;
    }

    .profile-card .card-body {
        padding: 1rem;
    }
}

/* Responsive form elements */
@media (max-width: 768px) {
    .form-horizontal .control-label {
        text-align: left;
        margin-bottom: 0.5rem;
    }

    .form-horizontal .controls {
        margin-left: 0;
    }
}

/* Responsive timeline */
@media (max-width: 768px) {
    .timeline-post {
        margin-bottom: 1.5rem;
    }

    .post-actions {
        flex-wrap: wrap;
    }

    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
}

/* Responsive search filters */
@media (max-width: 768px) {
    #filterAccordion {
        margin-bottom: 1.5rem;
    }

    .search-results {
        margin-top: 1rem;
    }
}

/* Ensure proper container spacing on all devices */
.container {
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
    margin-right: auto;
    margin-left: auto;
}

/* Improve card responsiveness */
@media (max-width: 767.98px) {
    .card {
        margin-bottom: 1rem;
    }

    .card-body {
        padding: 1rem;
    }
}

/* Improve button responsiveness */
@media (max-width: 575.98px) {
    .btn {
        padding: 0.5rem 1rem;
        font-size: 0.95rem;
    }

    .btn-lg {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
}

/* Improve table responsiveness */
@media (max-width: 767.98px) {
    .table-responsive {
        display: block;
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}

/* Fix overflow issues on mobile */
@media (max-width: 767.98px) {
    body {
        overflow-x: hidden;
    }

    img {
        max-width: 100%;
        height: auto;
    }
}


.box.medium .img-profileimage {
    max-width: 150px;
    max-height: 150px;
}

/* Global Image Post Button Styling */
.navbar .btn-primary {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    border: none;
    box-shadow: 0 2px 8px rgba(245, 87, 108, 0.3);
    transition: all 0.3s ease;
}

.navbar .btn-primary:hover {
    background: linear-gradient(135deg, #e082ea 0%, #e4465b 100%);
    box-shadow: 0 4px 12px rgba(245, 87, 108, 0.4);
    transform: translateY(-1px);
}

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

/* Modal Header Styling */
.modal-header.bg-gradient-primary {
    border-bottom: none;
}

.modal-header .btn-close-white {
    filter: brightness(0) invert(1);
    opacity: 0.9;
}

.modal-header .btn-close-white:hover {
    opacity: 1;
}

/* Image Preview Styling */
#globalImagePreviewContainer {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 0.5rem;
}

#globalImagePreviewContainer .btn-danger {
    opacity: 0.9;
}

#globalImagePreviewContainer .btn-danger:hover {
    opacity: 1;
}

/* Breadcrumb Styling */
.chatzo-breadcrumb {
    background: #ffffff;
    border: 1px solid rgba(102, 126, 234, 0.15);
    border-radius: 999px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
    padding: 0.25rem 1rem;
}

.chatzo-breadcrumb .breadcrumb {
    margin-bottom: 0;
    background: transparent;
    padding: 0.25rem 0;
}

.chatzo-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
    color: rgba(118, 75, 162, 0.6);
}

.chatzo-breadcrumb .breadcrumb-item a {
    color: #5b6ee1;
    text-decoration: none;
    font-weight: 600;
}

.chatzo-breadcrumb .breadcrumb-item a:hover {
    color: #4a5bd4;
    text-decoration: underline;
}

.chatzo-breadcrumb .breadcrumb-item.active {
    color: #3a3a3a;
    font-weight: 600;
}

@media (max-width: 575.98px) {
    .chatzo-breadcrumb {
        display: none
    }
}

/* Mobile Responsive */
@media (max-width: 991.98px) {
    .navbar .btn-primary {
        padding: 0.375rem 0.75rem;
        font-size: 1rem;
    }
}

@media (max-width: 767.98px) {
    .modal-dialog {
        margin: 0.5rem;
    }

    #globalImagePreview {
        max-height: 300px !important;
    }
}
.breadcrumbs.mb-3 {
    margin-bottom: 0 !important;
}

.profile-results .card {
    height: 100%;
}

/* Chat Conversations Dropdown Styling (Facebook Messenger style) */
#chatConversationsDropdown .dropdown-menu {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    padding: 0;
}

#chatConversationsDropdown .dropdown-header {
    padding: 12px 16px;
    font-size: 1rem;
    border-bottom: 1px solid #e9ecef;
    background-color: #f8f9fa;
    border-radius: 8px 8px 0 0;
}

#chatConversationsDropdown .dropdown-item {
    padding: 12px 16px;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.2s ease;
}

#chatConversationsDropdown .dropdown-item:hover {
    background-color: #f8f9fa;
}

#chatConversationsDropdown .dropdown-item:last-child {
    border-bottom: none;
}

#chatConversationsDropdown .dropdown-divider {
    margin: 0;
}

#conversationsLoader,
#conversationsEmpty {
    padding: 20px 16px;
}

#conversationsList .dropdown-item img {
    flex-shrink: 0;
}

#conversationsList .dropdown-item .text-truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Responsive adjustments for conversations dropdown */
@media (max-width: 576px) {
    #chatConversationsDropdown .dropdown-menu {
        width: 300px !important;
        max-height: 400px !important;
    }

    #chatConversationsDropdown .dropdown-item {
        padding: 10px 12px;
    }

    #conversationsList .dropdown-item img {
        width: 35px !important;
        height: 35px !important;
    }
}
