﻿/* Page Title */
.page-title {
    margin-bottom: 15px;
}

.page-title h3 {
    color: #337ab7;
    font-weight: bold;
    margin-top: 10px;
    margin-bottom: 15px;
}

/* Navigation Wizard */
.nav-wizard {
    margin-bottom: 15px;
    border-bottom: 2px solid #ddd;
}

.nav-wizard > li {
    float: left;
}

.nav-wizard > li > a {
    border-radius: 4px 4px 0 0;
    padding: 10px 15px;
}

.nav-wizard > li.completed > a {
    background-color: #5cb85c;
    color: white;
}

.nav-wizard > li.active > a {
    background-color: #337ab7;
    color: white;
}

/* Panel Styling */
.panel {
    margin-bottom: 20px;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.12);
}

.panel-primary > .panel-heading {
    background-color: #337ab7;
    border-color: #337ab7;
}

.panel-success > .panel-heading {
    background-color: #5cb85c;
    border-color: #5cb85c;
}

.panel-title {
    font-size: 14px;
    font-weight: normal;
}

/* Section Subtitle */
.section-subtitle {
    color: #337ab7;
    font-size: 14px;
    font-weight: bold;
    margin-top: 15px;
    margin-bottom: 15px;
    padding-bottom: 5px;
    border-bottom: 1px solid #ddd;
}

/* Form Groups */
.form-group {
    margin-bottom: 15px;
}

.control-label {
    padding-top: 7px;
    text-align: left;
}

.help-block {
    margin-top: 5px;
    margin-bottom: 0;
}

/* Buttons */
.btn-lg {
    padding: 10px 30px;
    font-size: 16px;
    margin: 5px;
}

/* Responsive adjustments for Bootstrap 3 */
@media (max-width: 767px) {
    .nav-wizard > li {
        float: none;
        width: 100%;
    }

    .nav-wizard > li > a {
        border-radius: 4px;
        margin-bottom: 5px;
    }

    .control-label {
        text-align: left;
        margin-bottom: 5px;
    }

    .form-group > [class*="col-"] {
        margin-bottom: 10px;
    }

    .btn-lg {
        width: 100%;
        margin: 5px 0;
    }

    .panel-body {
        padding: 10px;
    }
}

@media (min-width: 768px) {
    .control-label {
        text-align: right;
    }
}


/* Info Display */
.info-group {
    margin-bottom: 10px;
    padding: 8px;
    background-color: #f9f9f9;
    border-left: 3px solid #5cb85c;
}

.info-group label {
    font-weight: bold;
    color: #555;
    display: inline-block;
    min-width: 120px;
    margin-bottom: 0;
}

.info-group .info-value {
    color: #333;
    font-size: 14px;
}

/* Danh sách bài báo đã lưu */
.saved-list {
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 15px;
}

.saved-list:empty {
    display: none;
}

.saved-list-title {
    font-weight: bold;
    color: #337ab7;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #337ab7;
}

.saved-item {
    background-color: white;
    border: 1px solid #e3e3e3;
    border-left: 4px solid #5cb85c;
    border-radius: 4px;
    padding: 15px;
    margin-bottom: 10px;
    position: relative;
}

.saved-item:hover {
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.saved-item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
}

.saved-item-title {
    font-weight: bold;
    color: #333;
    font-size: 15px;
    flex: 1;
    margin-right: 10px;
}

.saved-item-actions {
    white-space: nowrap;
}

.saved-item-info {
    color: #666;
    font-size: 13px;
    line-height: 1.6;
}

.saved-item-info .info-label {
    font-weight: bold;
    color: #555;
    min-width: 100px;
    display: inline-block;
}

.saved-item-info .info-row {
    margin-bottom: 5px;
}

@media (max-width: 767px) {
    .saved-item-header {
        flex-direction: column;
    }

    .saved-item-actions {
        margin-top: 10px;
        width: 100%;
    }

    .saved-item-actions .btn {
        width: 100%;
    }
}

