/* Public Transparency Portal Styles */

/* General portal styles */
.transparency-heading {
    position: relative;
    padding-bottom: 0.75rem;
    font-weight: 600;
}

.transparency-heading:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #4287f5, #62a1ff);
    border-radius: 2px;
}

/* Card and list styles */
.decision-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background-color: #ffffff;
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    box-shadow: 0 3px 15px rgba(0,0,0,0.04);
    border: 1px solid #f0f0f0;
}

.decision-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    border-color: #e5e9f2;
}

/* Modern card styles */
.content-card {
    border-radius: 12px;
    border: none;
    background-color: #fff;
    box-shadow: 0 2px 12px rgba(0,0,0,0.03);
    transition: all 0.3s ease;
    margin-bottom: 1.75rem;
}

.content-card:hover {
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.content-card .card-header {
    background: linear-gradient(to right, #ffffff, #fcfdff);
    border-bottom: 1px solid #f0f4f9;
    padding: 1.25rem 1.5rem;
    border-radius: 12px 12px 0 0 !important;
}

.content-section {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #f0f4f9;
}

.content-section:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.section-label {
    color: #4a5568;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    letter-spacing: 0.3px;
}

.section-content {
    color: #2d3748;
    line-height: 1.7;
}

/* Search form styling */
.search-form .input-group-text {
    border-right: none;
    color: #6c757d;
}

.search-form .form-control {
    border-left: none;
    font-size: 1rem;
}

.search-form .form-control:focus {
    box-shadow: none;
    border-color: #4287f5;
}

.search-form .form-control:focus + .input-group-text {
    border-color: #4287f5;
}

.search-form .input-group-text {
    background-color: #fff;
    border-color: #ced4da;
}

/* Filter badges */
.filter-badge {
    font-size: 0.85rem;
    padding: 0.4rem 0.8rem;
    margin-right: 0.5rem;
    background-color: #f8f9fa;
    color: #495057;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.25s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.filter-badge:hover {
    background-color: #e9ecef;
    color: #212529;
}

.filter-badge i {
    font-size: 0.8rem;
    opacity: 0.7;
}

.filter-badge:hover i {
    opacity: 1;
}

/* Status badges */
.status-badge {
    font-weight: 500;
    padding: 0.35rem 0.8rem;
    border-radius: 8px;
    font-size: 0.75rem;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

/* Tag cloud */
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.tag-item {
    font-size: 0.85rem;
    padding: 0.35rem 0.8rem;
    border-radius: 8px;
    background-color: #f5f7fa;
    color: #495057;
    text-decoration: none;
    transition: all 0.25s;
    white-space: nowrap;
    border: 1px solid #edf0f5;
    display: inline-block;
}

.tag-item:hover {
    background-color: #edf0f5;
    color: #212529;
    border-color: #e2e6ec;
    transform: translateY(-2px);
}

.tag-count {
    font-size: 0.75rem;
    padding: 0.1rem 0.4rem;
    border-radius: 4px;
    background-color: rgba(66, 135, 245, 0.1);
    color: #4287f5;
    margin-left: 0.4rem;
    font-weight: 500;
}

/* Timeline styling */
.timeline-container {
    margin-left: 0.5rem;
}

.timeline-item {
    position: relative;
    padding-left: 2.25rem;
    padding-bottom: 1.5rem;
    border-left: 2px solid #e9ecef;
}

.timeline-item:last-child {
    border-left: none;
    padding-bottom: 0;
}

.timeline-dot {
    position: absolute;
    left: -9px;
    top: 0;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: #fff;
    border: 2px solid;
    box-shadow: 0 0 0 4px rgba(255,255,255,0.8);
    z-index: 1;
}

.timeline-dot.pending {
    border-color: #ffc107;
}

.timeline-dot.reviewed {
    border-color: #0dcaf0;
}

.timeline-dot.completed {
    border-color: #198754;
}

.timeline-date {
    display: inline-flex;
    align-items: center;
    background: rgba(66, 135, 245, 0.08);
    color: #4287f5;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.35rem 0.75rem;
    border-radius: 6px;
    letter-spacing: 0.4px;
}

/* Decision detail styles */
.decision-header {
    background: linear-gradient(145deg, #ffffff, #f8f9fa);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 1.75rem;
    box-shadow: 0 3px 15px rgba(0,0,0,0.03);
}

.decision-title {
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #2d3748;
}

.decision-meta-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 2rem;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #4a5568;
}

.meta-item i {
    color: #4287f5;
    font-size: 1.1rem;
}

.reference-item {
    margin-bottom: 1.25rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid #f0f4f9;
}

.reference-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.reference-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #64748b;
    margin-bottom: 0.25rem;
}

.reference-value {
    font-size: 0.95rem;
    color: #2d3748;
}

.related-decision {
    border-bottom: 1px solid #f0f4f9;
    padding: 1.25rem;
    transition: all 0.2s ease;
}

.related-decision:last-child {
    border-bottom: none;
}

.related-decision:hover {
    background-color: #f9fafb;
}

.related-title {
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.related-summary {
    color: #64748b;
    font-size: 0.85rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.related-date {
    font-size: 0.75rem;
    color: #64748b;
}

.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: white;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    transition: all 0.2s ease;
    border: 1px solid #e5e9f2;
    color: #4a5568;
    text-decoration: none;
    margin-bottom: 1.5rem;
}

.back-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.08);
    color: #2d3748;
    background-color: #f9fafb;
}

.decision-category {
    letter-spacing: 0.3px;
    font-size: 0.75rem;
    text-transform: uppercase;
}

.decision-meta {
    font-size: 0.9rem;
    color: #6c757d;
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
}

.decision-meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Modern cards */
.search-card {
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.stats-card {
    background: linear-gradient(145deg, #ffffff, #f8f9fa);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stats-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(0,0,0,0.06);
}

/* Section headers */
.section-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    position: relative;
    padding-bottom: 0.75rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: #4287f5;
    border-radius: 2px;
}

/* Empty state styling */
.empty-state {
    padding: 3rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #6c757d;
}

.empty-state i {
    font-size: 3rem;
    color: #adb5bd;
    margin-bottom: 1.5rem;
}

/* Animations */
.animate-fade-in {
    animation: fadeIn 0.5s ease forwards;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in-up {
    animation: fadeInUp 0.5s ease forwards;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsive adjustments */
@media (max-width: 767.98px) {
    .transparency-heading {
        font-size: 1.75rem;
    }
    
    .timeline-item {
        padding-left: 1.5rem;
    }
    
    .filter-badges-container {
        gap: 0.5rem;
        margin-top: 1rem;
    }
    
    .decision-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .decision-meta-wrapper {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .decision-title {
        font-size: 1.5rem;
    }
    
    .card-header {
        padding: 1rem;
    }
    
    .card-body {
        padding: 1rem;
    }
}

/* Modern form elements */
.form-control, .form-select {
    border-radius: 8px;
    border-color: #e9ecef;
    transition: all 0.2s ease;
    padding: 0.6rem 0.9rem;
}

.form-control:focus, .form-select:focus {
    border-color: #90b5e2;
    box-shadow: 0 0 0 0.25rem rgba(66, 135, 245, 0.15);
}

/* Button styling */
.btn {
    border-radius: 8px;
    padding: 0.6rem 1.25rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.btn-primary {
    background-color: #4287f5;
    border-color: #4287f5;
}

.btn-primary:hover {
    background-color: #3273e2;
    border-color: #3273e2;
    transform: translateY(-1px);
}

/* Pagination */
.pagination {
    gap: 0.25rem;
}

.page-link {
    border-radius: 6px;
    color: #4287f5;
    padding: 0.5rem 0.75rem;
    font-weight: 500;
}

.page-item.active .page-link {
    background-color: #4287f5;
    border-color: #4287f5;
}