/* Custom CSS untuk Sistem Pengurusan Kursus */

/* Card Styles */
.course-card {
    transition: transform 0.3s, box-shadow 0.3s;
    border-radius: 8px;
    overflow: hidden;
}

.course-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.certificate-card {
    border: none;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.certificate-card .certificate-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background-color: rgba(255, 193, 7, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.certificate-card .certificate-icon i {
    font-size: 2rem;
}

/* Badge Styles */
.badge-status {
    font-weight: 500;
    padding: 0.35em 0.65em;
    border-radius: 30px;
    font-size: 0.75em;
}

/* Sidebar Profile */
.sidebar-profile {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    position: sticky;
    top: 20px;
}

/* User Profile Link */
.sidebar-profile h4 a {
    transition: color 0.3s;
    position: relative;
}

.sidebar-profile h4 a:hover {
    color: #ffc107 !important;
}

.sidebar-profile h4 a:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -2px;
    left: 0;
    background-color: #ffc107;
    transition: width 0.3s;
}

.sidebar-profile h4 a:hover:after {
    width: 100%;
}

/* Profile Image Hover */
.sidebar-profile .position-relative > a img {
    transition: opacity 0.3s, transform 0.3s;
    cursor: pointer;
}

.sidebar-profile .position-relative > a:hover img {
    opacity: 0.85;
    transform: scale(1.03);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.sidebar-profile .position-relative > a:before {
    content: '\f304';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-size: 2rem;
    opacity: 0;
    z-index: 2;
    transition: opacity 0.3s;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.sidebar-profile .position-relative > a:hover:before {
    opacity: 0.8;
}

/* Dashboard Stats */
.stat-card {
    border-radius: 10px;
    border: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    padding: 10px;
    height: 100%;
}

.stat-icon {
    font-size: 2rem;
    color: #ffc107;
    margin-bottom: 10px;
}

.stat-title {
    font-size: 0.9rem;
    color: #6c757d;
    margin-bottom: 5px;
}

.stat-value {
    font-size: 1.8rem;
    font-weight: 600;
    color: #343a40;
}

/* Form Controls */
.form-control:focus {
    border-color: #ffc107;
    box-shadow: 0 0 0 0.25rem rgba(255, 193, 7, 0.25);
}

.btn-warning {
    background-color: #ffc107;
    border-color: #ffc107;
}

.btn-warning:hover {
    background-color: #e0a800;
    border-color: #e0a800;
}

/* Loading Spinner */
.loading-spinner {
    display: inline-block;
    width: 1.5rem;
    height: 1.5rem;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .stat-card {
        margin-bottom: 15px;
    }
    
    .sidebar-profile {
        position: static;
        margin-bottom: 20px;
    }
}

/* Empty State Styling */
.empty-state {
    text-align: center;
    padding: 30px 15px;
    color: #6c757d;
}

.empty-state i {
    font-size: 3rem;
    color: #e0e0e0;
    margin-bottom: 15px;
}

.empty-state h5 {
    font-weight: 600;
    margin-bottom: 10px;
}

.empty-state p {
    max-width: 400px;
    margin: 0 auto 20px;
}

/* Table Styles */
.table-course th {
    background-color: #f8f9fa;
    font-weight: 600;
    border-bottom: 2px solid #dee2e6;
}

.table-course td {
    vertical-align: middle;
}

/* Profile Picture Upload */
.profile-picture-container {
    position: relative;
    width: 150px;
    height: 150px;
    margin: 0 auto 20px;
}

.profile-picture-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.profile-picture-container .edit-profile-picture {
    position: absolute;
    bottom: 0;
    right: 0;
    background-color: #ffc107;
    color: #fff;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    transition: all 0.3s;
}

.profile-picture-container .edit-profile-picture:hover {
    background-color: #e0a800;
}

/* Alerts and Notifications */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1060;
}

.toast {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    overflow: hidden;
}

.toast-header {
    border-bottom: none;
}

.toast-body {
    padding: 15px;
}

/* Certificate View */
.certificate-preview {
    border: 5px solid #f8f9fa;
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    background-color: #fff;
    max-width: 800px;
    margin: 0 auto;
}

/* Pagination */
.pagination .page-item.active .page-link {
    background-color: #ffc107;
    border-color: #ffc107;
    color: #212529;
}

.pagination .page-link {
    color: #212529;
}

.pagination .page-link:hover {
    background-color: #e0a800;
    border-color: #e0a800;
    color: #212529;
} 