/**
 * IBCT Certification Calculator Styles
 */

/* General Styles */
.ibct-certification-form-wrapper,
.ibct-certification-results-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.ibct-certification-form-wrapper h2,
.ibct-certification-results-wrapper h2 {
    font-size: 28px;
    margin-bottom: 20px;
    color: #333;
}

.ibct-certification-form-wrapper h3,
.ibct-certification-results-wrapper h3 {
    font-size: 20px;
    margin: 15px 0;
    color: #444;
}

/* Navigation Breadcrumbs */
.ibct-navigation-breadcrumbs {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 20px;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.ibct-breadcrumb-item {
    color: #0073aa;
    text-decoration: none;
    font-weight: 500;
}

.ibct-breadcrumb-item:hover {
    text-decoration: underline;
}

.ibct-breadcrumb-separator {
    margin: 0 8px;
    color: #999;
}

.ibct-breadcrumb-current {
    color: #333;
    font-weight: 600;
}

.ibct-nav-actions {
    margin-left: auto;
    display: flex;
    gap: 10px;
}

.ibct-new-assessment-btn {
    margin-left: auto;
}

/* Form Styles */
.ibct-form {
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 25px;
    margin-bottom: 30px;
}

.ibct-form-header {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e5e5e5;
}

.ibct-form-group {
    flex: 1;
    min-width: 250px;
    margin-bottom: 15px;
}

.ibct-form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 5px;
    color: #333;
}

.ibct-form-group input,
.ibct-form-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

.ibct-form-group input:focus,
.ibct-form-group select:focus {
    border-color: #007cba;
    box-shadow: 0 0 0 1px #007cba;
    outline: none;
}

.ibct-form-instructions {
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 25px;
}

.ibct-form-instructions ul {
    margin-left: 20px;
}

.essential-marker {
    color: #d32f2f;
    font-weight: bold;
}

/* Criteria Styles */
.ibct-criteria-container {
    margin-bottom: 25px;
}

.ibct-criterion-section {
    margin-bottom: 30px;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    overflow: hidden;
}

