/* Institution Detail Page Styles */

/* Main Content Styles */
.page-content {
    padding: 20px;
    height: calc(100vh - 70px);
    overflow-y: auto;
}

/* Institution Banner Section */
.institution-banner {
    background: linear-gradient(to right, #f8f9fa, #e9ecef);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.institution-info h1 {
    margin: 0 0 10px 0;
    font-size: 1.8rem;
    color: #2c3e50;
}

.institution-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.meta-item {
    font-size: 0.9rem;
    color: #555;
}

.institution-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
}

.contact-btn {
    white-space: nowrap;
}

.verification-status .status-badge {
    font-size: 0.85rem;
}

/* Tabs Section */
.tabs-section {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    overflow: hidden;
}

.tabs {
    display: flex;
    background-color: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
}

.tab {
    padding: 12px 20px;
    background: none;
    border: none;
    cursor: pointer;
    font-weight: 500;
    color: #6c757d;
    transition: all 0.2s ease;
    border-bottom: 3px solid transparent;
}

.tab:hover {
    color: #495057;
    background-color: #e9ecef;
}

.tab.active {
    color: #3498db;
    border-bottom: 3px solid #3498db;
    background-color: #fff;
}

.tab-content {
    display: none;
    padding: 20px;
}

.tab-content.active {
    display: block;
}

/* Scores Tab Styles */
.score-overview {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 20px;
    margin-bottom: 30px;
}

