/* Variable Definitions based on Reference */
:root {
    --panggilan-primary: #006064;
    /* Dark Cyan/Teal */
    --panggilan-secondary: #e0f7fa;
    /* Light Cyan */
    --panggilan-accent: #00acc1;
    /* Cyan Accent */
    --panggilan-text: #2c3e50;
    --panggilan-link-bg: #e3f2fd;
    --panggilan-link-color: #1976d2;
}

.com-panggilan {
    font-family: 'Segoe UI', Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--panggilan-text);
}

/* Page Header */
.com-panggilan .page-header h2 {
    color: var(--panggilan-text);
    font-weight: 700;
    text-align: center;
    margin-bottom: 30px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Sidebar Styling */
.panggilan-sidebar .card {
    border: none;
    background: transparent;
}

.panggilan-year-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    margin-bottom: 8px;
    color: var(--panggilan-text);
    background-color: transparent;
    border: none;
    /* Remove border */
    border-radius: 8px;
    /* Rounded corners */
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.panggilan-year-link:hover {
    background-color: rgba(0, 96, 100, 0.05);
    color: var(--panggilan-primary);
}

.panggilan-year-link.active {
    background-color: var(--panggilan-primary);
    color: #fff;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Accordion Styling - Sweet & Clean */
.panggilan-accordion .accordion-item {
    border: none;
    border-bottom: 1px solid #f0f0f0;
    margin-bottom: 0;
    border-radius: 0 !important;
    background: transparent;
    box-shadow: none;
}

.panggilan-accordion .accordion-button {
    background-color: transparent;
    color: var(--panggilan-text);
    font-weight: 600;
    padding: 1rem 0;
    box-shadow: none !important;
    font-size: 0.95rem;
    /* Smaller, sweeter font */
    display: flex;
    align-items: center;
    width: 100%;
    /* Force full width */
    text-align: left;
    justify-content: space-between;
}

.panggilan-accordion .accordion-button:not(.collapsed) {
    background-color: transparent;
    color: var(--panggilan-primary);
}

/* Custom Icon placement on the right */
.panggilan-accordion .accordion-button::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%236c757d'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
    margin-left: 0;
    /* Strict control */
    transform: scale(0.8);
    /* Smaller icon */
    flex-shrink: 0;
}

.panggilan-accordion .accordion-button:not(.collapsed)::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23006064'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

/* Badge Styling - Clean */
.panggilan-badge {
    background-color: #828b93;
    color: #212529;
    padding: 4px 10px;
    font-weight: 600;
    font-size: 0.75rem;
    border-radius: 12px;
    margin-right: 8px;
    /* Spacing from arrow */
}

.accordion-button:not(.collapsed) .panggilan-badge {
    background-color: var(--panggilan-primary);
    color: #fff;
}

/* Table Styling */
.panggilan-table {
    margin-bottom: 0;
}

.panggilan-table thead th {
    background-color: #fff;
    border-bottom: 1px solid #eee;
    color: #888;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
    padding: 15px 20px;
}

.panggilan-table tbody td {
    padding: 15px 20px;
    vertical-align: middle;
    border-bottom: 1px solid #f5f5f5;
    font-size: 0.95rem;
}

.panggilan-case-number {
    background-color: #f1f3f4;
    padding: 6px 12px;
    border-radius: 6px;
    font-family: monospace;
    color: #444;
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-block;
}

/* Action Button */
.btn-action-link {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--panggilan-link-bg);
    color: var(--panggilan-link-color);
    border-radius: 8px;
    border: none;
    transition: all 0.2s;
}

.btn-action-link:hover {
    background-color: var(--panggilan-link-color);
    color: #fff;
    transform: translateY(-2px);
}

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

/* Modal */
.pdf-viewer-container {
    width: 100%;
    height: 80vh;
    border: none;
}

.modal-xl {
    max-width: 90%;
}