/* Export Dropdown Styles */
.tp-export-dropdown-container {
    position: relative;
    display: inline-block;
    margin: 10px 0 10px 5px;
}

.tp-export-dropdown-btn {
    display: inline-block;
    padding: 8px 16px;
    background-color: #6c757d;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    border: none;
    font-weight: 500;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.15);
}

.tp-export-dropdown-btn:hover {
    background-color: #5a6268;
    box-shadow: 0 3px 6px rgba(0,0,0,0.2);
}

.tp-export-dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    min-width: 220px;
    z-index: 1000;
    margin-top: 5px;
}

.tp-export-dropdown-menu.show {
    display: block;
}

.tp-export-dropdown-item {
    display: block;
    width: 100%;
    padding: 10px 15px;
    background: none;
    border: none;
    text-align: left;
    font-size: 13px;
    color: #333;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.tp-export-dropdown-item:hover {
    background-color: #f8f9fa;
}

.tp-export-dropdown-item:before {
    content: "\f1c9"; /* CSV/Table icon from Font Awesome */
    font-family: "FontAwesome", sans-serif;
    margin-right: 8px;
    color: #4a90e2;
}

/* Export action (CSV) — always clickable; opens upgrade popup if locked */
.tp-export-dropdown-item.tp-export-action {
    opacity: 1;
    cursor: pointer;
    color: #16361c;
    font-weight: 500;
}
.tp-export-dropdown-item.tp-export-action:before {
    color: #16361c;
}
.tp-export-dropdown-item.tp-export-action:hover {
    background-color: rgba(22, 54, 28, 0.08);
    color: #0f2615;
}

/* Trial disabled button styles for CSV in dropdown */
.tp-export-dropdown-item.tp-trial-disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.tp-export-dropdown-item.tp-trial-disabled:before {
    content: "\f023"; /* Lock icon from Font Awesome */
    font-family: "FontAwesome", sans-serif;
    margin-right: 8px;
    color: #999;
}

.tp-export-dropdown-item.tp-trial-disabled:hover {
    background-color: #f8f9fa;
}

/* CSV Features List Styling */
.yrt-csv-features-list {
    background-color: rgba(22, 54, 28, 0.6);
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    max-height: 60vh;
    overflow-y: auto;
    text-align: left;
}

.yrt-csv-features-title {
    color: #f1ebe7 !important;
    font-size: 1.1em;
    margin-bottom: 15px;
    font-weight: 600;
    border-bottom: 2px solid rgba(241, 235, 231, 0.4);
    padding-bottom: 10px;
}

.yrt-csv-features-title-secondary {
    margin-top: 25px;
    margin-bottom: 15px;
}

.yrt-csv-features-ul {
    color: #f1ebe7 !important;
    line-height: 1.9;
    font-size: 0.95em;
    margin: 0 0 15px 0;
    padding-left: 20px;
}

.yrt-csv-features-ul li {
    margin-bottom: 12px;
    list-style-type: disc;
    color: #f1ebe7 !important;
}

.yrt-csv-features-ul li strong {
    color: #d0ee88 !important;
    font-weight: 600;
}

/* Ensure modal text is readable */
.yrt-pdf-upgrade-content .yrt-csv-features-list,
.yrt-pdf-upgrade-content .yrt-csv-features-list * {
    color: #f1ebe7 !important;
}

.yrt-pdf-upgrade-content .yrt-csv-features-list h4,
.yrt-pdf-upgrade-content .yrt-csv-features-list .yrt-csv-features-title {
    color: #f1ebe7 !important;
}

.yrt-pdf-upgrade-content .yrt-csv-features-list ul,
.yrt-pdf-upgrade-content .yrt-csv-features-list .yrt-csv-features-ul {
    color: #f1ebe7 !important;
}

.yrt-pdf-upgrade-content .yrt-csv-features-list li {
    color: #f1ebe7 !important;
}

/* Responsive adjustments for export dropdown */
@media screen and (max-width: 768px) {
    .tp-export-dropdown-container {
        display: block;
        width: 100%;
        margin: 3px 0;
    }
    
    .tp-export-dropdown-btn {
        width: 100%;
        text-align: center;
    }
    
    .tp-export-dropdown-menu {
        width: 100%;
    }
    
    .tp-plan-actions {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 3px;
    }
    
    .tp-download-pdf-btn,
    .tp-download-calendar-btn {
        margin: 0;
        width: 100%;
    }
}

/* Ensure buttons are aligned properly */
.tp-plan-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 5px;
}

/* In case FontAwesome isn't available, use Unicode fallback */
.tp-download-csv-btn:before {
    content: "\f1c9"; /* CSV icon */
}

@supports not (font-family: "FontAwesome") {
    .tp-download-csv-btn:before {
        content: "📊 "; /* Fallback emoji */
        font-family: sans-serif;
    }
}