/* Dynamic Items */
.dynamic-list:empty::before {
    content: "Chưa có dữ liệu. Nhấn nút 'Thêm' để bắt đầu.";
    display: block;
    padding: 30px;
    text-align: center;
    color: #999;
    font-style: italic;
    background-color: #f9f9f9;
    border: 2px dashed #ddd;
    border-radius: 4px;
}

.dynamic-item {
    margin-bottom: 15px;
}

.item-content {
    position: relative;
    background-color: #f9f9f9;
    border: 1px solid #e3e3e3;
    border-radius: 4px;
    padding: 20px;
    min-height: 20px;
}

.item-title {
    margin-top: 0;
    margin-bottom: 20px;
    color: #337ab7;
    color: #31708f;
    font-size: 14px;
    font-weight: bold;
    border-bottom: 2px solid #337ab7;
    border-bottom: 2px solid #31708f;
    padding-bottom: 10px;
}

.well {
    min-height: 20px;
    padding: 19px;
    margin-bottom: 20px;
    background-color: #f5f5f5;
    border: 1px solid #e3e3e3;
    border-radius: 4px;
}

/* Form Groups */
.form-group {
    margin-bottom: 15px;
}

.control-label {
    padding-top: 7px;
    text-align: left;
}

.help-block {
    margin-top: 5px;
    margin-bottom: 0;
    font-size: 12px;
}

/* Buttons */
.btn-lg {
    padding: 10px 30px;
    font-size: 16px;
    margin: 5px;
}

.panel-heading .btn {
    margin-top: -2px;
}

/* File Upload */
.file-upload {
    height: auto;
    padding: 6px 12px;
}

/* Responsive */
@media (max-width: 767px) {
    .nav-wizard > li {
        float: none;
        width: 100%;
    }

    .nav-wizard > li > a {
        border-radius: 4px;
        margin-bottom: 5px;
    }

    .control-label {
        text-align: left;
        margin-bottom: 5px;
    }

    .form-group > [class*="col-"] {
        margin-bottom: 10px;
    }

    .btn-lg {
        width: 100%;
        margin: 5px 0;
    }

    .panel-body {
        padding: 10px;
    }

    .panel-title .btn {
        margin-top: 5px;
    }

    .info-group label {
        display: block;
        min-width: auto;
    }
}

@media (min-width: 768px) {
    .control-label {
        text-align: right;
    }
}

/* Layout cho nội dung item */
.saved-item-content {
    margin-top: 15px;
}

/* Cột thông tin bên trái */
.saved-item-info {
    padding-right: 15px;
}

/* Container ảnh chứng chỉ */
.certificate-image-container {
    padding-left: 15px;
}

.certificate-image-wrapper {
    border: 2px dashed #ddd;
    border-radius: 4px;
    padding: 10px;
    background-color: #fafafa;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
}

/* Ảnh chứng chỉ */
.certificate-image {
    max-width: 100%;
    max-height: 300px;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Placeholder khi chưa có ảnh */
.certificate-placeholder {
    text-align: center;
    color: #999;
}

.placeholder-text {
    margin-top: 10px;
    font-style: italic;
}

/* PDF display */
.certificate-pdf {
    text-align: center;
    color: #666;
}

.pdf-label {
    margin: 10px 0;
    font-weight: bold;
}

.btn-view-pdf {
    margin-top: 10px;
}

/* Action buttons */
.certificate-actions {
    text-align: center;
}

.certificate-actions .btn {
    margin: 0 5px;
}

.btn-upload-certificate {
    margin-right: 5px;
}

/* Responsive */
@media (max-width: 767px) {
    .saved-item-info {
        padding-right: 15px;
        margin-bottom: 15px;
    }

    .certificate-image-container {
        padding-left: 15px;
    }

    .certificate-actions .btn {
        width: 100%;
        margin: 5px 0;
    }
}
