/* Noticeboard specifically generated css */
:root {
    --primary-color: 220 53% 56%; /* #4f7cac */
    --secondary-color: 38 59% 19%;
    --aghortprimary-color: 38 59% 19%; /* #4e3914 card title*/
    --success-color: 142 69% 58%; /* #5cb85c */
    --warning-color: 38 92% 50%; /* #f0ad4e */
    --danger-color: 354 70% 54%; /* #d9534f */
    --light-bg: 210 11% 98%; /* #f8f9fa */
    --aghortlight-bg: 110 50% 45%; /* #4eae3a */
    --border-color: 210 14% 89%; /* #dee2e6 */
    --aghortborder-color: 110 50% 45%; /* #4eae3a */
    --text-muted: 210 9% 53%; /* #6c757d */
}

body {
    background-color: hsl(var(--light-bg));
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.question-card {
    border: 1px solid hsl(var(--aghortborder-color));
    border-radius: 10px;
    margin-bottom: 20px;
    transition: box-shadow 0.3s ease;
}

.question-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.question-header {
    background: linear-gradient(135deg, hsl(var(--aghortprimary-color)) 0%, hsl(110 52% 53%) 100%); /* hsl(220 45% 45%) 100%); */
    color: white;
    border-radius: 10px 10px 0 0;
    padding: 15px 20px;
}

.question-meta {
    font-size: 0.9em;
    opacity: 0.9;
}

.answer-item {
    border-left: 3px solid hsl(var(--primary-colorprimary-color));
    background-color: white;
    margin: 10px 0;
    padding: 15px;
    border-radius: 0 8px 8px 0;
    transition: transform 0.2s ease;
}

.answer-item:hover {
    transform: translateX(2px);
}

.rating-section {
    display: flex;
    align-items: center;
    gap: 10px;
}

.rating-btn {
    border: none;
    background: none;
    font-size: 1.2em;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 5px 10px;
    border-radius: 20px;
}

.rating-btn:hover {
    background-color: hsl(var(--light-bg));
}

.rating-btn.active.upvote {
    color: hsl(var(--success-color));
    background-color: hsla(var(--success-color), 0.1);
}

.rating-btn.active.downvote {
    color: hsl(var(--danger-color));
    background-color: hsla(var(--danger-color), 0.1);
}

.rating-score {
    font-weight: bold;
    min-width: 30px;
    text-align: center;
}

.rating-score.positive {
    color: hsl(var(--success-color));
}

.rating-score.negative {
    color: hsl(var(--danger-color));
}

.answer-count {
    background-color: hsl(var(--warning-color));
    color: white;
    border-radius: 15px;
    padding: 5px 12px;
    font-size: 0.9em;
    font-weight: bold;
}

.no-questions {
    text-align: center;
    padding: 50px 20px;
    color: hsl(var(--text-muted));
}

.timestamp {
    color: hsl(var(--text-muted));
    font-size: 0.85em;
}

.answer-form {
    background-color: hsl(var(--light-bg));
    border-radius: 8px;
    padding: 15px;
    margin-top: 15px;
}

.question-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

@media (max-width: 768px) {
    .question-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .rating-section {
        justify-content: center;
        margin-top: 10px;
    }
}

.alert-custom {
    border: none;
    border-radius: 8px;
    font-weight: 500;
}

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.search-highlight {
    background-color: #fff3cd;
    padding: 1px 3px;
    border-radius: 2px;
    font-weight: 500;
}

#searchResults {
    color: hsl(var(--primary-colorprimary-color));
    font-weight: 500;
}

.input-group .btn-outline-secondary {
    border-color: hsl(var(--border-color));
}

.input-group .btn-outline-secondary:hover {
    background-color: hsl(var(--light-bg));
    border-color: hsl(var(--primary-color));
    color: hsl(var(--primary-color));
}

/* Image styling */
.question-image, .answer-image {
    max-width: 300px;
    max-height: 200px;
    border-radius: 8px;
    margin: 5px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 2px solid hsl(var(--border-color));
}

.question-image:hover, .answer-image:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.question-images, .answer-images {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 10px 0;
}

