/* General styles */
body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #e6ecf0; /* Twitter-like background */
    color: #14171a; 
}

.container {
    width: 80%;
    margin: 20px auto;
}

.row {
    display: flex; /* Flexbox layout to align child elements in a row */
    gap: 30px; /* Space between the two columns */
}

/* Columns for Post Card and Rating Slider */
.col-md-6 {
    flex: 1; /* Makes each column take equal width */
}

h1 {
    text-align: center;
    color: #14171a;
    font-size: 24px;
    margin-bottom: 20px;
}

.navbar {
    background: linear-gradient(90deg, #12496b, #01354d); /* Gradient effect */
    color: white;
    padding: 15px 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Subtle shadow for depth */
    position: sticky;
    top: 0;
    z-index: 1000;
    text-align: center;
}

.navbar-brand {
    font-size: 24px;
    font-weight: bold;
    color: white;
    text-decoration: none; /* Remove underline */
    letter-spacing: 1px; /* Add spacing for elegance */
}

.navbar-brand:hover {
    color: #6edfca; /* Add hover effect for interactivity */
    transition: color 0.3s ease-in-out;
}

/* Post card styles */
.news-article {
    background-color: white; /* Card background */
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 16px; /* Rounded corners */
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24); /* Soft shadow */
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
}

.headline-title {
    font-size: 18px;
    font-weight: bold;
    color: #14171a;
    margin-bottom: 10px;
    line-height: 1.4;
}

.headline-snippet {
    font-size: 15px;
    color: #657786; /* Subtle text */
    line-height: 1.5;
    margin-bottom: 15px;
}

.news-article img {
    width: 100%;
    border-radius: 12px;
    margin: 10px 0;
    position: relative;
}

/* Feedback box (for group 4) */
.feedback-box {
    background-color: #f5f8fa; /* Light gray */
    color: #14171a;
    padding: 15px;
    margin: 10px 0;
    border-radius: 8px;
    font-size: 14px;
}

/* Progress and Percentage Bars */

.progress {
    position: absolute;
    top: 4px;
    right: 4px;
    font-size: 12px;
    color: #14171a;
    padding: 5px 10px; /* Add padding for better spacing */
    background-color: #ffffff; /* Optional: Add a light background for better visibility */
    border-radius: 5px; /* Optional: Rounded corners for aesthetic */
    min-width: 20px; /* Ensure it has enough space for the text */
    height: 20px;
    text-align: center; /* Center-align the progress text */
}

.news-article .headline-title {
    margin-top: 20px; /* Add space between the headline and the progress bar */
}




.progress-bar {
    background-color: #1da1f2; /* Twitter blue */
    height: 8px;
    border-radius: 4px;
    flex: 1;
    margin-left: 10px;
}

.progress-bar-container {
    background-color: #e1e8ed;
    height: 8px;
    width: 100%;
    border-radius: 4px;
    margin-top: 5px;
    position: relative;
}

.progress-bar-fill {
    height: 100%;
    background-color: #1da1f2;
    border-radius: 4px;
}


/* Social Engagement Bar */
.social-engagement {
    display: flex;
    justify-content: space-between;
    font-size: 16px;
    color: #657786;
    margin-top: 15px;
}

.social-engagement p {
    margin: 0;
    padding: 0;
}

.social-engagement span {
    cursor: pointer;
    transition: color 0.2s;
}

.social-engagement span:hover {
    color: #1da1f2;
}

/* Buttons */
.next-btn, .finish-btn {
    background-color: #1da1f2;
    color: white;
    padding: 10px 15px;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    margin-top: 15px;
    text-align: right;
    position: relative;
    /* bottom: 200px;
    right: 80px; */
}

.next-btn:hover, .finish-btn:hover {
    background-color: #1a91da; 
}

.next-btn:disabled {
    background-color: #aab8c2;
    cursor: not-allowed;
}


.next-btn-container {
    position: relative;
    display: inline-block;
}

.tooltip {
    visibility: hidden; /* Hidden by default */
    opacity: 0; /* Transparent by default */
    width: 200px;
    background-color: #f8d7da;
    color: #721c24;
    text-align: center;
    border-radius: 5px;
    padding: 8px;
    position: absolute;
    bottom: 125%; /* Position above the button */
    left: 50%;
    transform: translateX(-50%);
    transition: opacity 0.3s ease, visibility 0.3s ease;
    font-size: 12px;
    z-index: 1;
    border: 1px solid #f5c6cb;
}

.tooltip::after {
    content: "";
    position: absolute;
    top: 100%; /* Arrow points downward */
    left: 50%;
    transform: translateX(-50%);
    border-width: 5px;
    border-style: solid;
    border-color: #f8d7da transparent transparent transparent;
}

/* Show tooltip only when button is disabled and hovered */
.next-btn:disabled:hover + .tooltip {
    visibility: visible !important;
    opacity: 1 !important;
}

/* Ensure tooltip remains hidden when button is not disabled */
.next-btn:not(:disabled):hover + .tooltip {
    visibility: hidden !important;
    opacity: 0 !important;
}

.next-btn-container .tooltip {
    visibility: hidden !important;
    opacity: 0 !important;
}

/* .next-btn-container:hover .tooltip {
    visibility: visible !important;
    opacity: 1 !important;
} */

.headline-image {
    width: 100%; /* Ensures the image takes the full width of the container */
    height: 200px; /* Sets a fixed height */
    object-fit: contain; /* Ensures the image fills the dimensions without stretching */
    border-radius: 8px;
    margin: 15px 0;
}

.image-container {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* Aspect ratio of 16:9 */
    overflow: hidden;
    border-radius: 8px;
}

.image-container img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Rating box (right column) */
.rating-box {
    background-color: #f5f8fa; /* Light background for rating box */
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    margin-top: 20px; /* Space between rating box and social engagement bar */
}

.rating-slider {
    margin-top: 20px;
}

.rating-slider label {
    font-size: 16px;
    color: #14171a;
    margin-bottom: 5px;
    display: block;
}

.rating-slider input {
    width: 100%;
    margin: 10px 0;
    -webkit-appearance: none;
    appearance: none;
    height: 6px;
    background: #e1e8ed;
    outline: none;
    border-radius: 5px;
}

.rating-slider input::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    background: #1da1f2;
    border-radius: 50%;
    cursor: pointer;
}

.rating-slider .d-flex {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: #657786;
}

.slider-value {
    background-color: #aab8c2;
    color: white;
    padding: 5px 10px;
    border: none;
    border-radius: 12px;
    font-size: 14px;
    font-weight: bold;
    margin-top: 5px;
    cursor: not-allowed;
}

.slider-value.disabled {
    background-color: #aab8c2;
    cursor: not-allowed;
}

.slider-value:not(.disabled) {
    background-color: #1da1f2;
    cursor: pointer;
}


/* .next-btn {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    width: 100%;
    position: absolute;
    bottom: 10px; 
    right: 10px;  
}

.next-btn:hover {
    background-color: #0056b3;
} */

/* Responsive layout */
@media (max-width: 768px) {
    .row {
        flex-direction: column;
    }
    .col-md-6 {
        width: 100%; /* Stacks columns in smaller viewports */
    }
}

/* Make sure slider is visible */
.form-range {
    width: 100%;
    height: 25px; /* Adjust height if needed */
    background: #ddd; /* Set background for slider */
    border-radius: 5px;
}

/* Optional: You can customize the slider handle */
.form-range::-webkit-slider-thumb {
    width: 20px;
    height: 20px;
    background-color: #4CAF50;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid #333;
}

/* Optional: Style the labels */
.d-flex span {
    font-size: 12px;
    color: #333;
}
