/* General Layout */
body {
    font-family: 'Arial', sans-serif;
    font-size: 16px;
}

/*breadcrumb*/
  /* Global Styling */
.breadcrumb-nav {
    margin-bottom: 20px;
    font-family: 'Roboto', sans-serif;
    font-size: 1rem;
    padding: 0;
    display: inline-block;
}

/* Breadcrumb List */
.breadcrumb-items {
    display: flex;
    list-style-type: none;
    margin: 0;
    padding: 0;
}

/* Individual Breadcrumb Items */
.breadcrumb-item {
    position: relative;
    display: flex;
    align-items: center;
}

.breadcrumb-item a {
    text-decoration: none;
    color: #4a90e2; /* Soft blue color */
    font-weight: 500;
    transition: all 0.3s ease-in-out; /* Smooth transition for hover effects */
}

.breadcrumb-item a:hover {
    color: #2c6c98; /* Darker blue for hover */
    text-decoration: underline; /* Underline on hover for interactivity */
}

/* Active Item Styling */
.breadcrumb-item.active {
    color: #333; /* Dark color for the active breadcrumb */
    font-weight: bold; /* Bold for the active breadcrumb */
}

/* Custom Separator between Breadcrumbs */
.breadcrumb-item + .breadcrumb-item::before {
    content: '/';
    padding: 0 12px;
    color: #aaa; /* Light gray color */
    font-size: 1.2rem; /* Slightly larger separator */
    transition: color 0.3s ease; /* Smooth color transition */
}

/* Hover Effect on Separator */
.breadcrumb-item:hover + .breadcrumb-item::before {
    color: #4a90e2; /* Blue color when the breadcrumb is hovered */
}

/* Responsive Adjustments for Small Devices */
@media (max-width: 768px) {
    .breadcrumb-nav {
        font-size: 0.9rem; /* Slightly smaller text on smaller screens */
    }

    .breadcrumb-items {
        flex-direction: column;
        align-items: flex-start; /* Stack breadcrumb items vertically */
    }

    .breadcrumb-item + .breadcrumb-item::before {
        content: '→'; /* Change separator to an arrow on small screens */
        padding: 0 8px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .breadcrumb-nav {
        font-size: 0.85rem; /* Even smaller text on mobile */
    }

    .breadcrumb-items {
        flex-direction: column;
        align-items: flex-start;
    }

    .breadcrumb-item + .breadcrumb-item::before {
        content: '➤'; /* Even more compact separator */
        padding: 0 6px;
    }
}

/* Animation for Breadcrumb Hover */
.breadcrumb-item a {
    position: relative;
}

.breadcrumb-item a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #4a90e2; /* Blue underline */
    transform: scaleX(0);
    transform-origin: bottom right;
    transition: transform 0.3s ease-in-out; /* Smooth underline animation */
}

.breadcrumb-item a:hover::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}
/* Main container for the list */
.list-group {
    padding-left: 0;
    margin-bottom: 0;
    display: flex;
    flex-direction: column;
    gap: 12px; /* Add space between list items */
}

/* Style for each project item */
.list-group-item {
    display: flex;
    align-items: center;
    padding: 18px 22px; /* Slightly increased padding */
    border: 1px solid #e0e0e0;
    border-radius: 12px; /* Slightly more rounded corners */
    margin-bottom: 16px;
    background-color: #fff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); /* Soft shadow for depth */
    transition: background-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease; /* Added transform for animation */
}


/* Hover effect for project item */
.list-group-item:hover {
    background-color: #f5f5f5; /* Slightly lighter background on hover */
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15); /* Deeper shadow */
    transform: translateY(-5px); /* Slight lift effect */
}

/* Active click effect */
.list-group-item:active {
    background-color: #f0f0f0; /* Light background when clicked */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); /* Subtle shadow when clicked */
    transform: translateY(1px); /* Depression effect */
}


/* Make the entire card clickable */
.project-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    width: 100%;
}

/* Container for the image and name */
.project-item {
    display: flex;
    align-items: center;
    width: 100%;
}

/* Image styling - Larger image */
.project-image {
    width: 90px;  /* Larger image size */
    height: 90px;
    margin-right: 20px;  /* Increased space between image and text */
    border-radius: 6px;
    object-fit: cover;
    transition: transform 0.2s ease;
}

/* Project name styling */
.project-name {
    font-size: 20px; /* Standardized project name font size */
    font-weight: 500;
    color: #333;
    text-decoration: none;
    line-height: 1.5;
    flex-grow: 1;
    display: block;
}

/* COMMENTS Section */
#comments {
    margin-top: 60px;
    font-family: 'Arial', sans-serif;
}

#comments h3 {
    font-size: 1.8rem;  /* Standard font size for comments title */
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 2px solid #007bff;
    padding-bottom: 5px;
}

/* Alert Styles */
.alert {
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.alert-success {
    background-color: #d4f8db;
    color: #0b9e59;
    border-left: 6px solid #0b9e59;
}

.alert-danger {
    background-color: #fce1e1;
    color: #d9534f;
    border-left: 6px solid #d9534f;
}
/* Comment List Styles */
.comment-list {
    list-style: none;
    padding: 0;
    margin-bottom: 30px;
    font-family: 'Roboto', sans-serif; /* Modern font */
}

.comment-list li {
    background-color: #fafafa; /* Light grey background for the comments */
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); /* Slightly more prominent shadow */
    padding: 20px;
    margin-bottom: 15px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.comment-list li strong {
    font-size: 1.15rem; /* Slightly larger strong text */
    color: #4a4a4a; /* Darker text for better readability */
    display: block;
    font-weight: 500;
}

.comment-list li small {
    font-size: 0.95rem; /* Slightly larger small text */
    color: #888;
}

.comment-list li p {
    margin-top: 10px;
    font-size: 1.05rem; /* Slightly larger paragraph text */
    line-height: 1.7;
    color: #555;
}

.comment-list li:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12); /* Stronger hover effect */
}