.ibct-criterion-header {
    background-color: #f0f0f1;
    padding: 12px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ibct-criterion-header h3 {
    margin: 0;
    font-size: 18px;
}

.ibct-criterion-weight {
    font-weight: bold;
    color: #555;
}

.ibct-criterion-items {
    padding: 0 15px;
}

.ibct-sub-criterion {
    display: flex;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
    align-items: center;
}

.ibct-sub-criterion:last-child {
    border-bottom: none;
}

.ibct-sub-criterion-info {
    flex: 2;
    min-width: 200px;
    padding-right: 15px;
}

.ibct-sub-criterion-no {
    font-weight: bold;
    color: #555;
    margin-right: 10px;
}

.ibct-rating-selector {
    flex: 1;
    min-width: 200px;
}

.ibct-rating-select {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

/* Button Styles */
.ibct-btn {
    display: inline-block;
    padding: 8px 16px;
    background-color: #f8f9fa;
    color: #333;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.ibct-btn:hover {
    background-color: #eee;
    text-decoration: none;
}

.ibct-btn-primary {
    background-color: #0073aa;
    color: #fff;
    border-color: #0073aa;
}

.ibct-btn-primary:hover {
    background-color: #005177;
    color: #fff;
    border-color: #005177;
}

.ibct-btn-secondary {
    background-color: #f8f9fa;
    color: #0073aa;
    border-color: #0073aa;
}

.ibct-btn-secondary:hover {
    background-color: #e2e6ea;
    color: #005177;
    border-color: #005177;
}

.ibct-form-actions {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e5e5e5;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.ibct-completion-status {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.ibct-completion-label {
    font-weight: 600;
    color: #555;
}

.ibct-completion-bar {
    width: 200px;
    height: 10px;
    background-color: #e9ecef;
    border-radius: 5px;
    overflow: hidden;
}

.ibct-completion-progress {
    height: 100%;
    background-color: #0073aa;
    border-radius: 5px;
    transition: width 0.3s ease;
}

.ibct-completion-percentage {
    font-weight: 500;
    color: #555;
}

/* Message Styles */
.ibct-message {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 4px;
}

.ibct-message-success {
    background-color: #e7f5ea;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.ibct-message-info {
    background-color: #e6f3fb;
    border: 1px solid #bee5eb;
    color: #0c5460;
}

.ibct-message-warning {
    background-color: #fff3cd;
    border: 1px solid #ffeeba;
    color: #856404;
}

.ibct-message-error {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.ibct-message-actions {
    margin-top: 10px;
    display: flex;
    gap: 10px;
}

.ibct-input-error {
    border-color: #dc3545 !important;
}

/* Results Styles */
.ibct-results-preview {
    background: #f8f9fa;
    border: 1px solid #e5e5e5;
    padding: 15px;
    border-radius: 4px;
    margin-top: 20px;
}

.ibct-result-item {
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
}

.ibct-result-label {
    font-weight: bold;
}

.ibct-results-header {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.ibct-results-meta {
    flex: 1;
    min-width: 200px;
}

.ibct-results-meta h3 {
    font-size: 24px;
    margin: 0 0 5px 0;
    color: #2c3e50;
}

.ibct-assessment-date {
    color: #6c757d;
    margin: 0;
    font-size: 14px;
}

.ibct-results-star-rating {
    flex: 1;
    min-width: 150px;
    text-align: center;
}

.ibct-star-display {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.ibct-star-number {
    font-size: 36px;
    font-weight: bold;
    display: block;
    margin-bottom: 5px;
}

.ibct-star-display .ibct-stars {
    font-size: 20px;
    margin: 8px 0;
    color: #ffc107;
}

.ibct-star-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 5px 0 0 0;
    opacity: 0.9;
}

.ibct-results-summary {
    flex: 1;
    min-width: 200px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ibct-summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: white;
    border-radius: 6px;
    border: 1px solid #e9ecef;
}

.ibct-summary-label {
    font-weight: 600;
    color: #495057;
    font-size: 14px;
}

.ibct-summary-value {
    font-weight: bold;
    font-size: 14px;
}

.ibct-summary-value.status-success {
    color: #28a745;
}

.ibct-summary-value.status-danger {
    color: #dc3545;
}

/* Button Styles */
.ibct-btn {
    display: inline-block;
    padding: 8px 16px;
    background-color: #f8f9fa;
    color: #333;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.ibct-btn:hover {
    background-color: #eee;
    text-decoration: none;
}

.ibct-btn-primary {
    background-color: #0073aa;
    color: #fff;
    border-color: #0073aa;
}

.ibct-btn-primary:hover {
    background-color: #005177;
    color: #fff;
    border-color: #005177;
}

.ibct-btn-secondary {
    background-color: #f8f9fa;
    color: #0073aa;
    border-color: #0073aa;
}

.ibct-btn-secondary:hover {
    background-color: #e2e6ea;
    color: #005177;
    border-color: #005177;
}

.ibct-form-actions {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e5e5e5;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.ibct-completion-status {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.ibct-completion-label {
    font-weight: 600;
    color: #555;
}

.ibct-completion-bar {
    width: 200px;
    height: 10px;
    background-color: #e9ecef;
    border-radius: 5px;
    overflow: hidden;
}

.ibct-completion-progress {
    height: 100%;
    background-color: #0073aa;
    border-radius: 5px;
    transition: width 0.3s ease;
}

.ibct-completion-percentage {
    font-weight: 500;
    color: #555;
}

/* Message Styles */
.ibct-message {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 4px;
}

.ibct-message-success {
    background-color: #e7f5ea;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.ibct-message-info {
    background-color: #e6f3fb;
    border: 1px solid #bee5eb;
    color: #0c5460;
}

.ibct-message-warning {
    background-color: #fff3cd;
    border: 1px solid #ffeeba;
    color: #856404;
}

.ibct-message-error {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.ibct-message-actions {
    margin-top: 10px;
    display: flex;
    gap: 10px;
}

.ibct-input-error {
    border-color: #dc3545 !important;
}

/* Results Styles */
.ibct-results-preview {
    background: #f8f9fa;
    border: 1px solid #e5e5e5;
    padding: 15px;
    border-radius: 4px;
    margin-top: 20px;
}

.ibct-result-item {
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
}

.ibct-result-label {
    font-weight: bold;
}

.ibct-results-header {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.ibct-results-meta {
    flex: 1;
    min-width: 200px;
}

.ibct-results-meta h3 {
    font-size: 24px;
    margin: 0 0 5px 0;
    color: #2c3e50;
}

.ibct-assessment-date {
    color: #6c757d;
    margin: 0;
    font-size: 14px;
}

.ibct-results-star-rating {
    flex: 1;
    min-width: 150px;
    text-align: center;
}

.ibct-star-display {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.ibct-star-number {
    font-size: 36px;
    font-weight: bold;
    display: block;
    margin-bottom: 5px;
}

.ibct-star-display .ibct-stars {
    font-size: 20px;
    margin: 8px 0;
    color: #ffc107;
}

.ibct-star-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 5px 0 0 0;
    opacity: 0.9;
}

.ibct-results-summary {
    flex: 1;
    min-width: 200px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ibct-summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: white;
    border-radius: 6px;
    border: 1px solid #e9ecef;
}

.ibct-summary-label {
    font-weight: 600;
    color: #495057;
    font-size: 14px;
}

.ibct-summary-value {
    font-weight: bold;
    font-size: 14px;
}

.ibct-summary-value.status-success {
    color: #28a745;
}

.ibct-summary-value.status-danger {
    color: #dc3545;
}

/* Table Styles */
.ibct-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.ibct-table th,
.ibct-table td {
    border: 1px solid #ddd;
    padding: 10px;
    text-align: left;
}

.ibct-table th {
    background-color: #f8f9fa;
    font-weight: 600;
}

.ibct-table tfoot {
    background-color: #f8f9fa;
    font-weight: 600;
}

/* Helper Classes */
.text-success {
    color: #28a745;
}

.text-danger {
    color: #dc3545;
}

/* Centers Directory Styles */
.ibct-centers-directory-wrapper {
    max-width: 1200px;
    margin: 0 auto;
}

.ibct-centers-filter {
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 15px;
    margin-bottom: 30px;
}

.ibct-filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: flex-end;
}

.ibct-filter-field {
    flex: 1;
    min-width: 200px;
}

.ibct-filter-field label {
    display: block;
    font-weight: 600;
    margin-bottom: 5px;
    color: #333;
}

.ibct-filter-field input,
.ibct-filter-field select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

.ibct-filter-actions {
    display: flex;
    gap: 10px;
}

.ibct-centers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.ibct-center-card {
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 0;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}

.ibct-center-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.ibct-center-header {
    background: #f8f9fa;
    padding: 15px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ibct-center-header h3 {
    margin: 0;
    font-size: 18px;
}

.ibct-center-stars {
    font-size: 18px;
    letter-spacing: 2px;
}

.ibct-center-stars .ibct-star.filled {
    color: #ffc107;
}

.ibct-center-stars .ibct-star.empty {
    color: rgba(255, 193, 7, 0.3);
}

.ibct-center-details {
    padding: 15px;
}

.ibct-center-meta {
    margin-bottom: 15px;
}

.ibct-center-meta>div {
    margin-bottom: 5px;
}

.ibct-center-actions {
    padding: 15px;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: space-between;
}

/* IBCT Branding */
.ibct-branding {
    text-align: center;
    margin: 10px 0 20px 0;
    font-size: 14px;
    color: #666;
}

.ibct-branding a {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 500;
}

.ibct-branding a:hover {
    color: #2563eb;
    text-decoration: underline;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .ibct-form-header {
        flex-direction: column;
    }

    .ibct-sub-criterion {
        flex-direction: column;
        align-items: flex-start;
    }

    .ibct-sub-criterion-info,
    .ibct-rating-selector {
        width: 100%;
        padding-right: 0;
    }

    .ibct-rating-selector {
        margin-top: 10px;
    }
}

/* Print Styles */
@media print {

    .ibct-results-actions,
    .site-header,
    .site-footer,
    .navigation,
    .sidebar {
        display: none !important;
    }

    .ibct-certification-results-wrapper {
        margin: 0;
        padding: 0;
        box-shadow: none;
        width: 100%;
    }

    body,
    html {
        width: 100%;
        height: auto;
    }
}