/* Dividend Page Styles */

.dividend-header h1 {
    color: var(--text-primary);
    font-weight: 800;
}

.current-price-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 1px solid var(--border-color);
    transition: transform 0.2s ease;
}

.current-price-card:hover {
    /* Removed transform effect */
}

/* Compact price info box */
.price-info-compact {
    transition: box-shadow 0.2s ease;
    border: 1px solid #e9ecef !important;
}

.price-info-compact:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Minimalist badges */
.badge.bg-light {
    background-color: #f8f9fa !important;
    border: 1px solid #dee2e6 !important;
    color: #495057 !important;
    font-weight: 500;
}

/* Small buttons */
.btn-sm {
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
    border-radius: 0.375rem;
    font-weight: 500;
}

.btn-outline-secondary {
    border-color: #dee2e6;
    color: #6c757d;
}

.btn-outline-secondary:hover {
    background-color: #f8f9fa;
    border-color: #dee2e6;
    color: #495057;
}

/* Action buttons container */
.d-flex.gap-2 .btn {
    min-width: 0;
    white-space: nowrap;
}

.d-flex.gap-2 .btn.flex-fill {
    flex: 1 1 0%;
}

/* Statistics Cards */
.stat-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid #e9ecef !important;
    background-color: #ffffff !important;
}

.stat-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-color: #dee2e6 !important;
}

.stat-card .stat-value {
    color: #212529 !important;
}

.stat-card .stat-label {
    color: #6c757d !important;
}

.stat-card i {
    color: #adb5bd !important;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
}

.stat-label {
    font-size: 0.85rem;
    opacity: 0.9;
}

/* Dividend Cards */
.dividend-card {
    transition: all 0.3s ease;
    border-radius: 12px !important;
    overflow: hidden;
    background: white;
}

.dividend-card:hover {
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1) !important;
}

.dividend-card.border-warning {
    border: 2px solid #ffc107 !important;
    background: linear-gradient(135deg, #fff9e6 0%, #ffffff 100%);
}

.dividend-amount {
    text-align: center;
    padding: 1rem 0;
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(0, 121, 107, 0.05) 0%, rgba(0, 121, 107, 0.02) 100%);
    margin-bottom: 1.5rem;
}

.dividend-dates .date-item {
    transition: background-color 0.2s ease;
    border: 1px solid transparent;
}

.dividend-dates .date-item:hover {
    background-color: var(--primary-color) !important;
    color: white;
    border-color: var(--primary-color);
}

.dividend-dates .date-item:hover .text-muted {
    color: rgba(255, 255, 255, 0.8) !important;
}

/* Upcoming Dividend Alert */
.dividend-countdown {
    text-align: center;
}

.dividend-countdown .h3 {
    font-size: 3rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Badge Improvements */
.badge {
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 20px;
}

.badge.bg-success {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%) !important;
}

.badge.bg-warning {
    background: linear-gradient(135deg, #ffc107 0%, #fd7e14 100%) !important;
}

.badge.bg-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, #004d46 100%) !important;
}

.badge.bg-danger {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%) !important;
    animation: pulse-urgent 2s infinite;
}

@keyframes pulse-urgent {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.4);
    }
    50% {
        box-shadow: 0 0 0 8px rgba(220, 53, 69, 0);
    }
}

