/* Conference Filters Styling */
#conference-filters-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Filter Controls */
.conference-filters-wrapper {
    background: #f8f9fa;
    border: 1px solid #e1e5e9;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.search-section {
    margin-bottom: 20px;
}

#conference-search {
    width: 100%;
    max-width: 400px;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
    background: white;
}

.filters-section .filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
}

.filter-group {
    flex: 1;
    min-width: 200px;
}

.filter-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #333;
}

.filter-group select,
.filter-group input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    background: white;
}

/* Combobox Styling */
.combobox {
    position: relative;
    width: 100%;
}

.combo-input {
    width: 100%;
    padding: 10px 12px;
    font-size: 14px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: white;
    cursor: pointer;
    box-sizing: border-box;
    box-sizing: border-box;
}

.combo-input:focus {
    outline: none;
    border-color: #007cba;
    box-shadow: 0 0 0 3px rgba(0, 124, 186, 0.1);
}

.combo-list {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    border: 1px solid #ddd;
    background: #fff;
    max-height: 200px;
    overflow-y: auto;
    border-radius: 6px;
    margin-top: 2px;
    display: none;
    z-index: 1000;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.combo-item {
    padding: 10px 12px;
    cursor: pointer;
    font-size: 14px;
    border-bottom: 1px solid #f5f5f5;
}

.combo-item:hover {
    background: #f0f6fc;
}

.combo-item:last-child {
    border-bottom: none;
}

/* Hide the original select element */
.combobox select {
    display: none;
}

.filter-group input[type="date"] {
    max-width: 150px;
}

.filter-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 15px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e1e5e9;
}

.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
}

.btn-primary {
    background: #007cba;
    color: white;
}

.btn-primary:hover {
    background: #005a87;
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #545b62;
}

.view-toggle {
    margin-left: auto;
}

.view-btn {
    padding: 8px 15px;
    border: 1px solid #ddd;
    background: white;
    cursor: pointer;
    font-size: 14px;
}

.view-btn:first-child {
    border-radius: 4px 0 0 4px;
}

.view-btn:last-child {
    border-radius: 0 4px 4px 0;
    border-left: none;
}

.view-btn.active {
    background: #007cba;
    color: white;
    border-color: #007cba;
}

/* Results Section */
#conference-results {
    margin-top: 30px;
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e1e5e9;
}

.results-count {
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.sort-options {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sort-options label {
    font-weight: 500;
    color: #666;
}

.sort-options select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: white;
    height: auto !important;
}

/* Grid View */
.conferences-container.grid-view {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 25px;
}

.conference-card {
    background: white;
    border: 1px solid #e1e5e9;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.conference-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.conference-header {
    padding: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.conference-header h3 {
    margin: 0 0 8px 0;
    font-size: 18px;
    line-height: 1.3;
}

.conference-header h3 a {
    color: white;
    text-decoration: none;
}

.conference-date {
    font-size: 14px;
    opacity: 0.9;
    font-weight: 500;
}

.conference-content {
    padding: 20px;
}

.conference-location {
    margin-bottom: 10px;
    color: #007cba;
    font-size: 14px;
}

.conference-organizer,
.conference-categories,
.conference-subcategory,
.deadline {
    margin-bottom: 8px;
    font-size: 13px;
    color: #666;
}

.conference-excerpt {
    margin-top: 15px;
    color: #555;
    font-size: 14px;
    line-height: 1.5;
}

.conference-actions {
    padding: 15px 20px;
    background: #f8f9fa;
    border-top: 1px solid #e1e5e9;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.conference-actions .btn {
    padding: 8px 15px;
    font-size: 13px;
}

.email-link,
.website-link {
    color: #007cba;
    text-decoration: none;
    font-size: 13px;
    padding: 8px 15px;
    border: 1px solid #007cba;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.email-link:hover,
.website-link:hover {
    background: #007cba;
    color: white;
}

/* List View */
.conferences-container.list-view {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.conference-list-item {
    background: white;
    border: 1px solid #e1e5e9;
    border-radius: 6px;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.2s ease;
}

.conference-list-item:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.conference-main {
    flex: 1;
    margin-right: 20px;
}

.conference-main h3 {
    margin: 0 0 10px 0;
    font-size: 18px;
}

.conference-main h3 a {
    color: #333;
    text-decoration: none;
}

.conference-main h3 a:hover {
    color: #007cba;
}

.conference-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 10px;
    font-size: 14px;
    color: #666;
}

.conference-meta .date {
    font-weight: 600;
    color: #007cba;
}

.conference-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.category-tag,
.subcategory-tag,
.deadline {
    background: #e1f5fe;
    color: #0277bd;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.subcategory-tag {
    background: #f3e5f5;
    color: #7b1fa2;
}

.deadline {
    background: #fff3e0;
    color: #ef6c00;
}

/* Pagination */
.pagination-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
    margin-top: 30px;
    padding: 20px 0;
}

.page-btn {
    padding: 8px 12px;
    border: 1px solid #ddd;
    background: white;
    color: #333;
    cursor: pointer;
    border-radius: 4px;
    font-size: 14px;
    transition: all 0.2s ease;
}

.page-btn:hover {
    background: #f8f9fa;
    border-color: #007cba;
}

.page-btn.active {
    background: #007cba;
    color: white;
    border-color: #007cba;
}

.page-dots {
    padding: 8px 4px;
    color: #666;
}

/* Loading and Error States */
#loading-indicator {
    text-align: center;
    padding: 40px 20px;
}

.loading-spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid #007cba;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
}

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