.question-images {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 10px;
}

.answer-images {
    border-top: 1px solid hsl(var(--border-color));
    padding-top: 10px;
}

/* Image preview in forms */
#questionImagePreview img, #answerImagePreview img {
    border: 2px solid hsl(var(--primary-color));
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* File input styling */
.form-control[type="file"] {
    border: 2px dashed hsl(var(--border-color));
    padding: 20px;
    text-align: center;
    transition: border-color 0.3s ease;
}

.form-control[type="file"]:hover {
    border-color: hsl(var(--primary-color));
}

.form-control[type="file"]:focus {
    border-color: hsl(var(--primary-color));
    box-shadow: 0 0 0 0.2rem hsla(var(--primary-color), 0.25);
}

/* Image modal enhancements */
#imageModal .modal-body {
    padding: 20px;
    background-color: #f8f9fa;
}

#modalImage {
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* Toggle button styling */
.toggle-answers {
    transition: all 0.3s ease;
}

.toggle-answers:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.toggle-answers i {
    transition: transform 0.3s ease;
}

/* Answers section animation */
.answers-section {
    transition: all 0.3s ease;
    overflow: hidden;
}

.answers-section[style*="display: none"] {
    opacity: 0;
    max-height: 0;
}

.answers-section[style*="display: block"] {
    opacity: 1;
    max-height: none;
}

/* Bug report styling */
.modal-header .fas.fa-bug {
    font-size: 1.2em;
    margin-right: 8px;
}

#bugReportForm .form-label {
    font-weight: 600;
    color: hsl(var(--text-muted));
}

#bugReportForm .btn-warning {
    background-color: hsl(var(--warning-color));
    border-color: hsl(var(--warning-color));
}

#bugReportForm .btn-warning:hover {
    background-color: hsl(38 92% 45%);
    border-color: hsl(38 92% 45%);
}

/* Enhanced question actions */
.question-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.question-actions .btn {
    white-space: nowrap;
}

/* Responsive image handling */
@media (max-width: 768px) {
    .question-image, .answer-image {
        
        max-width: 100%;
        /*max-height: 150px;*/
        
        height:auto;/*maintains aspect ratio*/
    }
    
    .question-images, .answer-images {
        justify-content: center;
        
        
    }
    
    .question-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .question-actions .btn {
        margin-bottom: 5px;
    }
}

.container img{/* keeps images manageable on mobile devices */
    height :100%;
    width: auto;
}

.container{/* keeps images aspect ratio mobile devices */
    object-fit: contain;
}

@media (min-width:768px) and (max-width:991px){
	.navbar-expand-lg.top-nav .navbar-nav .nav-link.dropdown-toggle::after{
		position: absolute;
		top: 18px;
		right: 6px;
	}
}

@media screen and (max-width:767px){
	.navbar-expand-lg.top-nav .navbar-nav .nav-link.dropdown-toggle::after{
		position: absolute;
		top: 18px;
		right: 6px;
	}
	.portfolio-main h2{
		text-align: center;
	}
	.customers-box{
		text-align: center;
	}
	.team-members-box h2{
		text-align: center;
	}
	.services-bar h1{
		text-align: center;
	}
	.social_footer_ul li{
		padding-left: 10px;
		padding-right: 10px;
	}
	.faq-main{
		padding: 20px 15px;
	}
	.accordion-single .card-header h5 a{
		font-size: 14px;
	}
}

@media (min-width:320px) and (max-width:575.98px){
	.navbar-expand-lg.top-nav .navbar-nav .nav-link.dropdown-toggle::after{
		position: absolute;
		top: 18px;
		right: 6px;
	}
	.portfolio-main h2{
		text-align: center;
	}
	.customers-box{
		text-align: center;
	}
	.team-members-box h2{
		text-align: center;
	}
	.services-bar h1{
		text-align: center;
	}
	.social_footer_ul li{
		padding-left: 10px;
		padding-right: 10px;
	}
	.faq-main{
		padding: 20px 15px;
	}
	.accordion-single .card-header h5 a{
		font-size: 14px;
	}
}