.no-comments {
    font-size: 1.2rem;
    color: #888; /* Lighter grey for no comments text */
    text-align: center;
}

/* Forms and Input Elements */
form {
    background-color: #f4f7fc; /* Soft blue background */
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    font-family: 'Roboto', sans-serif;
}

form label {
    font-size: 1.1rem; /* Larger font size for labels */
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

form input,
form textarea {
    width: 100%;
    padding: 14px;
    font-size: 1.05rem; /* Slightly larger font for better readability */
    border: 1px solid #ddd;
    border-radius: 8px;
    margin-bottom: 20px;
    background-color: #fff;
    transition: all 0.3s ease;
}

form input:focus,
form textarea:focus {
    border-color: #4CAF50; /* Green focus border */
    outline: none;
    box-shadow: 0 0 5px rgba(76, 175, 80, 0.4); /* Green focus shadow */
}

form button {
    padding: 14px 24px;
    font-size: 1.2rem;
    font-weight: 600;
    color: #fff;
    background-color: #4CAF50; /* Green button */
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

form button:hover {
    background-color: #45a049; /* Darker green on hover */
    transform: translateY(-3px);
}

form button:active {
    transform: translateY(1px);
}

/* Admin Reply Section */
.admin-reply {
    background-color: #f9f9f9; /* Light grey background */
    border-left: 5px solid #4CAF50; /* Green left border */
    padding: 20px;
    margin-top: 20px;
    border-radius: 8px;
    position: relative;
}

.admin-reply-text {
    font-size: 1.05rem; /* Slightly larger font for better readability */
    color: #333;
    line-height: 1.7;
    margin-bottom: 10px;
}

.admin-username {
    font-size: 1.05rem;
    font-weight: bold;
    color: #4CAF50; /* Green username color */
    margin-bottom: 10px;
}

.admin-reply-time {
    font-size: 0.9rem;
    color: #777;
    margin-top: 10px;
}

.admin-tag {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #4CAF50;
    color: white;
    padding: 5px 15px;
    font-size: 0.95rem;
    font-weight: bold;
    border-radius: 15px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Hover Effects */
.comment-list li:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12); /* Stronger hover effect */
}

.admin-reply:hover {
    background-color: #e3f2e1; /* Light green background on hover */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/*Toast*/


/* Toast styles */
.toast {
    visibility: hidden; /* Hidden by default */
    min-width: 250px; /* Minimum width */
    margin-left: -125px; /* Center the toast */
    background-color: #333; /* Default background color */
    color: #fff; /* Text color */
    text-align: center; /* Text alignment */
    border-radius: 12px; /* Rounded corners */
    padding: 16px; /* Padding */
    position: fixed; /* Fixed at the bottom of the page */
    z-index: 9999; /* Ensure it's on top */
    bottom: 30px; /* Position from the bottom */
    left: 50%; /* Center horizontally */
    font-size: 1rem; /* Font size */
    transition: opacity 0.5s ease-in-out, transform 0.4s ease-in-out; /* Transition for opacity and transform */
    transform: translateY(20px); /* Start slightly below */
}

/* Toast show animation (bounce and fade-in) */
.toast.show {
    visibility: visible;
    opacity: 1;
    transform: translateY(0); /* Move to the original position */
}

/* Toast hide animation (fade-out) */
.toast.hide {
    opacity: 0;
    transform: translateY(20px); /* Slide down and fade */
}

/* Success Toast Style */
.toast.success {
    background: linear-gradient(45deg, #66bb6a, #388e3c); /* Green gradient */
    box-shadow: 0 4px 15px rgba(0, 128, 0, 0.2); /* Green shadow */
}

/* Error Toast Style */
.toast.error {
    background: linear-gradient(45deg, #f44336, #d32f2f); /* Red gradient */
    box-shadow: 0 4px 15px rgba(255, 0, 0, 0.2); /* Red shadow */
}

/* Hover Effects */
.list-group-item:hover {
    background-color: #f7f7f7;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.project-image:hover {
    transform: scale(1.05); /* Slightly enlarge on hover */
}

.project-name:hover {
    color: #0056b3;
}

.comment-list li:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
}

.admin-reply:hover {
    background-color: #e9f3fe; /* Light blue background on hover */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Responsive Styles */
@media (max-width: 768px) {
    body {
        font-size: 14px; /* Smaller base font size for mobile */
    }

    #comments h3 {
        font-size: 1.5rem; /* Comment section title adjustment */
        text-align: center;
    }

    form {
        padding: 20px;
    }

    form input,
    form textarea {
        font-size: 0.95rem; /* Adjust input font for mobile */
    }

    form button {
        font-size: 1rem;
    }

    .list-group-item {
        padding: 12px 16px;
    }

    .project-name {
        font-size: 14px; /* Smaller project name font for mobile */
    }

    .project-image {
        width: 70px;  /* Adjusted image size */
        height: 70px;
    }
}

/* Add a bottom border for the section title */
h4 {
    font-size: 18px; /* Standardized section title font size */
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 8px;
}
