/* Avatar Styling */
.navbar .rounded-circle {
    transition: all 0.2s ease-in-out;
    cursor: pointer;
}

.navbar .rounded-circle:hover {
    transform: scale(1.05);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.25) !important;
}

.navbar .dropdown-toggle::after {
    display: none;
}

.guest-avatar {
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%) !important;
}

.user-avatar {
    background: linear-gradient(135deg, var(--primary-color) 0%, #5d1be3 100%) !important;
}

/* Custom Styles */
:root {
    --primary-color: #7330f8;
    --secondary-color: #6c757d;
}

html, body {
    height: 100%;
}

* {
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none;  /* IE and Edge */
}

*::-webkit-scrollbar {
    display: none; /* Chrome, Safari and Opera */
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
}

main {
    flex: 1 0 auto;
}

.navbar {
    background-color: var(--primary-color) !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06) !important;
    height: 64px;
    padding: 20px !important;
}

.navbar .container,
.navbar .container-fluid {
    height: 100%;
    display: flex;
    align-items: center;
}

.navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.8) !important;
    font-weight: 500;
    transition: color 0.2s ease;
    display: flex;
    align-items: center;
}

.navbar-nav .nav-link:hover, 
.navbar-nav .nav-link:focus {
    color: #fff !important;
}

.navbar-nav .nav-link.active {
    color: #fff !important;
}

.navbar .btn-primary {
    background-color: #fff !important;
    color: var(--primary-color) !important;
    border-color: #fff !important;
    font-weight: 600;
}

.navbar .btn-primary:hover {
    background-color: rgba(255, 255, 255, 0.9) !important;
    color: #5d1be3 !important;
}

.navbar-brand {
    padding: 0;
    color: #fff !important;
}

.brand-title {
    font-size: 1.15rem;
    letter-spacing: -0.02em;
}

.brand-subtitle {
    font-weight: 400;
}


.icon-square {
    width: 3rem;
    height: 3rem;
    border-radius: .75rem;
}

.icon-square-container {
    width: 3rem;
    height: 3rem;
    border-radius: .75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.bg-primary-soft { background-color: rgba(115, 48, 248, 0.1) !important; }
.bg-success-soft { background-color: rgba(25, 135, 84, 0.1) !important; }
.bg-info-soft { background-color: rgba(13, 202, 240, 0.1) !important; }
.bg-warning-soft { background-color: rgba(255, 193, 7, 0.1) !important; }
.bg-danger-soft { background-color: rgba(220, 53, 69, 0.1) !important; }

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover, .btn-primary:focus, .btn-primary:active {
    background-color: #5d1be3 !important;
    border-color: #5d1be3 !important;
}

.text-primary {
    color: var(--primary-color) !important;
}


/* Breadcrumb Styles */
.sticky-breadcrumb {
    position: sticky;
    top: 64px;
    z-index: 1010;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    padding-left: 25px;
    padding-right: 25px;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: "\F285"; /* bi-chevron-right */
    font-family: "bootstrap-icons";
    font-size: 0.75rem;
    color: var(--secondary-color);
    vertical-align: middle;
    line-height: 1;
}

.breadcrumb-item i {
    font-size: 0.9rem;
    line-height: 1;
}

.breadcrumb-item a {
    font-weight: 500;
    transition: color 0.2s ease;
}

.breadcrumb-item a:hover {
    color: var(--primary-color) !important;
}

.breadcrumb-item.active {
    font-weight: 600;
    color: var(--primary-color) !important;
}

.breadcrumb-nav a {
    transition: color 0.2s ease;
}

.breadcrumb-nav a:hover {
    color: var(--primary-color) !important;
}

/* Auth and Error views specific sizing */
.auth-card-container {
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
}

.card {
    transition: transform 0.2s ease-in-out;
}

.card:hover {
    transform: translateY(-2px);
}

/* Registration Progress Styles */
.registration-steps {
    display: flex;
    justify-content: space-between;
    position: relative;
    margin-bottom: 2rem;
}

.registration-steps::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    background-color: #e9ecef;
    z-index: 1;
    transform: translateY(-50%);
}

.step-item {
    position: relative;
    z-index: 2;
    background-color: #fff;
    padding: 0 10px;
    text-align: center;
}

.step-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #e9ecef;
    color: #6c757d;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 5px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid #e9ecef;
}

.step-item.active .step-icon {
    background-color: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

.step-item.completed .step-icon {
    background-color: #198754;
    color: #fff;
    border-color: #198754;
}

.step-label {
    font-size: 0.8rem;
    font-weight: 500;
    color: #6c757d;
}

.step-item.active .step-label {
    color: var(--primary-color);
    font-weight: 600;
}

footer {
    position: relative;
    z-index: 10;
}

/* Fix dropdown z-index issues */
.dropdown-menu {
    z-index: 2000 !important;
}

/* Ensure parents don't clip dropdowns */
.table-responsive {
    overflow: visible !important;
}

/* Ensure images don't cause shifts */
img {
    max-width: 100%;
    height: auto;
}

/* Fun Bubbly Text */
.bubbly-text {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    letter-spacing: -0.01em;
}

/* Chat Widget Styles */
.chat-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 2001;
}

.chat-toggle {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.chat-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.chat-container {
    position: absolute;
    bottom: 70px;
    right: 0;
    width: 320px;
    background-color: #fff;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    transform-origin: bottom right;
    animation: chatOpen 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes chatOpen {
    from {
        opacity: 0;
        transform: scale(0.5) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.chat-messages {
    background-color: #f8f9fa;
    scrollbar-width: thin !important;
}

.chat-messages::-webkit-scrollbar {
    display: block !important;
    width: 4px;
}

.chat-messages::-webkit-scrollbar-thumb {
    background-color: rgba(0,0,0,0.1);
    border-radius: 10px;
}

.message-avatar {
    width: 28px;
    height: 28px;
}

.message-content {
    max-width: 100%;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
    word-wrap: break-word;
}

.message-received .message-content {
    border-bottom-left-radius: 2px !important;
}

.message-sent .message-content {
    border-bottom-right-radius: 2px !important;
}

.message-time {
    font-weight: 500;
}

.chat-input .form-control:focus {
    box-shadow: none;
}