/* Info Section */
.info-section {
    background: linear-gradient(135deg, rgba(0, 121, 107, 0.02) 0%, rgba(255, 255, 255, 0.02) 100%);
    border-radius: 12px;
    padding: 2rem;
    margin-top: 3rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .stat-card {
        margin-bottom: 1rem;
    }
    
    .dividend-card {
        margin-bottom: 1.5rem;
    }
    
    .dividend-amount {
        margin-bottom: 1rem;
    }
    
    .current-price-card, .price-info-compact {
        text-align: center;
        margin-top: 2rem;
    }
    
    .dividend-header h1 {
        font-size: 2rem;
        text-align: center;
    }
    
    .dividend-countdown .h3 {
        font-size: 2rem;
    }
    
    /* Mobile adjustments for new header */
    .dividend-header .d-flex.gap-3 {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 1rem !important;
    }
    
    .dividend-header .ms-auto {
        margin-left: 0 !important;
        align-self: stretch;
    }
    
    .dividend-header .d-flex.gap-2 {
        justify-content: center;
        width: 100%;
    }
    
    /* Mobile adjustments for price section */
    .col-lg-4 .d-flex.flex-column {
        align-items: center;
    }
    
    .col-lg-4 .d-flex.gap-2 {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 576px) {
    .dividend-dates .row {
        gap: 0.5rem;
    }
    
    .dividend-dates .col-6 {
        flex: 0 0 calc(50% - 0.25rem);
    }
    
    .stat-value {
        font-size: 1.5rem;
    }
    
    .info-section {
        padding: 1.5rem;
        margin-top: 2rem;
    }
}

/* Animation for upcoming dividend alert */
@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.alert-warning {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%) !important;
    border: none !important;
}

/* Company info badges */
.company-info .badge {
    font-size: 0.9rem;
    padding: 0.4rem 0.8rem;
}

/* Breadcrumb styling */
.breadcrumb-item a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.2s ease;
}

.breadcrumb-item a:hover {
    color: var(--secondary-color);
}

/* Loading placeholder for future use */
.dividend-skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Dividend Timeline Styles */
.dividend-timeline {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
}

.timeline-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    position: relative;
    padding: 2rem 0;
}

.timeline-container::before {
    content: '';
    position: absolute;
    top: 60px;
    left: 12%;
    right: 12%;
    height: 4px;
    background: linear-gradient(to right, var(--primary-color), #28a745, #dc3545, #6c757d, #17a2b8);
    border-radius: 2px;
    z-index: 1;
}

.timeline-step {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
}

.timeline-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    border: 4px solid white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
}

.timeline-step:hover .timeline-icon {
    transform: scale(1.1);
}

.timeline-step.critical .timeline-icon {
    animation: pulse-success 2s infinite;
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.4);
}

.timeline-step.warning .timeline-icon {
    animation: pulse-danger 2s infinite;
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
}

@keyframes pulse-success {
    0% {
        box-shadow: 0 4px 12px rgba(40, 167, 69, 0.4);
    }
    50% {
        box-shadow: 0 4px 20px rgba(40, 167, 69, 0.7);
    }
    100% {
        box-shadow: 0 4px 12px rgba(40, 167, 69, 0.4);
    }
}

@keyframes pulse-danger {
    0% {
        box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
    }
    50% {
        box-shadow: 0 4px 20px rgba(220, 53, 69, 0.6);
    }
    100% {
        box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
    }
}

.timeline-content {
    text-align: center;
    max-width: 180px;
}

