/* DSEF Public Listing Styles */
.dsef-listing-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.dsef-listing-header {
    text-align: center;
    margin-bottom: 50px;
}

.dsef-listing-header h2 {
    font-size: 36px;
    font-weight: 700;
    color: #0d1d31;
    margin: 0 0 12px;
}

.dsef-listing-header .dsef-subtitle {
    color: #888;
    font-size: 16px;
    margin: 0;
}

.dsef-listing-header .dsef-divider {
    width: 80px;
    height: 4px;
    background: linear-gradient(135deg, #9c298f 0%, #222d66 100%);
    border-radius: 2px;
    margin: 20px auto 0;
}

/* Cards Grid */
.dsef-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 24px;
}

/* Nomination Card */
.dsef-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    transition: transform 0.2s, box-shadow 0.2s;
    border: 1px solid #f0f0f0;
}

.dsef-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.dsef-card-header {
    background: linear-gradient(135deg, #9c298f 0%, #222d66 100%);
    padding: 20px 24px;
    position: relative;
}

.dsef-card-number {
    position: absolute;
    top: 12px;
    right: 16px;
    width: 32px;
    height: 32px;
    background: rgba(255,255,255,0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.8);
    font-size: 14px;
    font-weight: 600;
}

.dsef-card-project-name {
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    margin: 0;
    line-height: 1.3;
    padding-right: 40px;
}

.dsef-card-body {
    padding: 20px 24px;
}

.dsef-card-field {
    margin-bottom: 14px;
}

.dsef-card-field:last-child {
    margin-bottom: 0;
}

.dsef-card-label {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #aaa;
    font-weight: 600;
    margin-bottom: 4px;
}

.dsef-card-value {
    font-size: 15px;
    color: #333;
    line-height: 1.4;
}

.dsef-card-school {
    display: flex;
    align-items: center;
    gap: 8px;
}

.dsef-card-school::before {
    content: "🏫";
    font-size: 16px;
}

.dsef-card-supervisor {
    display: flex;
    align-items: center;
    gap: 8px;
}

.dsef-card-supervisor::before {
    content: "👤";
    font-size: 16px;
}

.dsef-card-members-list {
    list-style: none;
    padding: 0;
    margin: 4px 0 0;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.dsef-card-members-list li {
    background: #f3eaf5;
    color: #9c298f;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
}

/* Confirmed Badge on Card */
.dsef-card-status {
    padding: 12px 24px;
    border-top: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
}

.dsef-card-status.confirmed {
    color: #2e7d32;
    background: #f1f8e9;
}

.dsef-card-status.pending {
    color: #e65100;
    background: #fff8e1;
}

/* Empty State */
.dsef-empty-state {
    text-align: center;
    padding: 80px 20px;
    color: #888;
}

.dsef-empty-state .dsef-empty-icon {
    font-size: 64px;
    margin-bottom: 16px;
}

.dsef-empty-state p {
    font-size: 18px;
}

/* ---- Ticker Bar ---- */
#dsef-ticker-bar {
    display: none;
    width: 100%;
    background: linear-gradient(135deg, #9c298f 0%, #222d66 100%);
    color: #fff;
    text-align: center;
    padding: 10px 40px 10px 20px;
    font-size: 14px;
    font-family: 'Segoe UI', Roboto, sans-serif;
    position: relative;
    z-index: 999999;
    letter-spacing: 0.3px;
}
#dsef-ticker-bar a {
    color: #ffc107;
    font-weight: 700;
    text-decoration: none;
    margin-left: 8px;
}
#dsef-ticker-bar a:hover {
    text-decoration: underline;
}
#dsef-ticker-bar .dsef-ticker-close {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: rgba(255,255,255,0.7);
    font-size: 18px;
    line-height: 1;
    background: none;
    border: none;
    padding: 5px;
}
#dsef-ticker-bar .dsef-ticker-close:hover {
    color: #fff;
}

/* ---- Popup Styles ---- */
#dsef-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    z-index: 9999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: dsef-fadeIn 0.3s ease;
}

@keyframes dsef-fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

#dsef-popup-box {
    background: #fff;
    border-radius: 16px;
    max-width: 480px;
    width: 100%;
    text-align: center;
    padding: 50px 40px 40px;
    position: relative;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    animation: dsef-slideUp 0.4s ease;
}

@keyframes dsef-slideUp {
    from { transform: translateY(30px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

#dsef-popup-box .dsef-popup-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #9c298f 0%, #222d66 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 32px;
    color: #fff;
}

#dsef-popup-box h3 {
    font-size: 22px;
    color: #0d1d31;
    margin: 0 0 12px;
    font-weight: 700;
}

#dsef-popup-box p {
    color: #666;
    font-size: 15px;
    line-height: 1.6;
    margin: 0 0 24px;
}

#dsef-popup-box .dsef-popup-btn {
    display: inline-block;
    background: linear-gradient(135deg, #9c298f 0%, #222d66 100%);
    color: #fff;
    padding: 14px 36px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 15px;
    transition: transform 0.2s, box-shadow 0.2s;
    border: none;
    cursor: pointer;
}

#dsef-popup-box .dsef-popup-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 20px rgba(156,41,143,0.4);
}

#dsef-popup-box .dsef-popup-dismiss {
    display: block;
    margin-top: 16px;
    color: #aaa;
    font-size: 13px;
    cursor: pointer;
    border: none;
    background: none;
    text-decoration: underline;
}

#dsef-popup-box .dsef-popup-dismiss:hover {
    color: #666;
}

#dsef-popup-close {
    position: absolute;
    top: 12px;
    right: 16px;
    background: none;
    border: none;
    font-size: 24px;
    color: #ccc;
    cursor: pointer;
    line-height: 1;
    padding: 4px;
}

#dsef-popup-close:hover {
    color: #666;
}

/* Responsive */
@media (max-width: 768px) {
    .dsef-listing-header h2 {
        font-size: 26px;
    }
    .dsef-cards-grid {
        grid-template-columns: 1fr;
    }
    #dsef-popup-box {
        padding: 40px 24px 30px;
    }
}
