:root {
    --primary-color: #005555;
    --primary-hover: #004444;
    --secondary-color: #0ea2bd;
    --light-bg: #f8f9fa;
    --text-color: #343a40;
    --text-muted: #6c757d;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --transition: all 0.3s ease;
}

.pengumuman-detail {
    background: white;
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-md);
    margin: 30px auto;
    max-width: 1000px;
}

.pengumuman-images {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    border-radius: var(--radius-md);
    margin-bottom: 30px;
    box-shadow: var(--shadow-md);
}

.pengumuman-badges {
    font-size: 0.9rem;
    padding: 8px 18px;
    border-radius: 20px;
    font-weight: 600;
    margin-bottom: 20px;
    display: inline-block;
    box-shadow: var(--shadow-sm);
}

.badges-ujian {
    background-color: var(--secondary-color);
    color: white;
}
.badges-acara {
    background-color: #28a745;
    color: white;
}
.badges-beasiswa {
    background-color: #ffc107;
    color: #343a40;
}
.badges-umum {
    background-color: #6c757d;
    color: white;
}

.pengumuman-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 20px;
    line-height: 1.3;
}

.pengumuman-meta {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
    gap: 8px;
}

.pengumuman-content {
    line-height: 1.7;
    font-size: 1.05rem;
}

.pengumuman-content img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 20px auto;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
}

/* Social Share */
.social-share {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 30px 0;
    padding: 20px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.share-label {
    font-weight: 600;
    color: var(--text-color);
}

.share-buttons {
    display: flex;
    gap: 12px;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    color: white;
    text-decoration: none;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.share-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: var(--shadow-lg);
    color: white;
}

.share-facebook {
    background: linear-gradient(135deg, #3b5998, #4267b2);
}
.share-whatsapp {
    background: linear-gradient(135deg, #25d366, #128c7e);
}
.share-copy {
    background: linear-gradient(135deg, #6c757d, #495057);
}

.share-copy.copied {
    background: linear-gradient(135deg, #28a745, #20c997);
}

/* Ujian Info */
.ujian-info {
    background: var(--light-bg);
    border-radius: var(--radius-md);
    padding: 25px;
    margin-bottom: 30px;
    border-left: 4px solid var(--secondary-color);
}

.ujian-info h4 {
    font-size: 1.4rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--primary-color);
}

.info-item {
    margin-bottom: 12px;
    display: flex;
    align-items: flex-start;
}

.info-label {
    font-weight: 600;
    min-width: 140px;
    color: var(--text-color);
}

.info-value {
    flex: 1;
    color: var(--text-color);
}

.mahasiswa-list {
    margin-top: 15px;
}

.mahasiswa-item {
    margin-bottom: 20px;
    padding: 15px;
    background: white;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
}

.mahasiswa-item:last-child {
    margin-bottom: 0;
}

.mahasiswa-name {
    font-weight: 600;
    color: var(--text-color);
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.mahasiswa-nim {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.dosen-list {
    margin-top: 10px;
    font-size: 0.95rem;
}

.dosen-label {
    font-weight: 700;
    color: var(--primary-color);
    display: inline-block;
    min-width: 100px;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 30px;
    flex-wrap: wrap;
    gap: 15px;
}

.btn-back {
    display: inline-flex;
    align-items: center;
    padding: 12px 24px;
    background: var(--primary-color);
    color: white;
    border-radius: var(--radius-md);
    font-weight: 500;
    transition: var(--transition);
    text-decoration: none;
    gap: 8px;
}

.btn-back:hover {
    background: var(--primary-hover);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Toast Notification */
.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    padding: 16px 24px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 12px;
    transform: translateX(400px);
    transition: transform 0.3s ease;
    min-width: 280px;
}

.toast.show {
    transform: translateX(0);
}
.toast-success {
    background: #10b981;
    color: white;
}
.toast-error {
    background: #ef4444;
    color: white;
}
.toast-info {
    background: #3b82f6;
    color: white;
}

.toast button {
    background: none;
    border: none;
    color: inherit;
    cursor: pointer;
    padding: 0;
    margin-left: auto;
    font-size: 1.2rem;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.toast button:hover {
    opacity: 1;
}

/* Responsive */
@media (max-width: 768px) {
    .pengumuman-detail {
        padding: 25px;
    }
    .pengumuman-title {
        font-size: 1.6rem;
    }

    .info-item {
        flex-direction: column;
    }
    .info-label {
        margin-bottom: 5px;
        min-width: auto;
    }

    .social-share {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 20px;
    }

    .share-buttons {
        justify-content: center;
    }
    .share-btn {
        width: 50px;
        height: 50px;
        font-size: 1.4rem;
    }

    .action-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .btn-back {
        text-align: center;
        justify-content: center;
    }

    .toast {
        right: 10px;
        left: 10px;
        min-width: auto;
    }
}

@media (max-width: 576px) {
    .pengumuman-detail {
        padding: 20px;
    }
    .pengumuman-title {
        font-size: 1.4rem;
    }
    .share-btn {
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
    }
}