.timeline-date {
    font-weight: bold;
    color: var(--primary-color);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.timeline-title {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.timeline-description {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

.timeline-step.critical .timeline-date,
.timeline-step.critical .timeline-title {
    color: #28a745;
}

.timeline-step.warning .timeline-date,
.timeline-step.warning .timeline-title {
    color: #dc3545;
}

/* Rule Cards */
.rule-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.rule-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1) !important;
}

/* Timeline Example Background */
.timeline-example {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 2px solid var(--border-color);
}

/* Dividend Cut-off Section */
.dividend-cutoff-section {
    background: linear-gradient(135deg, rgba(0, 121, 107, 0.02) 0%, rgba(255, 255, 255, 0.02) 100%);
    border-radius: 12px;
    padding: 2rem;
}

/* Mobile Timeline Responsive */
@media (max-width: 768px) {
    .timeline-container {
        flex-direction: column;
        align-items: stretch;
        gap: 2rem;
    }
    
    .timeline-container::before {
        display: none;
    }
    
    .timeline-step {
        flex-direction: row;
        align-items: center;
        text-align: left;
        background: white;
        padding: 1.5rem;
        border-radius: 12px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        margin-bottom: 1rem;
    }
    
    .timeline-icon {
        margin-bottom: 0;
        margin-right: 1rem;
        flex-shrink: 0;
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .timeline-content {
        max-width: none;
        text-align: left;
    }
    
    .timeline-step.critical {
        border-left: 4px solid #28a745;
    }
    
    .timeline-step.warning {
        border-left: 4px solid #dc3545;
    }
}

@media (max-width: 576px) {
    .dividend-cutoff-section {
        padding: 1rem;
    }
    
    .timeline-example {
        padding: 1.5rem !important;
    }
    
    .timeline-step {
        padding: 1rem;
    }
    
    .timeline-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .rule-card {
        margin-bottom: 1rem;
    }
}

/* Enhanced Alert for Pro Tip */
.alert-info {
    background: linear-gradient(135deg, #d1ecf1 0%, #b8e6f0 100%) !important;
    border: none !important;
}

/* Dividend Table Styles */
.dividend-table {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    background: white;
}

.dividend-table thead th {
    background: var(--primary-color) !important; /* Simple dark gray */
    background-image: none !important;
    color: white !important;
    border: none !important;
    font-weight: 600 !important;
    padding: 1rem 0.75rem;
    font-size: 0.9rem;
}

/* Active sort column highlighting */
.dividend-table thead th.table-active-sort {
    background-color: #495057 !important; /* Slightly lighter gray */
    background-image: none !important;
    border-color: #495057 !important;
}

.dividend-table thead th.table-active-sort .sort-link {
    color: #ffffff !important;
    font-weight: 700; /* Slightly bolder */
}

.dividend-table thead th.table-active-sort .sort-link:hover {
    color: #f8f9fa !important;
}

.dividend-table thead th.table-active-sort .sort-icon,
.dividend-table thead th.table-active-sort .sort-icon-active {
    color: #ffffff !important;
}

.dividend-table tbody tr {
    border: none;
}

.dividend-table tbody tr:hover {
    background-color: rgba(0, 121, 107, 0.05) !important;
}

.dividend-table tbody td {
    padding: 1rem 0.75rem;
    vertical-align: middle;
    border-color: rgba(0, 0, 0, 0.05);
}

.year-badge {
    font-size: 1.1rem;
    color: var(--primary-color);
}

.dividend-amount-cell {
    padding: 0.5rem 0;
}

.date-cell {
    min-width: 60px;
}

.critical-date {
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.1) 0%, rgba(40, 167, 69, 0.05) 100%);
    border-radius: 8px;
    padding: 0.5rem;
    margin: -0.25rem;
}

.critical-date .fw-bold {
    font-size: 1.1rem;
}

/* Table warning row for upcoming dividends */
.table-warning {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.1) 0%, rgba(255, 193, 7, 0.05) 100%) !important;
}

.table-warning:hover {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.15) 0%, rgba(255, 193, 7, 0.08) 100%) !important;
}

/* Mobile cards */
.dividend-mobile-card {
    border-radius: 12px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.dividend-mobile-card:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.dividend-mobile-card.border-warning {
    border-color: #ffc107 !important;
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.1) 0%, rgba(255, 255, 255, 1) 100%);
}

/* Responsive table adjustments */
@media (max-width: 991px) {
    .dividend-table {
        font-size: 0.9rem;
    }
    
    .dividend-table thead th {
        padding: 0.75rem 0.5rem;
        font-size: 0.8rem;
    }
    
    .dividend-table tbody td {
        padding: 0.75rem 0.5rem;
    }
    
    .year-badge {
        font-size: 1rem;
    }
    
    .critical-date {
        padding: 0.25rem;
        margin: -0.1rem;
    }
}

