/**
 * Homework Student View - CSS Styles
 * Bootstrap 3.3.7 / Metronic 4 compatible
 * Prefix: hws-
 * 
 * @author selcukmart
 * @since 18.01.2026
 */

/* Container */
.hws-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 10px 0;
}

/* Card */
.hws-card {
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    border: 1px solid #e7ecf1;
    border-left: 4px solid #e7ecf1;
    overflow: hidden;
    transition: box-shadow 0.2s, transform 0.2s;
}

.hws-card:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.hws-border-success {
    border-left-color: #36c6d3;
}

.hws-border-danger {
    border-left-color: #ed6b75;
}

/* Card Header */
.hws-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 18px 20px;
    background: #f9fafb;
    border-bottom: 1px solid #eef1f5;
    gap: 15px;
    flex-wrap: wrap;
}

.hws-header-left {
    flex: 1;
    min-width: 200px;
}

.hws-title {
    margin: 0 0 8px 0;
    font-size: 17px;
    font-weight: 600;
    color: #333;
    line-height: 1.3;
}

.hws-lesson-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    background: #e8f4fc;
    color: #3598dc;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.hws-lesson-badge i {
    font-size: 11px;
}

.hws-header-right {
    flex-shrink: 0;
}

/* Status Badge */
.hws-status {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.hws-status-active {
    background: #e8fff3;
    color: #26a69a;
}

.hws-status-expired {
    background: #ffebee;
    color: #e53935;
}

/* Card Body */
.hws-card-body {
    padding: 20px;
}

/* Student Status */
.hws-student-status {
    margin-bottom: 18px;
}

.hws-student-status .HomeworkStudentsState {
    font-size: 13px !important;
    padding: 8px 14px !important;
    border-radius: 4px !important;
}

/* Info Grid */
.hws-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 6px;
}

.hws-info-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.hws-info-item > i {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border-radius: 6px;
    color: #3598dc;
    font-size: 14px;
    flex-shrink: 0;
    border: 1px solid #e4e8eb;
}

.hws-info-item > div {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.hws-info-item small {
    font-size: 11px;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.hws-info-item span {
    font-size: 13px;
    color: #333;
    font-weight: 500;
    word-break: break-word;
}

/* Description */
.hws-description {
    margin-bottom: 18px;
}

.hws-description h6 {
    font-size: 13px;
    font-weight: 600;
    color: #555;
    margin: 0 0 10px 0;
    display: flex;
    align-items: center;
    gap: 6px;
}

.hws-description h6 i {
    color: #3598dc;
}

.hws-description-content {
    padding: 15px;
    background: #fafbfc;
    border: 1px solid #eef1f5;
    border-radius: 6px;
    font-size: 14px;
    line-height: 1.6;
    color: #555;
}

.hws-description-content img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
}

/* File Section */
.hws-file-section {
    margin-bottom: 18px;
}

.hws-file-section h6 {
    font-size: 13px;
    font-weight: 600;
    color: #555;
    margin: 0 0 10px 0;
    display: flex;
    align-items: center;
    gap: 6px;
}

.hws-file-section h6 i {
    color: #3598dc;
}

/* Teacher Comment */
.hws-teacher-comment {
    background: linear-gradient(135deg, #f5f7fa 0%, #f8fafb 100%);
    border: 1px solid #e4e8eb;
    border-radius: 8px;
    padding: 15px;
    margin-top: 15px;
}

.hws-comment-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px dashed #ddd;
}

.hws-comment-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.hws-comment-header strong {
    display: block;
    font-size: 14px;
    color: #333;
}

.hws-comment-header small {
    font-size: 11px;
    color: #999;
}

.hws-comment-body {
    font-size: 14px;
    color: #555;
    line-height: 1.6;
    font-style: italic;
}

.hws-comment-body i.fa-quote-left {
    color: #ccc;
    margin-right: 6px;
    font-size: 12px;
}

/* Card Footer */
.hws-card-footer {
    padding: 15px 20px;
    background: #f9fafb;
    border-top: 1px solid #eef1f5;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.hws-card-footer .btn {
    border-radius: 4px;
}

/* Responsive */
@media (max-width: 768px) {
    .hws-card-header {
        flex-direction: column;
    }
    
    .hws-header-right {
        align-self: flex-start;
    }
    
    .hws-info-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hws-card-body {
        padding: 15px;
    }
    
    .hws-card-header {
        padding: 15px;
    }
    
    .hws-title {
        font-size: 15px;
    }
}
