/* Скриваме елементите по подразбиране, докато JS не ги обработи */
.trbn-navigator-modal,
.trbn-navigator-icon,
.trbn-navigator-panel {
    display: none;
}

/* Останалите стилове остават същите */
.trbn-navigator-container {
    position: fixed;
    z-index: 10000;
}

.trbn-navigator-modal {
    position: fixed;
	right: 20px;
	bottom: 120px;
    width: 220px;
    /* background-color: rgba(0, 0, 0, 0.7); */
    display: flex;
    /* justify-content: center; */
    /* align-items: center; */
    z-index: 10001;
    animation: trbnFadeIn 0.5s ease;
}

.trbn-modal-content {
	background: #ffffff;
    background: linear-gradient(180deg,rgba(255, 255, 255, 1) 70%, rgba(222, 222, 222, 1) 100%);
    padding: 10px 20px;
    border-radius: 15px;
    width: 220px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: trbnScaleUp 0.5s ease;
}

.trbn-modal-content h2 {
    color: #000000;
    margin: 10px;
    font-size: 16px;
	font-weight: bold;
}

.trbn-modal-content p {
    font-size: 13px;
    margin-bottom: 30px;
    color: #555;
}

/* Когато тръгне анимацията */
.trbn-flyaway h2,
.trbn-flyaway p {
  opacity: 0;
  transition: opacity 0.1s ease;
}

.trbn-flyaway {
  animation: trbnFoldAndFly 1.0s forwards;
  animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes trbnFoldAndFly {
  0% {
    opacity: 1;
    transform: translate(0, 0) scale(1);
  }

  20% {
    border-radius: 30%;
    transform: translate(0, -80px) scale(0.95); /* 👈 само лека засилка нагоре */
  }

  40% {
    border-radius: 50%;
    width: 90px;
    height: 90px;
    background: radial-gradient(circle, rgb(81,206,10) 42%, rgb(0,0,0) 100%);
    opacity: 0.9;
    transform: translate(0, -30px) scale(0.9);
  }

  100% {
    border-radius: 50%;
    width: 60px;
    height: 60px;
    background: radial-gradient(circle, rgb(81,206,10) 42%, rgb(0,0,0) 100%);
    transform: translate(calc(100vw - 30px), calc(100vh - 30px)) scale(0.9);
    opacity: 0;
  }
}

.trbn-navigator-icon {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: radial-gradient(circle,rgb(81, 206, 10) 42%, rgb(4, 47, 12) 100%);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    z-index: 10000;
    transition: all 0.3s ease;
	overflow: visible;
}

.trbn-navigator-icon::before,
.trbn-navigator-icon::after {
	content: "";
	position: absolute;
	width: 100%;
	height: 100%;
	border-radius: 50%;
	background: radial-gradient(circle,rgba(93,255,0,1) 0%,rgba(20,49,4,.57) 70%);
	animation: ripple 2.5s infinite;
	z-index: -1;
	display: inline-block;
}

.trbn-navigator-icon::after {
  animation-delay: 1.25s; /* втора вълна да тръгва със закъснение */
}

/* анимация */
@keyframes ripple {
  0% {
    transform: scale(1);
    opacity: 0.7;
  }
  70% {
    transform: scale(1.4);
    opacity: 0.2;
  }
  100% {
    transform: scale(1.6);
    opacity: 0;
  }
}

.trbn-navigator-icon:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.trbn-navigator-icon i {
    color: white;
    font-size: 24px;
    font-weight: bold;
}

.trbn-navigator-panel {
    position: fixed;
    bottom: 120px;
    right: 30px;
    width: 400px;
	max-height: 500px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    padding: 15px 20px;
    z-index: 10000;
    display: none;
    animation: trbnSlideUp 0.3s ease;
	border-bottom: 6px solid #47bc04;
}

.trbn-navigator-panel h3 {
	background: #2f2f2f;
	background: radial-gradient(circle,rgba(238, 238, 238, 0.59) 42%,rgb(225, 225, 225) 100%);
	background: linear-gradient(180deg,rgb(242, 241, 241)80%, rgb(222, 222, 222) 100%);
    color: #000000;
    margin-bottom: 15px;
    text-align: center;
    font-size: 1.4rem;
	font-size: 16px;
	padding: 15px;
}

.trbn-category-selector {
    display: flex;
    margin-bottom: 15px;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
}

.trbn-category-option {
    flex: 1;
    text-align: center;
}

.trbn-category-option input {
    display: none;
}

.trbn-category-option label {
    display: block;
    padding: 8px 5px;
    border-radius: 0px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 500;
    color: #666;
}

.trbn-category-option input {
	padding: 5px 10px;
}

.trbn-category-option input:checked + label {
    background: #f0f0f0;
	background: linear-gradient(180deg,rgba(65, 174, 2, 0.79)80%,rgb(48, 134, 3) 100%);
    color: #ffffff;
}

/* Нови стилове за падащото меню с въпроси */
.trbn-questions-dropdown-container {
    margin-bottom: 60px;
    position: relative;
	transition: margin-bottom 0.3s ease;
	background: linear-gradient(180deg,rgb(242, 241, 241)80%, rgb(222, 222, 222) 100%);
}

.trbn-questions-dropdown {
    width: 100%;
    padding: 8px 15px;
    border: 1px solid #f0f0f0;
    border-radius: 0px;
    font-size: 14px;
    color: #333;
    cursor: pointer;
    transition: all 0.3s ease;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
	background-color: transparent;
}

.trbn-questions-dropdown:hover {
    border-color: #f0f0f0;
	background-color: #f0f0f0;
}

.trbn-questions-dropdown:focus {
    outline: none;
    border-color: #f0f0f0;
	background-color: #f0f0f0;
}

.trbn-questions-dropdown option {
    padding: 12px;
    font-size: 14px;
	background: #ffffff;
}

.trbn-questions-dropdown option:hover {

	background: #f0f0f0;
}


.trbn-questions-dropdown option:first-child {
    color: #999;
    font-style: italic;
}

.trbn-questions-list {
    max-height: 250px;
    overflow-y: auto;
    margin-bottom: 15px;
}

.trbn-question-item {
    padding: 12px 15px;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: all 0.2s ease;
    border-radius: 0px;
    margin-bottom: 5px;
}

.trbn-question-item:hover {
    background-color: #f5f7fa;
}

.trbn-question-item.active {
    background-color: #e6f0ff;
    border-left: 3px solid #2575fc;
}

.trbn-answer-area {
	position: relative;
    background: #f9f9f9;
    padding: 15px;
    border-radius: 0px;
    margin-top: -55px;
    display: none;
    animation: trbnFadeIn 0.3s ease;
	max-height: 290px;          /* фиксирана височина */
	overflow-y: auto;       /* да може да се скролва по вертикала */
	scrollbar-width: thin;
    scrollbar-color: rgba(52, 174, 16, 1) transparent;
}

.trbn-answer-area:hover {
    scrollbar-color: rgba(52, 174, 16, 1) transparent;
}


/* Webkit скролбар (Chrome, Safari, Edge) */
.trbn-answer-area::-webkit-scrollbar {
    width: 2px;
}

.trbn-answer-area::-webkit-scrollbar-track {
    background: transparent;
    border-radius: 1px;
    margin: 5px 0;
}

.trbn-answer-area::-webkit-scrollbar-thumb {
    background: rgba(52, 174, 16, 1);
    border-radius: 4px;
    border: 2px solid transparent;
    background-clip: padding-box;
    transition: background 0.3s ease;
}

.trbn-answer-area::-webkit-scrollbar-thumb:hover {
    background: rgba(52, 174, 16, 1);
    background-clip: padding-box;
	width: 4px; /* Леко се удебелява при hover */
}

.trbn-answer-area::-webkit-scrollbar-thumb:active {
    background: rgba(52, 174, 16, 1);
    background-clip: padding-box;
}



.trbn-fade {
	position: absolute;
	bottom: 0;
	left: 0;
	width: 100%;
	height: 80px;
	pointer-events: none;
	background: linear-gradient(to bottom, rgba(255,255,255,0), rgba(255,255,255,1));
}

.trbn-answer-area h4 {
    color: #2575fc;
    margin-bottom: 10px;
}

.trbn-answer-area p {
    margin: 0 0 10px 0;
    line-height: 1.6;
    color: #555;
}

.trbn-answer-area a {
    color: #2575fc;
    text-decoration: underline;
}

.trbn-answer-area br {
    display: block;
    content: "";
    margin-bottom: 5px;
}

.trbn-close-panel {
    position: absolute;
    top: 25px;
    right: 30px;
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #999;
	padding: 6px;
	background: #b72636;
	color: #ffffff;
	border-radius: 50%;
	background: radial-gradient(circle,rgba(65, 174, 2, 0.79)40%,rgb(37, 106, 0) 100%);
	width: 30px;
	height: 30px;
	line-height: 0;
	
}


.trbn-close-panel:hover {
	background: radial-gradient(circle,rgba(65, 174, 2, 0.79)40%,rgb(37, 106, 0) 100%);
	transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0,0,0,.3);
}