@media (max-width: 768px) {
    .dividend-table {
        font-size: 0.85rem;
    }
    
    .table-responsive {
        border-radius: 12px;
    }
    
    .dividend-amount-cell {
        padding: 0.25rem 0;
    }
    
    .dividend-amount-cell .h5 {
        font-size: 1.1rem;
    }
    
    /* Improve table readability on mobile */
    .table {
        font-size: 0.8rem;
    }
    
    .table thead th {
        padding: 0.5rem 0.25rem;
        font-size: 0.75rem;
        white-space: nowrap;
    }
    
    .table tbody td {
        padding: 0.5rem 0.25rem;
        font-size: 0.8rem;
    }
    
    /* Make company names wrap better on mobile */
    .table tbody td:first-child {
        max-width: 120px;
        word-wrap: break-word;
        white-space: normal;
    }
    
    /* Make amounts and status more prominent on mobile */
    .table tbody td:nth-last-child(2) strong {
        font-size: 0.85rem;
    }
    
    .table .badge {
        font-size: 0.7rem;
        padding: 0.25rem 0.5rem;
    }
    
    /* Mobile row expansion styles */
    .dividend-row-main {
        transition: background-color 0.2s ease;
    }
    
    .dividend-row-main:active {
        background-color: rgba(0, 121, 107, 0.1) !important;
    }
    
    .mobile-expand-icon {
        transition: transform 0.3s ease;
    }
    
    .dividend-row-details td {
        border-top: none !important;
        animation: slideDown 0.3s ease;
    }
    
    .dividend-row-details .row {
        background: white;
        border-radius: 8px;
        padding: 0.5rem;
    }
    
    .dividend-row-details small {
        font-size: 0.7rem;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }
    
    /* Days countdown highlight in mobile details */
    .dividend-row-details .col-12 {
        border-top: 2px solid rgba(0, 121, 107, 0.1);
        padding-top: 1rem !important;
        margin-top: 0.5rem;
    }
    
    .dividend-row-details .col-12 .badge {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
    
    /* More button in mobile details */
    .dividend-row-details .btn-outline-primary {
        border-color: var(--primary-color);
        color: var(--primary-color);
        font-weight: 500;
        transition: all 0.2s ease;
    }
    
    .dividend-row-details .btn-outline-primary:hover {
        background-color: var(--primary-color);
        border-color: var(--primary-color);
        color: white;
    }
    
    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
}

@media (max-width: 576px) {
    /* Further optimize for very small screens (phones in portrait) */
    .table {
        font-size: 0.7rem;
    }
    
    .table thead th {
        padding: 0.4rem 0.2rem;
        font-size: 0.7rem;
    }
    
    .table tbody td {
        padding: 0.4rem 0.2rem;
        font-size: 0.75rem;
    }
    
    .table tbody td:first-child {
        max-width: 100px;
    }
    
    .table tbody td:nth-last-child(2) strong {
        font-size: 0.8rem;
    }
    
    .table .badge {
        font-size: 0.65rem;
        padding: 0.2rem 0.4rem;
    }
    
    /* Improve horizontal scrolling experience */
    .table-responsive {
        -webkit-overflow-scrolling: touch;
        overflow-x: auto;
        margin: 0 -0.5rem;
    }
}

/* Print styles */
@media print {
    .stat-card, .dividend-card {
        break-inside: avoid;
        box-shadow: none !important;
        border: 1px solid #ddd !important;
    }
    
    .alert-warning {
        animation: none;
    }
    
    .timeline-step.critical .timeline-icon,
    .timeline-step.warning .timeline-icon {
        animation: none;
    }
    
    .dividend-cutoff-section {
        break-inside: avoid;
    }
}

/* Active Sort Column Styling - moved to bottom of file */

/* Calendar Page Specific Styles */
.dividend-calendar-header {
    background: linear-gradient(135deg, rgba(0, 121, 107, 0.05) 0%, rgba(255, 255, 255, 0.05) 100%);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.index-filter-dropdown .dropdown-menu {
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border: none;
    padding: 0.5rem 0;
}

.index-filter-dropdown .dropdown-item {
    padding: 0.75rem 1.5rem;
    border-radius: 0;
}

.index-filter-dropdown .dropdown-item:hover {
    background: linear-gradient(135deg, rgba(0, 121, 107, 0.1) 0%, rgba(0, 121, 107, 0.05) 100%);
    color: var(--primary-color);
    transform: translateX(5px);
}

.index-filter-dropdown .dropdown-item.active {
    background: var(--primary-color);
    color: white;
}

/* Company Year Page Styles */
.year-navigation {
    background: linear-gradient(135deg, rgba(0, 121, 107, 0.02) 0%, rgba(255, 255, 255, 0.02) 100%);
    border-radius: 12px;
    padding: 2rem;
}

.year-navigation .btn {
    padding: 0.75rem 2rem;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.year-navigation .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 121, 107, 0.3);
}

/* Enhanced Statistics Cards for Calendar */
.calendar-stats .stat-card {
    background: linear-gradient(135deg, var(--primary-color) 0%, #004d46 100%);
    color: white;
    border-radius: 15px;
    position: relative;
    overflow: hidden;
}

.calendar-stats .stat-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: rotate(45deg);
    transition: all 0.5s ease;
    opacity: 0;
}

.calendar-stats .stat-card:hover::before {
    opacity: 1;
    top: -10%;
    right: -10%;
}

/* Methodology Section */
.methodology-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 2px solid var(--border-color);
    border-radius: 15px;
    padding: 2rem;
    margin-top: 3rem;
}

