/* Publication Manager - Frontend Styles - Table View */

.pm-publications-table-wrapper {
    width: 100%;
    max-height: 600px;
    overflow-y: auto;
    overflow-x: auto;
    margin: 30px 0;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 2px solid #e5e7eb;
    position: relative;
}

.pm-publications-table {
    width: 100%;
    border-collapse: collapse;
    background: #ffffff;
}

.pm-publications-table thead {
    background: linear-gradient(135deg, #8cc63f 0%, #7ab32e 100%);
    color: #ffffff;
    position: sticky;
    top: 0;
    z-index: 10;
}

.pm-publications-table thead th {
    padding: 16px 20px;
    text-align: left;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 3px solid #7ab32e;
    color: #ffffff;
    background: linear-gradient(135deg, #8cc63f 0%, #7ab32e 100%);
}

.pm-publications-table tbody tr {
    border-bottom: 1px solid #e5e7eb;
    transition: all 0.3s ease;
}

.pm-publications-table tbody tr:hover {
    background: #f9fafb;
}

.pm-publications-table tbody tr:last-child {
    border-bottom: none;
}

.pm-publications-table td {
    padding: 16px 20px;
    vertical-align: top;
    font-size: 14px;
    color: #374151;
}

.pm-col-sr {
    width: 60px;
    text-align: center;
    font-weight: 600;
    color: #6b7280;
}

.pm-col-title {
    min-width: 400px;
    max-width: 600px;
}

.pm-col-title strong {
    color: #1f2937;
    font-size: 15px;
    display: block;
    margin-bottom: 6px;
}

.pm-table-excerpt {
    color: #6b7280;
    font-size: 13px;
    line-height: 1.5;
    margin-top: 6px;
}

.pm-col-date {
    min-width: 150px;
    color: #4b5563;
    white-space: nowrap;
}

.pm-col-action {
    width: 140px;
    text-align: center;
}

.pm-type-badge {
    display: inline-block;
    padding: 4px 12px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pm-type-research-paper {
    background: #e3f2fd;
    color: #1976d2;
}

.pm-type-journal-article {
    background: #f3e5f5;
    color: #7b1fa2;
}

.pm-type-conference-paper {
    background: #e8f5e9;
    color: #388e3c;
}

.pm-type-thesis {
    background: #fff3e0;
    color: #f57c00;
}

.pm-type-white-paper {
    background: #fce4ec;
    color: #c2185b;
}

.pm-type-case-study {
    background: #e0f2f1;
    color: #00796b;
}

.pm-type-other {
    background: #f5f5f5;
    color: #616161;
}

.pm-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    background: #8cc63f;
    color: #ffffff;
    box-shadow: 0 2px 6px rgba(140, 198, 63, 0.3);
}

.pm-btn:hover {
    background: #7ab32e;
    color: #ffffff;
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(140, 198, 63, 0.4);
    transform: translateY(-2px);
}

.pm-btn svg {
    color: white;
    flex-shrink: 0;
}

.pm-btn-text {
    color: white;
    display: inline-block;
}

.pm-no-document {
    color: #9ca3af;
    font-style: italic;
}

.pm-no-publications {
    text-align: center;
    padding: 40px 20px;
    font-size: 16px;
    color: #666;
    background: #f9fafb;
    border-radius: 8px;
}

/* Custom Scrollbar Styling */
.pm-publications-table-wrapper::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

.pm-publications-table-wrapper::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.pm-publications-table-wrapper::-webkit-scrollbar-thumb {
    background: #8cc63f;
    border-radius: 10px;
}

.pm-publications-table-wrapper::-webkit-scrollbar-thumb:hover {
    background: #7ab32e;
}

/* Firefox Scrollbar */
.pm-publications-table-wrapper {
    scrollbar-width: thin;
    scrollbar-color: #8cc63f #f1f1f1;
}

/* Responsive Design */
@media (max-width: 768px) {
    .pm-publications-table-wrapper {
        max-height: 500px;
        border-radius: 8px;
    }
    
    .pm-publications-table {
        font-size: 13px;
    }
    
    .pm-publications-table thead th {
        padding: 12px 10px;
        font-size: 12px;
    }
    
    .pm-publications-table td {
        padding: 12px 10px;
    }
    
    .pm-col-sr {
        width: 40px;
    }
    
    .pm-col-title {
        min-width: 200px;
    }
    
    .pm-col-title strong {
        font-size: 14px;
    }
    
    .pm-table-excerpt {
        font-size: 12px;
    }
    
    .pm-col-date {
        min-width: 100px;
    }
    
    .pm-col-action {
        width: 90px;
    }
    
    .pm-btn {
        padding: 6px 12px;
        font-size: 12px;
    }
    
    .pm-btn-text {
        display: none;
    }
}

@media (max-width: 576px) {
    .pm-publications-table thead th,
    .pm-publications-table td {
        padding: 10px 8px;
    }
    
    .pm-col-title {
        min-width: 150px;
    }
    
    .pm-table-excerpt {
        display: none;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .pm-col-title {
        min-width: 350px;
    }
}

@media (min-width: 1400px) {
    .pm-publications-table-wrapper {
        max-width: 1400px;
        margin: 30px auto;
    }
}
