/* TTM Report Manager Styles */
.ttm-report-manager-wrap {
    background: #ffffff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    font-family: inherit;
}

/* Tabs Navigation */
.ttm-tabs-navigation-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    border-bottom: 2px solid #f1f5f9;
    margin-bottom: 40px;
    padding: 0 5px; /* Minimal padding for start/end items */
}

.ttm-report-tabs {
    display: flex;
    gap: 5px;
    flex: 1;
    overflow-x: auto;
    padding-bottom: 0;
    margin-bottom: -2px; /* Align with wrapper border */
    scroll-behavior: smooth;
    white-space: nowrap;
    
    /* Hide scrollbar for Chrome, Safari and Opera */
    &::-webkit-scrollbar {
        display: none !important;
    }
    /* Hide scrollbar for IE, Edge and Firefox */
    -ms-overflow-style: none !important;  /* IE and Edge */
    scrollbar-width: none !important;  /* Firefox */
}

/* Elegant Arrows */
.ttm-tabs-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    color: #475569 !important;
    width: 36px;
    height: 36px;
    border-radius: 50% !important;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 20;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08) !important;
    padding: 0 !important;
    opacity: 0;
    visibility: hidden;
}

.ttm-tabs-arrow.visible {
    opacity: 1;
    visibility: visible;
}

.ttm-tabs-arrow:hover {
    background: #1a73e8 !important;
    color: #ffffff !important;
    border-color: #1a73e8 !important;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 16px rgba(26, 115, 232, 0.25) !important;
}

.ttm-tabs-arrow .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
    line-height: 1;
}

.ttm-tabs-prev {
    left: -18px;
}

.ttm-tabs-next {
    right: -18px;
}

/* Fade Overlays */
.ttm-tabs-fade {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 60px;
    z-index: 15;
    pointer-events: none;
    transition: opacity 0.3s ease;
    opacity: 0;
}

.ttm-tabs-fade.visible {
    opacity: 1;
}

.ttm-tabs-fade-left {
    left: 0;
    background: linear-gradient(to right, #ffffff 0%, rgba(255, 255, 255, 0) 100%);
}

.ttm-tabs-fade-right {
    right: 0;
    background: linear-gradient(to left, #ffffff 0%, rgba(255, 255, 255, 0) 100%);
}

.ttm-tab-btn {
    background: transparent !important;
    border: none !important;
    padding: 12px 25px;
    font-size: 15px;
    font-weight: 600;
    color: #666 !important;
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent !important;
    white-space: nowrap;
    box-shadow: none !important;
    border-radius: 0 !important;
}

.ttm-report-tabs .ttm-tab-btn.active {
    color: #1a73e8 !important;
    background: transparent !important;
    border-bottom: 3px solid #1a73e8 !important;
    box-shadow: none !important;
}

.ttm-report-tabs .ttm-tab-btn:hover {
    color: #1a73e8 !important;
}

/* Filter Bar */
.ttm-report-filters-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.ttm-filter-year {
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    color: #444;
    outline: none;
    min-width: 200px;
}

.ttm-search-group {
    position: relative;
    max-width: 350px;
    width: 100%;
}

.ttm-search-group input {
    width: 100%;
    padding: 10px 40px 10px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    outline: none;
}

.ttm-search-group .dashicons {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #aaa;
}

/* Table Design */
.ttm-report-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

.ttm-report-table th {
    background: #F9FAFB;
    text-align: left;
    padding: 15px 20px;
    font-weight: 700;
    font-size: 13px;
    color: #111;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid #eee;
}

.ttm-report-table td {
    padding: 18px 20px;
    border-bottom: 1px solid #f0f0f0;
    font-size: 15px;
    color: #444;
}

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

.col-icon .dashicons {
    color: #ff4d4d;
    font-size: 24px;
    width: 24px;
    height: 24px;
}

.col-title strong {
    color: #111;
    font-weight: 600;
}

.ttm-btn-download {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #1a73e8;
    color: #fff !important;
    padding: 8px 18px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none !important;
    transition: all 0.3s ease;
}

.ttm-btn-download:hover {
    background: #1557b0;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(26, 115, 232, 0.2);
}

.no-file {
    color: #999;
    font-style: italic;
    font-size: 13px;
}

/* Responsive Transformation */
@media (max-width: 768px) {
    .ttm-report-table thead {
        display: none;
    }
    .ttm-report-table, .ttm-report-table tbody, .ttm-report-table tr, .ttm-report-table td {
        display: block;
        width: 100%;
    }
    .ttm-report-table tr {
        background: #fff;
        border: 1px solid #eee;
        border-radius: 10px;
        margin-bottom: 20px;
        padding: 15px;
        box-shadow: 0 5px 15px rgba(0,0,0,0.02);
    }
    .ttm-report-table td {
        padding: 8px 0;
        border: none;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    .ttm-report-table td::before {
        content: attr(data-label);
        font-weight: 700;
        font-size: 12px;
        color: #888;
        text-transform: uppercase;
    }
    .col-title {
        border-bottom: 1px solid #f9f9f9 !important;
        margin-bottom: 10px;
        padding-bottom: 10px !important;
    }
    .col-title strong {
        font-size: 16px;
    }
    .col-icon { display: none; }
}

/* Loader */
.ttm-loader {
    position: relative;
    padding: 50px 0;
    text-align: center;
}

.ttm-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #1a73e8;
    border-radius: 50%;
    display: inline-block;
    animation: ttm-spin 1s linear infinite;
}

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

.ttm-no-results {
    padding: 50px;
    text-align: center;
    color: #999;
}

/* Pagination */
.ttm-pagination {
    margin-top: 40px;
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.ttm-pagination a, 
.ttm-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 14px;
    border-radius: 8px;
    border: 1px solid #eee;
    background: #fff;
    color: #444;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.ttm-pagination a:hover {
    border-color: #1a73e8;
    color: #1a73e8;
    background: #f8faff;
}

.ttm-pagination .current {
    background: #1a73e8;
    color: #fff;
    border-color: #1a73e8;
}

.ttm-pagination .dots {
    border: none;
    background: none;
    color: #aaa;
}

.ttm-pagination .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
}