.overall-score-card {
    background-color: #f8f9fa;
    padding: 25px;
    border-radius: 8px;
    text-align: center;
    position: relative;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.overall-score-card h2 {
    margin: 0 0 15px 0;
    font-size: 1.2rem;
    color: #495057;
}

.provisional-tag {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #ffc107;
    color: #212529;
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: 20px;
    font-weight: bold;
}

.score-value {
    font-size: 3rem;
    font-weight: bold;
    color: #2c3e50;
    margin: 10px 0;
}

.score-note {
    font-size: 0.8rem;
    color: #6c757d;
}

.score-breakdown {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.score-breakdown h3 {
    margin: 0 0 15px 0;
    font-size: 1.1rem;
    color: #495057;
}

.chart-container {
    height: 220px;
}

/* Detailed Scores Table */
.detailed-scores {
    margin-bottom: 30px;
}

.detailed-scores h3 {
    margin: 0 0 15px 0;
    font-size: 1.1rem;
    color: #495057;
}

.scores-table {
    width: 100%;
    border-collapse: collapse;
}

.scores-table th {
    background-color: #f8f9fa;
    padding: 12px 15px;
    text-align: left;
    font-weight: 600;
    color: #495057;
    border-bottom: 2px solid #dee2e6;
}

.scores-table td {
    padding: 10px 15px;
    border-bottom: 1px solid #e9ecef;
}

.parameter-group td {
    font-weight: 600;
    background-color: #f8f9fa;
}

.sub-parameter td:first-child {
    padding-left: 30px;
    color: #495057;
}

.total-row td {
    font-weight: 700;
    border-top: 2px solid #dee2e6;
    background-color: #e9ecef;
}

/* Key Metrics Section */
.key-metrics h3 {
    margin: 0 0 15px 0;
    font-size: 1.1rem;
    color: #495057;
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.metric-card {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.metric-card.positive {
    background-color: #e8f4fd;
    border-left: 4px solid #3498db;
}

.metric-card.negative {
    background-color: #fff5f5;
    border-left: 4px solid #e74c3c;
}

.metric-icon {
    font-size: 1.8rem;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.metric-card.positive .metric-icon {
    color: #3498db;
    background-color: rgba(52, 152, 219, 0.1);
}

.metric-card.negative .metric-icon {
    color: #e74c3c;
    background-color: rgba(231, 76, 60, 0.1);
}

.metric-content h4 {
    margin: 0 0 5px 0;
    font-size: 1rem;
}

.metric-content p {
    margin: 0;
    font-size: 0.85rem;
    color: #6c757d;
}

/* Submitted Data Tab */
.data-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.search-box {
    position: relative;
    flex: 1;
    max-width: 500px;
}

.search-box input {
    width: 100%;
    padding: 10px 15px 10px 40px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 0.9rem;
}

.search-box i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #6c757d;
}

.data-accordion {
    border: 1px solid #dee2e6;
    border-radius: 8px;
    overflow: hidden;
}

.accordion-item {
    border-bottom: 1px solid #dee2e6;
}

.accordion-item:last-child {
    border-bottom: none;
}

.accordion-header {
    padding: 15px;
    background-color: #f8f9fa;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.accordion-header h3 {
    margin: 0;
    font-size: 1rem;
    color: #495057;
}

.accordion-icon {
    transition: transform 0.3s ease;
}

.accordion-item.active .accordion-icon {
    transform: rotate(180deg);
}

.accordion-content {
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.accordion-item.active .accordion-content {
    max-height: 1000px;
    padding: 15px;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #e9ecef;
}

.data-table tr:last-child td {
    border-bottom: none;
}

.param-name {
    width: 40%;
    font-weight: 500;
    color: #495057;
}

.param-value {
    width: 40%;
    color: #2c3e50;
}

.param-status {
    width: 20%;
    text-align: right;
}

.verification-icon {
    font-size: 1.1rem;
}

.verification-icon.verified {
    color: #2ecc71;
}

.verification-icon.pending {
    color: #f39c12;
}

/* Verification History Tab */
.verification-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.filter-options select {
    padding: 10px 15px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 0.9rem;
    color: #495057;
}

.verification-table {
    width: 100%;
    border-collapse: collapse;
}

.verification-table th {
    background-color: #f8f9fa;
    padding: 12px 15px;
    text-align: left;
    font-weight: 600;
    color: #495057;
    border-bottom: 2px solid #dee2e6;
}

.verification-table td {
    padding: 10px 15px;
    border-bottom: 1px solid #e9ecef;
    vertical-align: middle;
}

.status-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
}

.status-badge.pending {
    background-color: #ffeeba;
    color: #856404;
}

.status-badge.verification-requested {
    background-color: #d1ecf1;
    color: #0c5460;
}

.status-badge.verified {
    background-color: #d4edda;
    color: #155724;
}

.status-badge.rejected {
    background-color: #f8d7da;
    color: #721c24;
}

.view-btn {
    padding: 5px 10px;
    background-color: #6c757d;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

/* Communication Log Tab */
.communication-controls {
    margin-bottom: 20px;
}

.communication-log {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.message-item {
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.message-item.incoming {
    background-color: #f8f9fa;
    border-left: 4px solid #6c757d;
}

.message-item.outgoing {
    background-color: #e8f4fd;
    border-left: 4px solid #3498db;
}

.message-item.system {
    background-color: #f8f9fa;
    border-left: 4px solid #17a2b8;
    font-style: italic;
}

.message-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.message-sender, .message-type {
    font-weight: 600;
    color: #495057;
    font-size: 0.9rem;
}

.message-time {
    color: #6c757d;
    font-size: 0.8rem;
}

.message-content {
    color: #212529;
    font-size: 0.95rem;
    line-height: 1.5;
}

.message-attachments {
    margin-top: 10px;
    border-top: 1px solid rgba(0,0,0,0.1);
    padding-top: 10px;
}

.attachment {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background-color: rgba(0,0,0,0.05);
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.85rem;
    color: #495057;
}

.attachment i {
    color: #e74c3c;
}

/* Button Styles */
.btn {
    padding: 8px 15px;
    border: none;
    border-radius: 4px;
    font-weight: 500;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all 0.2s ease;
}

.primary-btn {
    background-color: #3498db;
    color: white;
}

.primary-btn:hover {
    background-color: #2980b9;
}

.secondary-btn {
    background-color: #6c757d;
    color: white;
}

.secondary-btn:hover {
    background-color: #5a6268;
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    .score-overview {
        grid-template-columns: 1fr;
    }
    
    .institution-banner {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .institution-actions {
        align-items: flex-start;
        width: 100%;
    }
}

@media (max-width: 768px) {
    .tabs {
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 5px;
    }
    
    .metrics-grid {
        grid-template-columns: 1fr;
    }
    
    .verification-table {
        display: block;
        overflow-x: auto;
    }
}

@media (max-width: 576px) {
    .meta-item {
        width: 100%;
    }
    
    .data-controls {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .search-box {
        max-width: 100%;
        width: 100%;
    }
} 