.methodology-section .alert-heading {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.methodology-section ul {
    padding-left: 1.5rem;
}

.methodology-section li {
    margin-bottom: 0.75rem;
    line-height: 1.6;
}

/* FAQ Accordion Styles */
.accordion-item {
    border: none;
    border-radius: 12px !important;
    margin-bottom: 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.accordion-button {
    background: linear-gradient(135deg, rgba(0, 121, 107, 0.05) 0%, rgba(255, 255, 255, 0.05) 100%);
    border: none;
    padding: 1.25rem 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    border-radius: 12px !important;
}

.accordion-button:not(.collapsed) {
    background: var(--primary-color);
    color: white;
    box-shadow: none;
}

.accordion-button:focus {
    box-shadow: 0 0 0 0.25rem rgba(0, 121, 107, 0.25);
    border-color: var(--primary-color);
}

.accordion-button::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23007b6b'%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");
}

.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='%23ffffff'%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");
}

.accordion-body {
    padding: 1.5rem;
    background: white;
    line-height: 1.6;
}

/* Enhanced Search Input */
#liveSearch {
    border-radius: 25px;
    border: 2px solid var(--border-color);
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
}

#liveSearch:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(0, 121, 107, 0.25);
    outline: none;
}

#liveSearch::placeholder {
    color: #6c757d;
    opacity: 0.7;
}

/* Loading States */
.dividend-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 200px;
}

.dividend-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(0, 121, 107, 0.1);
    border-left: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Empty State Styling */
.empty-state {
    text-align: center;
    padding: 3rem 2rem;
    color: #6c757d;
}

.empty-state i {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.empty-state h4 {
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.empty-state p {
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

/* Responsive improvements for new elements */
@media (max-width: 768px) {
    .dividend-calendar-header {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .year-navigation {
        padding: 1.5rem;
    }
    
    .methodology-section {
        padding: 1.5rem;
        margin-top: 2rem;
    }
    
    .accordion-button {
        padding: 1rem;
        font-size: 0.95rem;
    }
    
    .accordion-body {
        padding: 1rem;
    }
    
    #liveSearch {
        padding: 0.6rem 1.2rem;
        font-size: 0.95rem;
    }
}

@media (max-width: 576px) {
    .dividend-calendar-header {
        padding: 1rem;
    }
    
    .year-navigation {
        padding: 1rem;
    }
    
    .methodology-section {
        padding: 1rem;
    }
    
    .empty-state {
        padding: 2rem 1rem;
    }
    
    .empty-state i {
        font-size: 3rem;
    }
    
    .empty-state h4 {
        font-size: 1.25rem;
    }
    
    .empty-state p {
        font-size: 1rem;
    }
}

/* Desktop row hover effects */
@media (min-width: 768px) {
    .dividend-row-main:hover {
        background-color: #f8f9fa !important;
    }
}

/* Sort links styling */
.sort-link {
    color: #ffffff !important;
    text-decoration: none !important;
}

.sort-link:hover {
    color: #f8f9fa !important;
}

/* Sort icons */
.sort-icon {
    color: rgba(255, 255, 255, 0.6) !important;
}

.sort-icon-active {
    color: #ffffff !important;
}

