/* Основные стили */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
}

.container {
    max-width: 1200px;
}

.card {
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.card-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid #eee;
    font-weight: 600;
}

/* Стили для рейтинга */
.star-rating {
    unicode-bidi: bidi-override;
    color: #ddd;
    font-size: 0;
    height: 25px;
    position: relative;
    display: inline-block;
}

.star-rating-sm {
    unicode-bidi: bidi-override;
    color: #ddd;
    font-size: 0;
    height: 15px;
    position: relative;
    display: inline-block;
}

.star-rating-lg {
    unicode-bidi: bidi-override;
    color: #ddd;
    font-size: 0;
    height: 35px;
    position: relative;
    display: inline-block;
}

.star-rating::before, .star-rating-sm::before, .star-rating-lg::before {
    content: '★★★★★';
    font-size: 25px;
}

.star-rating-sm::before {
    font-size: 15px;
}

.star-rating-lg::before {
    font-size: 35px;
}

.star-rating::after, .star-rating-sm::after, .star-rating-lg::after {
    content: '★★★★★';
    font-size: 25px;
    position: absolute;
    left: 0;
    top: 0;
    width: attr(data-rating);
    color: #ffc107;
    overflow: hidden;
}

.star-rating-sm::after {
    font-size: 15px;
}

.star-rating-lg::after {
    font-size: 35px;
}

/* Стили для выбора рейтинга */
.star-rating-select {
    unicode-bidi: bidi-override;
    direction: rtl;
    text-align: left;
}

.star-rating-select input {
    display: none;
}

.star-rating-select label {
    font-size: 25px;
    color: #ddd;
    cursor: pointer;
    display: inline-block;
    margin-right: 5px;
}

.star-rating-select label:hover,
.star-rating-select label:hover ~ label,
.star-rating-select input:checked ~ label {
    color: #ffc107;
}

/* Стили для статусов задач */
.badge {
    font-weight: 500;
    padding: 5px 10px;
}

.bg-moderation {
    background-color: #6c757d;
    color: white;
}

.bg-active {
    background-color: #0d6efd;
    color: white;
}

.bg-in_progress {
    background-color: #fd7e14;
    color: white;
}

.bg-in_review {
    background-color: #6610f2;
    color: white;
}

.bg-completed {
    background-color: #198754;
    color: white;
}

.bg-rejected {
    background-color: #dc3545;
    color: white;
}

.bg-revision {
    background-color: #ffc107;
    color: black;
}

/* Стили для чата */
.chat-container {
    display: flex;
    height: 600px;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
}

.chat-list {
    width: 300px;
    border-right: 1px solid #ddd;
    overflow-y: auto;
}

.chat-list ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.chat-list li {
    padding: 15px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
}

.chat-list li.active {
    background-color: #f0f7ff;
}

.chat-list li:hover {
    background-color: #f8f9fa;
}

.chat-list a {
    text-decoration: none;
    color: #333;
}

.unread {
    background-color: #0d6efd;
    color: white;
    border-radius: 50%;
    padding: 2px 6px;
    font-size: 12px;
    float: right;
}

.chat-messages {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.messages-container {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
}

.message {
    margin-bottom: 15px;
    max-width: 70%;
    padding: 10px 15px;
    border-radius: 15px;
    position: relative;
}

.message.received {
    background-color: #f1f1f1;
    margin-right: auto;
}

.message.sent {
    background-color: #007bff;
    color: white;
    margin-left: auto;
}

.message.sent .message-body {
    background-color: #3e91e9;
    border-radius: 18px 18px 0 18px;
}

.message.received {
    margin-right: auto;
}
.message.received .message-body {
    background-color: #ebebeb;
    border-radius: 18px 18px 18px 0;
}
.message-header {
    font-size: 0.85rem;
}

.message-sender {
    font-weight: bold;
    margin-bottom: 5px;
}

.message-time {
    font-size: 11px;
    text-align: right;
    margin-top: 5px;
    opacity: 0.7;
}

.message-form {
    padding: 15px;
    border-top: 1px solid #ddd;
}

.message-form textarea {
    width: 100%;
    border: 1px solid #ddd;
    border-radius: 20px;
    padding: 10px 15px;
    resize: none;
    margin-bottom: 10px;
}

.message-form button {
    float: right;
}

/* Hero section */
.hero-section {
    background: linear-gradient(135deg, #6e8efb, #a777e3);
    color: white;
    padding: 100px 0;
    margin-bottom: 50px;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('/assets/images/hero-bg.png') no-repeat center center;
    background-size: cover;
    opacity: 0.1;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.hero-buttons .btn {
    margin: 0 10px;
    padding: 12px 30px;
    font-size: 1.1rem;
}

/* Features */
.features-section {
    margin: 80px 0;
}

.feature-item {
    padding: 30px 20px;
}

.feature-icon {
    font-size: 3rem;
    color: #6e8efb;
    margin-bottom: 20px;
}

.feature-item h3 {
    margin-bottom: 15px;
    font-weight: 600;
}

/* Task cards */
.task-card {
    border: none;
    transition: transform 0.3s, box-shadow 0.3s;
    border-radius: 10px;
    overflow: hidden;
}

.task-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.task-category {
    margin-bottom: 15px;
}

.task-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: #28a745;
    margin: 15px 0;
}

/* Category cards */
.category-card {
    background: white;
    padding: 30px;
    text-align: center;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s;
}

.category-card:hover {
    transform: translateY(-5px);
}

.category-icon {
    font-size: 2.5rem;
    color: #6e8efb;
    margin-bottom: 20px;
}

.category-card h3 {
    margin-bottom: 10px;
}

/* Testimonials */
.testimonial-card {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    height: 100%;
}

.testimonial-content {
    margin-bottom: 20px;
    font-style: italic;
    position: relative;
}

.testimonial-content::before {
    content: '"';
    font-size: 4rem;
    color: #f1f1f1;
    position: absolute;
    top: -20px;
    left: -10px;
    z-index: 0;
}

.testimonial-content p {
    position: relative;
    z-index: 1;
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.testimonial-author img {
    width: 50px;
    height: 50px;
    margin-right: 15px;
    object-fit: cover;
}

.testimonial-author h5 {
    margin-bottom: 0;
    font-size: 1rem;
}

.testimonial-author small {
    color: #6c757d;
}

/* Section headers */
.section-header {
    margin-bottom: 40px;
}

.section-header h2 {
    font-weight: 700;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 50px;
    height: 3px;
    background: #6e8efb;
}

.section-header p {
    color: #6c757d;
    margin-top: 15px;
}

/* Utilities */
.bg-light {
    background-color: #f8f9fa !important;
}

.py-5 {
    padding-top: 3rem;
    padding-bottom: 3rem;
}

.mb-4 {
    margin-bottom: 1.5rem !important;
}

.text-center {
    text-align: center !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .hero-buttons .btn {
        display: block;
        width: 80%;
        margin: 10px auto;
    }
}
.badge.bg-info {
    background-color: #0dcaf0 !important;
	color: #fff;
}
.timeline {
    position: relative;
    padding-left: 20px;
}
.timeline-badge {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-top: 5px;
}
.timeline-content {
    flex: 1;
}
.execution-comments {
    max-height: 150px;
    overflow-y: auto;
    padding-right: 10px;
}
.comment {
    padding: 5px;
    border-left: 3px solid #dee2e6;
    padding-left: 10px;
}
.comment:last-child {
    margin-bottom: 0;
}