@keyframes trbnFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes trbnScaleUp {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

@keyframes trbnSlideUp {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes trbnShrinkToCorner {
    0% { 
        transform: scale(1) translate(0, 0);
        border-radius: 15px;
        width: 600px;
        height: 400px;
    }
    50% {
        transform: scale(0.5) translate(50%, 50%);
        border-radius: 50px;
    }
    100% { 
        transform: scale(1) translate(0, 0);
        border-radius: 50%;
        width: 60px;
        height: 60px;
        bottom: 30px;
        right: 30px;
        top: auto;
        left: auto;
    }
}

@media (max-width: 768px) {
    .trbn-navigator-panel {
        width: 300px;
        right: 15px;
		bottom: 100px;
    }
	
	.trbn-navigator-modal {
		bottom:100px;
		right: 10px;
		width: 180px;
	}
    
    .trbn-modal-content {
        padding: 3px 10px;
		width: 180px;
    }
	
	.trbn-modal-content h2{
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .trbn-navigator-panel {
        width: calc(100% - 30px);
        right: 15px;
    }
    
    .trbn-navigator-icon {
        bottom: 20px;
        right: 20px;
    }
}

/* Стилове за бутона за запазване */
#trbn-save-all {
    background: #46b450;
    color: white;
    border: none;
    transition: all 0.3s ease;
}

#trbn-save-all:hover {
    background: #3a9542;
    transform: translateY(-1px);
}

#trbn-save-all:disabled {
    background: #a0a5aa;
    cursor: not-allowed;
    transform: none;
}

/* Стилове за форматиране на отговорите */
.trbn-answer-content {
    line-height: 1.6;
}

.trbn-answer-content p {
    margin-bottom: 10px;
}

.trbn-answer-content strong, 
.trbn-answer-content b {
    font-weight: bold;
}

.trbn-answer-content em,
.trbn-answer-content i {
    font-style: italic;
}

.trbn-answer-content a {
    color: #2575fc;
    text-decoration: underline;
}

.trbn-answer-content a:hover {
    color: #1a5db7;
}

.trbn-answer-content ul,
.trbn-answer-content ol {
    margin: 10px 0;
    padding-left: 20px;
}

.trbn-answer-content li {
    margin-bottom: 5px;
}

.trbn-answer-content br {
    display: block;
    content: "";
    margin-bottom: 8px;
}