.no-results {
    text-align: center;
    padding: 60px 20px;
    color: #666;
    font-size: 16px;
}

.error-message {
    background: #f8d7da;
    color: #721c24;
    padding: 15px;
    border-radius: 6px;
    border: 1px solid #f1aeb5;
    text-align: center;
}

/* Responsive Design */
@media (max-width: 768px) {
    #conference-filters-container {
        padding: 15px;
    }
    
    .conference-filters-wrapper {
        padding: 20px;
    }
    
    .filters-section .filter-row {
        flex-direction: column;
        gap: 15px;
    }
    
    .filter-group {
        min-width: auto;
    }
    
    .filter-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .view-toggle {
        margin-left: 0;
        align-self: center;
    }
    
    .results-header {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }
    
    .conferences-container.grid-view {
        grid-template-columns: 1fr;
    }
    
    .conference-list-item {
        flex-direction: column;
        gap: 15px;
    }
    
    .conference-main {
        margin-right: 0;
    }
    
    .conference-meta {
        flex-direction: column;
        gap: 5px;
    }
}

/* Shortcode Generator Styles */
.btn-success {
    background: #28a745;
    color: white;
}

.btn-success:hover {
    background: #218838;
}

/* Shortcode Modal Styles */
.shortcode-modal {
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
}

.shortcode-modal-content {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    width: 90%;
    max-width: 700px;
    max-height: 90vh;
    overflow-y: auto;
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.shortcode-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid #e1e5e9;
    background-color: #f8f9fa;
    border-radius: 8px 8px 0 0;
}

.shortcode-modal-header h3 {
    margin: 0;
    font-size: 20px;
    color: #333;
}

.shortcode-close {
    font-size: 28px;
    font-weight: bold;
    color: #aaa;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    background: none;
    border: none;
}

.shortcode-close:hover {
    color: #333;
}

.shortcode-modal-body {
    padding: 25px;
}

.shortcode-display {
    margin-bottom: 25px;
}

.shortcode-display textarea {
    width: 100%;
    height: 120px;
    padding: 15px;
    border: 2px solid #e1e5e9;
    border-radius: 6px;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    background-color: #f8f9fa;
    resize: vertical;
    margin-bottom: 15px;
}

.shortcode-display textarea:focus {
    outline: none;
    border-color: #007cba;
    box-shadow: 0 0 0 3px rgba(0, 124, 186, 0.1);
}

.shortcode-preview {
    margin-bottom: 25px;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 6px;
    border: 1px solid #e1e5e9;
}

.shortcode-preview h4 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 16px;
}

.shortcode-preview ul {
    margin: 0;
    padding-left: 20px;
}

.shortcode-preview li {
    margin-bottom: 8px;
    line-height: 1.4;
}

.shortcode-usage {
    padding: 20px;
    background-color: #e7f3ff;
    border-radius: 6px;
    border-left: 4px solid #007cba;
}

.shortcode-usage h4 {
    margin: 0 0 15px 0;
    color: #0056b3;
    font-size: 16px;
}

.shortcode-usage ul {
    margin: 0;
    padding-left: 20px;
}

.shortcode-usage li {
    margin-bottom: 10px;
    line-height: 1.5;
    color: #333;
}

/* Responsive Modal */
@media (max-width: 768px) {
    .shortcode-modal-content {
        width: 95%;
        margin: 20px;
    }
    
    .shortcode-modal-header,
    .shortcode-modal-body {
        padding: 15px;
    }
    
    .shortcode-display textarea {
        height: 100px;
        font-size: 12px;
    }
    
    .filter-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    
    .filter-actions .btn {
        width: 100%;
        text-align: center;
    }
    
    .view-toggle {
        margin-left: 0;
        display: flex;
        width: 100%;
    }
    
    .view-btn {
        flex: 1;
    }
}