/* General Styles */
.kptc-form-wrapper {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.kptc-form {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    padding: 30px;
}

.kptc-form-header {
    margin-bottom: 30px;
    text-align: center;
}

.kptc-form-header h2 {
    color: #1e3a8a;
    font-size: 28px;
    margin-bottom: 10px;
}

.kptc-form-header p {
    color: #64748b;
    font-size: 16px;
}

/* Form Groups */
.kptc-form-group {
    margin-bottom: 25px;
}

.kptc-form-group label {
    display: block;
    font-weight: 600;
    color: #334155;
    margin-bottom: 8px;
    font-size: 15px;
}

.kptc-form-group .required {
    color: #dc2626;
}

.kptc-form-group input[type="text"],
.kptc-form-group input[type="url"],
.kptc-form-group input[type="number"],
.kptc-form-group textarea {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.3s ease;
}

.kptc-form-group input:focus,
.kptc-form-group textarea:focus {
    outline: none;
    border-color: #1e3a8a;
    box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.1);
}

/* Photo Upload */
.kptc-photo-upload {
    display: flex;
    align-items: center;
    gap: 15px;
}

.kptc-current-photo {
    width: 100px;
    height: 100px;
    overflow: hidden;
    border-radius: 50%;
    border: 3px solid #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.kptc-current-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.kptc-upload-btn {
    background: #1e3a8a !important;
    color: white !important;
    border: none !important;
    padding: 8px 20px !important;
    border-radius: 6px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
}

.kptc-upload-btn:hover {
    background: #1e40af !important;
    transform: translateY(-1px);
}

.kptc-photo-info {
    font-size: 13px;
    color: #64748b;
}

/* Schedule Grid */
.kptc-schedule-grid {
    overflow-x: auto;
    margin: 20px 0;
}

.kptc-schedule-table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
}

.kptc-schedule-table th,
.kptc-schedule-table td {
    padding: 12px 10px;
    text-align: center;
    border: 1px solid #e2e8f0;
}

.kptc-schedule-table thead {
    background: #f8fafc;
}

.kptc-schedule-table th {
    font-weight: 600;
    color: #334155;
    font-size: 13px;
    white-space: nowrap;
}

.kptc-schedule-table .day-label {
    font-weight: 600;
    background: #f8fafc;
    text-align: left;
    padding-left: 15px;
    color: #1e3a8a;
}

.kptc-schedule-table input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: #1e3a8a;
}

/* Form Row */
.kptc-form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
}

.kptc-form-group.kptc-half {
    flex: 1;
}

/* Buttons */
.kptc-btn {
    padding: 12px 30px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
}

.kptc-btn-primary {
    background: #1e3a8a;
    color: white;
}

.kptc-btn-primary:hover {
    background: #1e40af;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(30, 58, 138, 0.3);
}

/* Messages */
.kptc-message {
    padding: 15px 20px;
    border-radius: 8px;
    margin: 20px 0;
    font-weight: 500;
    animation: slideIn 0.3s ease;
}

.kptc-message.success {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.kptc-message.error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.kptc-notice {
    padding: 15px 20px;
    border-radius: 8px;
    margin: 20px 0;
}

.kptc-notice-warning {
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fde68a;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .kptc-form {
        padding: 20px;
    }
    
    .kptc-form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .kptc-schedule-table {
        font-size: 12px;
    }
    
    .kptc-schedule-table th,
    .kptc-schedule-table td {
        padding: 8px 5px;
    }
    
    .kptc-photo-upload {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Animations */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
/* Cards Directory */
.kptc-cards-directory {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Filters Section */
.kptc-filters-section {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.kptc-search-wrapper {
    position: relative;
    margin-bottom: 20px;
}

.kptc-search-input {
    width: 100%;
    padding: 12px 50px 12px 20px;
    font-size: 16px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.kptc-search-input:focus {
    outline: none;
    border-color: #1e3a8a;
    box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.1);
}

.kptc-search-btn {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: #1e3a8a;
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.kptc-search-btn:hover {
    background: #1e40af;
}

.kptc-filters-row {
    display: flex;
    gap: 15px;
    align-items: flex-end;
    flex-wrap: wrap;
}

.kptc-filter-group {
    flex: 1;
    min-width: 150px;
}

.kptc-filter-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #334155;
    margin-bottom: 5px;
}

.kptc-filter-select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 14px;
    background: white;
}

.kptc-filter-btn {
    background: #1e3a8a;
    color: white;
    border: none;
    padding: 10px 24px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.kptc-filter-btn:hover {
    background: #1e40af;
    transform: translateY(-1px);
}

.kptc-clear-filters {
    color: #dc2626;
    text-decoration: none;
    padding: 10px 16px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.kptc-clear-filters:hover {
    color: #b91c1c;
}

/* Cards Grid */
.kptc-cards-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    margin-bottom: 40px;
}

.kptc-cards-directory[data-columns="2"] .kptc-cards-grid {
    grid-template-columns: repeat(2, 1fr);
}

.kptc-cards-directory[data-columns="3"] .kptc-cards-grid {
    grid-template-columns: repeat(3, 1fr);
}

.kptc-cards-directory[data-columns="5"] .kptc-cards-grid {
    grid-template-columns: repeat(5, 1fr);
}

/* Individual Card */
.kptc-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
}

.kptc-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.kptc-card-inner {
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* Card Photo */
.kptc-card-photo {
    position: relative;
    padding-top: 75%; /* 4:3 Aspect ratio */
    overflow: hidden;
    background: #f3f4f6;
}

.kptc-card-photo img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.kptc-status-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.kptc-status-available {
    background: #10b981;
    color: white;
}

.kptc-status-full {
    background: #ef4444;
    color: white;
}

/* Card Content */
.kptc-card-content {
    padding: 20px;
    flex: 1;
}

.kptc-card-name {
    font-size: 20px;
    color: #1e293b;
    margin: 0 0 5px 0;
    font-weight: 700;
}

.kptc-card-title {
    font-size: 14px;
    color: #64748b;
    margin: 0 0 15px 0;
    font-style: italic;
}

.kptc-card-bio {
    font-size: 14px;
    line-height: 1.6;
    color: #475569;
    margin-bottom: 15px;
    min-height: 60px;
}

/* Schedule Preview */
.kptc-card-schedule {
    margin-bottom: 15px;
}

.kptc-card-schedule h4 {
    font-size: 13px;
    font-weight: 600;
    color: #334155;
    margin: 0 0 10px 0;
}

.kptc-schedule-preview {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.kptc-schedule-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    padding: 5px 10px;
    background: #f1f5f9;
    border-radius: 6px;
}

.kptc-schedule-item.full {
    background: #fee2e2;
    color: #991b1b;
}

.kptc-schedule-item .day {
    font-weight: 600;
    color: #1e3a8a;
}

.kptc-schedule-item .time {
    flex: 1;
    color: #475569;
}

.kptc-schedule-item .slots {
    font-weight: 600;
    color: #059669;
}

.kptc-schedule-item.full .slots {
    color: #dc2626;
}

.kptc-more-schedules {
    font-size: 12px;
    color: #64748b;
    font-style: italic;
    margin-top: 5px;
}

/* Card Stats */
.kptc-card-stats {
    display: flex;
    gap: 15px;
    padding-top: 10px;
    border-top: 1px solid #e5e7eb;
}

.kptc-card-stats .stat {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    color: #64748b;
}

.kptc-card-stats .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
    color: #94a3b8;
}

/* Card Action */
.kptc-card-action {
    padding: 20px;
    border-top: 1px solid #e5e7eb;
}

.kptc-card-action .kptc-btn {
    width: 100%;
    text-align: center;
}

.kptc-btn-full {
    background: #dc2626 !important;
    cursor: not-allowed !important;
    opacity: 0.7;
}

.kptc-btn-login,
.kptc-btn-view {
    background: #6b7280;
}

.kptc-btn-login:hover,
.kptc-btn-view:hover {
    background: #4b5563;
}

/* No Results */
.kptc-no-results {
    text-align: center;
    padding: 60px 20px;
    color: #64748b;
}

/* Pagination */
.kptc-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 40px;
}

.kptc-page-link,
.kptc-page-current {
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.kptc-page-link {
    background: white;
    color: #1e3a8a;
    border: 1px solid #e2e8f0;
    text-decoration: none;
}

.kptc-page-link:hover {
    background: #1e3a8a;
    color: white;
    border-color: #1e3a8a;
}

.kptc-page-current {
    background: #1e3a8a;
    color: white;
}

/* Modal */
.kptc-modal {
    position: fixed;
    z-index: 999999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.kptc-modal-content {
    background: white;
    border-radius: 12px;
    max-width: 600px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    animation: modalFadeIn 0.3s ease;
}

.kptc-modal-close {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 30px;
    font-weight: 300;
    color: #64748b;
    cursor: pointer;
    line-height: 20px;
    transition: all 0.3s ease;
}

.kptc-modal-close:hover {
    color: #1e293b;
}

.kptc-modal-title {
    padding: 25px;
    margin: 0;
    border-bottom: 1px solid #e5e7eb;
    color: #1e293b;
}

#kptc-modal-body {
    padding: 25px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .kptc-cards-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .kptc-cards-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .kptc-filters-row {
        flex-direction: column;
    }
    
    .kptc-filter-group {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .kptc-cards-grid {
        grid-template-columns: 1fr;
    }
    
    .kptc-card-name {
        font-size: 18px;
    }
}

/* Animations */
@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}
/* Modal Schedule Styles */
.kptc-modal-schedule {
    max-width: 500px;
    margin: 0 auto;
}

.kptc-kakak-info {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e5e7eb;
}

.kptc-kakak-info img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #f3f4f6;
}

.kptc-kakak-info h3 {
    margin: 0 0 5px 0;
    color: #1e293b;
    font-size: 20px;
}

.kptc-kakak-info p {
    margin: 0;
    color: #64748b;
    font-style: italic;
}

.kptc-schedule-selection {
    margin: 20px 0;
}

.kptc-schedule-selection h4 {
    margin: 0 0 15px 0;
    color: #334155;
    font-size: 16px;
}

.kptc-schedule-option {
    display: block;
    margin-bottom: 10px;
    padding: 15px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.kptc-schedule-option:hover:not(.full):not(.registered) {
    border-color: #1e3a8a;
    background: #f8fafc;
}

.kptc-schedule-option.full,
.kptc-schedule-option.registered {
    opacity: 0.6;
    cursor: not-allowed;
    background: #f3f4f6;
}

.kptc-schedule-option input[type="radio"] {
    float: left;
    margin-right: 15px;
    margin-top: 2px;
}

.schedule-info {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-left: 30px;
}

.schedule-day {
    font-weight: 600;
    color: #1e3a8a;
    min-width: 60px;
}

.schedule-time {
    flex: 1;
    color: #475569;
}

.schedule-slots {
    font-size: 14px;
    font-weight: 600;
}

.kptc-schedule-option:not(.full):not(.registered) .schedule-slots {
    color: #059669;
}

.kptc-schedule-option.full .schedule-slots {
    color: #dc2626;
}

.kptc-schedule-option.registered .schedule-slots {
    color: #6366f1;
}

.kptc-modal-actions {
    display: flex;
    gap: 10px;
    margin-top: 25px;
}

.kptc-modal-actions .kptc-btn {
    flex: 1;
}

.kptc-btn-secondary {
    background: #6b7280;
}

.kptc-btn-secondary:hover {
    background: #4b5563;
}

/* Success Registration */
.kptc-success-registration {
    text-align: center;
    padding: 20px;
}

.kptc-success-registration h3 {
    color: #059669;
    margin-bottom: 15px;
}

.kptc-success-registration p {
    color: #475569;
    margin-bottom: 25px;
}

.kptc-btn-whatsapp {
    background: #25d366 !important;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.kptc-btn-whatsapp:hover {
    background: #1ebe57 !important;
}

.kptc-btn-whatsapp .dashicons {
    font-size: 20px;
    line-height: 20px;
}

/* Loading State */
.kptc-loading {
    text-align: center;
    padding: 40px;
    color: #64748b;
}

.kptc-loading::after {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    margin-left: 10px;
    border: 3px solid #e2e8f0;
    border-top-color: #1e3a8a;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.kptc-error {
    background: #fee2e2;
    color: #991b1b;
    padding: 15px;
    border-radius: 6px;
    text-align: center;
}

/* Notice Styles */
.kptc-notice-info {
    background: #dbeafe;
    color: #1e40af;
    border: 1px solid #93c5fd;
}
/* Rating System */
.kptc-rating-stars {
    display: inline-flex;
    align-items: center;
    gap: 2px;
}

.kptc-rating-stars .star {
    font-size: 18px;
    line-height: 1;
}

.kptc-rating-stars .star.filled {
    color: #facc15;
}

.kptc-rating-stars .star.half {
    color: #facc15;
    position: relative;
}

.kptc-rating-stars .star.half::before {
    content: '★';
    position: absolute;
    width: 50%;
    overflow: hidden;
    color: #e5e7eb;
}

.kptc-rating-stars .star.empty {
    color: #e5e7eb;
}

.kptc-rating-stars .rating-number {
    margin-left: 8px;
    font-size: 14px;
    color: #64748b;
}

/* Review Section */
.kptc-reviews-section {
    margin-top: 30px;
    padding: 20px;
    background: #f8fafc;
    border-radius: 8px;
}

.kptc-review-form {
    margin-bottom: 30px;
    padding: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.kptc-rating-input {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.kptc-rating-input .star-input {
    font-size: 28px;
    color: #e5e7eb;
    cursor: pointer;
    transition: color 0.2s;
}

.kptc-rating-input .star-input:hover,
.kptc-rating-input .star-input.active {
    color: #facc15;
}

.kptc-review-item {
    background: white;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.kptc-review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.kptc-reviewer-name {
    font-weight: 600;
    color: #1e293b;
}

.kptc-review-date {
    font-size: 13px;
    color: #94a3b8;
}

.kptc-review-comment {
    color: #475569;
    line-height: 1.6;
}

/* Badges */
.kptc-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 20px;
    color: white;
    font-size: 14px;
    font-weight: 600;
}

.kptc-badge-small {
    padding: 4px 12px;
    font-size: 12px;
}

.kptc-badge .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
}

.kptc-badge-small .dashicons {
    font-size: 14px;
    width: 14px;
    height: 14px;
}

.kptc-badges-showcase {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 20px 0;
}

/* Notifications */
.kptc-notifications-icon {
    position: relative;
    cursor: pointer;
}

.kptc-notifications-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #ef4444;
    color: white;
    font-size: 11px;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 10px;
}

.kptc-notifications-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    width: 350px;
    max-height: 400px;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    overflow-y: auto;
    z-index: 1000;
    display: none;
}

.kptc-notifications-dropdown.active {
    display: block;
}

.kptc-notification-item {
    padding: 15px;
    border-bottom: 1px solid #f3f4f6;
    cursor: pointer;
    transition: background 0.2s;
}

.kptc-notification-item:hover {
    background: #f8fafc;
}

.kptc-notification-item.unread {
    background: #eff6ff;
}

.kptc-notification-item.unread:hover {
    background: #dbeafe;
}

.kptc-notification-title {
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 5px;
}

.kptc-notification-message {
    font-size: 14px;
    color: #64748b;
    line-height: 1.5;
}

.kptc-notification-time {
    font-size: 12px;
    color: #94a3b8;
    margin-top: 5px;
}

/* Certificates */
.kptc-certificates-wrapper {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
}

.kptc-certificates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.kptc-certificate-card {
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
}

.kptc-certificate-card:hover {
    border-color: #1e3a8a;
    box-shadow: 0 4px 12px rgba(30, 58, 138, 0.15);
}

.certificate-icon {
    font-size: 60px;
    color: #facc15;
    margin-bottom: 20px;
}

.certificate-icon .dashicons {
    width: 60px;
    height: 60px;
    font-size: 60px;
}

.kptc-certificate-card h3 {
    color: #1e293b;
    margin-bottom: 15px;
}

.certificate-kakak,
.certificate-date,
.certificate-number {
    font-size: 14px;
    color: #64748b;
    margin-bottom: 10px;
}

.certificate-number {
    font-family: monospace;
    color: #6366f1;
}

/* Progress Indicator */
.kptc-progress-indicator {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background: #f8fafc;
    border-radius: 8px;
    margin-bottom: 20px;
}

.kptc-progress-circle {
    position: relative;
    width: 80px;
    height: 80px;
}

.kptc-progress-circle svg {
    transform: rotate(-90deg);
}

.kptc-progress-circle-bg {
    fill: none;
    stroke: #e5e7eb;
    stroke-width: 8;
}

.kptc-progress-circle-fill {
    fill: none;
    stroke: #1e3a8a;
    stroke-width: 8;
    stroke-dasharray: 251.2;
    stroke-dashoffset: 251.2;
    transition: stroke-dashoffset 1s ease;
}

.kptc-progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 20px;
    font-weight: bold;
    color: #1e3a8a;
}

.kptc-progress-info h4 {
    margin: 0 0 5px 0;
    color: #1e293b;
}

.kptc-progress-info p {
    margin: 0;
    color: #64748b;
    font-size: 14px;
}

/* Leaderboard */
.kptc-leaderboard {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.kptc-leaderboard-header {
    background: #1e3a8a;
    color: white;
    padding: 20px;
    text-align: center;
}

.kptc-leaderboard-header h3 {
    margin: 0;
    color: white;
}

.kptc-leaderboard-list {
    padding: 0;
    margin: 0;
    list-style: none;
}

.kptc-leaderboard-item {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #f3f4f6;
    transition: background 0.2s;
}

.kptc-leaderboard-item:hover {
    background: #f8fafc;
}

.kptc-leaderboard-rank {
    width: 30px;
    font-weight: bold;
    color: #1e3a8a;
}

.kptc-leaderboard-rank.gold {
    color: #facc15;
}

.kptc-leaderboard-rank.silver {
    color: #9ca3af;
}

.kptc-leaderboard-rank.bronze {
    color: #d97706;
}

.kptc-leaderboard-user {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 12px;
}

.kptc-leaderboard-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.kptc-leaderboard-name {
    font-weight: 500;
    color: #1e293b;
}

.kptc-leaderboard-score {
    font-weight: bold;
    color: #1e3a8a;
    font-size: 18px;
}

/* Responsive Updates */
@media (max-width: 768px) {
    .kptc-certificates-grid {
        grid-template-columns: 1fr;
    }
    
    .kptc-notifications-dropdown {
        width: 300px;
        right: -50px;
    }
    
    .kptc-progress-indicator {
        flex-direction: column;
        text-align: center;
    }
}
/* Notification Popup */
.kptc-notification-popup {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 20px;
    background: #1e293b;
    color: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 999999;
    display: none;
    max-width: 300px;
}

.kptc-notification-popup.success {
    background: #10b981;
}

.kptc-notification-popup.error {
    background: #ef4444;
}

.kptc-notification-popup.warning {
    background: #f59e0b;
}

/* Advanced Search Styles */
.kptc-advanced-search {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.kptc-search-main {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.kptc-search-input-main {
    flex: 1;
    padding: 12px 20px;
    font-size: 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
}

.kptc-search-submit {
    padding: 12px 30px;
    background: #1e3a8a;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
}

.kptc-toggle-filters {
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
}

.kptc-toggle-filters.active {
    background: #1e3a8a;
    color: white;
}

.kptc-advanced-filters {
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
}

.kptc-filters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.kptc-filter-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 10px;
    color: #1e293b;
}

.kptc-checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.kptc-checkbox-group label {
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: normal;
    cursor: pointer;
}

.kptc-filter-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
}

/* User Profile Styles */
.kptc-user-profile {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

.kptc-profile-header {
    display: flex;
    align-items: center;
    gap: 30px;
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    margin-bottom: 30px;
}

.kptc-profile-avatar {
    position: relative;
}

.kptc-profile-avatar img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 4px solid #f3f4f6;
}

.kptc-level-badge {
    position: absolute;
    bottom: -5px;
    right: -5px;
    padding: 5px 10px;
    background: #1e3a8a;
    color: white;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
}

.kptc-profile-info h2 {
    margin: 0 0 5px 0;
    color: #1e293b;
}

.kptc-level-name {
    color: #64748b;
    margin: 0 0 15px 0;
}

.kptc-points-display {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.points-number {
    font-size: 32px;
    font-weight: bold;
    color: #1e3a8a;
}

.points-label {
    font-size: 16px;
    color: #64748b;
}

.kptc-level-progress {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    margin-bottom: 30px;
}

.progress-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 14px;
    color: #64748b;
}

.progress-bar {
    width: 100%;
    height: 20px;
    background: #f3f4f6;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #3b82f6 0%, #1e3a8a 100%);
    border-radius: 10px;
    transition: width 1s ease;
}

.max-level {
    text-align: center;
    font-size: 18px;
    color: #1e3a8a;
}

.kptc-profile-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-box {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    gap: 15px;
}

.stat-icon {
    width: 50px;
    height: 50px;
    background: #eff6ff;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-icon .dashicons {
    font-size: 24px;
    width: 24px;
    height: 24px;
    color: #1e3a8a;
}

.stat-content h3 {
    margin: 0;
    font-size: 24px;
    color: #1e293b;
}

.stat-content p {
    margin: 0;
    font-size: 14px;
    color: #64748b;
}

.kptc-profile-section {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    margin-bottom: 30px;
}

.kptc-profile-section h3 {
    margin: 0 0 20px 0;
    color: #1e293b;
}

/* Points History */
.kptc-points-history ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.history-item {
    display: flex;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #f3f4f6;
}

.history-item:last-child {
    border-bottom: none;
}

.history-icon {
    width: 40px;
    height: 40px;
    background: #dcfce7;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
}

.history-icon .dashicons {
    color: #10b981;
}

.history-content {
    flex: 1;
}

.history-description {
    display: block;
    color: #1e293b;
    margin-bottom: 3px;
}

.history-points {
    font-size: 14px;
    color: #10b981;
    font-weight: 600;
}

.history-time {
    font-size: 12px;
    color: #94a3b8;
}

/* Social Share Buttons */
.kptc-social-share {
    background: #f8fafc;
    padding: 20px;
    border-radius: 12px;
    margin: 20px 0;
}

.kptc-social-share h4 {
    margin: 0 0 15px 0;
    color: #1e293b;
}

.kptc-share-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.kptc-share-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    color: white;
    font-weight: 500;
    transition: all 0.3s ease;
}

.kptc-share-whatsapp {
    background: #25d366;
}

.kptc-share-whatsapp:hover {
    background: #1ebe57;
}

.kptc-share-facebook {
    background: #1877f2;
}

.kptc-share-facebook:hover {
    background: #166fe5;
}

.kptc-share-twitter {
    background: #1da1f2;
}

.kptc-share-twitter:hover {
    background: #1a91da;
}

.kptc-share-linkedin {
    background: #0077b5;
}

.kptc-share-linkedin:hover {
    background: #006ba1;
}

.kptc-share-copy {
    background: #6b7280;
    color: white;
    border: none;
    cursor: pointer;
}

.kptc-share-copy:hover {
    background: #4b5563;
}

/* Review Form */
.kptc-review-form {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.kptc-review-form h3 {
    margin: 0 0 20px 0;
    color: #1e293b;
}

.kptc-rating-select {
    margin-bottom: 20px;
}

.kptc-rating-select label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: #1e293b;
}

.kptc-rating-input {
    display: flex;
    gap: 5px;
}

.kptc-rating-input .star-input {
    font-size: 32px;
    color: #e5e7eb;
    cursor: pointer;
    transition: color 0.2s;
}

.kptc-rating-input .star-input:hover,
.kptc-rating-input .star-input.active {
    color: #facc15;
}

/* Print Styles for Certificates */
@media print {
    body * {
        visibility: hidden;
    }
    
    .kptc-certificate-print,
    .kptc-certificate-print * {
        visibility: visible;
    }
    
    .kptc-certificate-print {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.kptc-card {
    animation: fadeInUp 0.5s ease;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.kptc-btn:active {
    animation: pulse 0.3s ease;
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .kptc-cards-directory,
    .kptc-form,
    .kptc-card,
    .kptc-modal-content,
    .kptc-profile-header,
    .kptc-profile-section,
    .stat-box,
    .kptc-leaderboard,
    .kptc-certificate-card {
        background: #1e293b;
        color: #f1f5f9;
    }
    
    .kptc-card-name,
    .kptc-modal-title,
    .kptc-profile-info h2,
    .kptc-profile-section h3 {
        color: #f1f5f9;
    }
    
    .kptc-card-bio,
    .kptc-card-title,
    .points-label,
    .stat-content p {
        color: #cbd5e1;
    }
    
    input[type="text"],
    input[type="url"],
    input[type="number"],
    textarea,
    select {
        background: #334155;
        border-color: #475569;
        color: #f1f5f9;
    }
}

/* Responsive Design Enhancements */
@media (max-width: 1024px) {
    .kptc-profile-header {
        flex-direction: column;
        text-align: center;
    }
    
    .kptc-filters-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .kptc-search-main {
        flex-direction: column;
    }
    
    .kptc-share-buttons {
        flex-direction: column;
    }
    
    .kptc-share-btn {
        width: 100%;
        justify-content: center;
    }
    
    .kptc-filters-grid {
        grid-template-columns: 1fr;
    }
    
    .kptc-profile-stats {
        grid-template-columns: 1fr;
    }
    
    .kptc-notification-popup {
        left: 10px;
        right: 10px;
        max-width: none;
    }
}

/* Accessibility Improvements */
.screen-reader-text {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* Focus Styles */
a:focus,
button:focus,
input:focus,
select:focus,
textarea:focus {
    outline: 2px solid #1e3a8a;
    outline-offset: 2px;
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .kptc-btn-primary {
        border: 2px solid white;
    }
    
    .kptc-card {
        border: 2px solid currentColor;
    }
}
.kptc-photo-upload {
    margin-top: 10px;
}

.kptc-current-photo {
    margin-bottom: 10px;
}

.kptc-current-photo img {
    max-width: 150px;
    height: auto;
    border: 1px solid #ddd;
    padding: 5px;
    background: #fff;
}

.kptc-upload-btn,
.kptc-remove-btn {
    margin-right: 10px !important;
}

.kptc-photo-info {
    display: block;
    margin-top: 5px;
    color: #666;
    font-size: 0.9em;
}

.kptc-message {
    margin: 20px 0;
    padding: 15px;
    border-radius: 4px;
}

.kptc-message.success {
    background-color: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
}

.kptc-message.error {
    background-color: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
}
/* Modal Content Styles */
.kptc-schedule-selection {
    margin: 20px 0;
}

.kptc-schedule-option {
    margin-bottom: 10px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    transition: all 0.3s;
}

.kptc-schedule-option:hover:not(.disabled) {
    background: #f0f8ff;
    border-color: #007cba;
}

.kptc-schedule-option.disabled {
    opacity: 0.5;
    background: #f5f5f5;
}

.kptc-schedule-option label {
    display: flex;
    align-items: center;
    cursor: pointer;
    width: 100%;
}

.kptc-schedule-option input[type="radio"] {
        margin-right: 10px;
}

.kptc-schedule-option .schedule-label {
    flex: 1;
}

.kptc-schedule-option .slots-info {
    color: #666;
    font-size: 14px;
}

.kptc-schedule-option .full-badge {
    background: #dc3545;
    color: white;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 11px;
    margin-left: 5px;
}

.kptc-already-registered {
    text-align: center;
    padding: 20px;
    background: #d4edda;
    border: 1px solid #c3e6cb;
    border-radius: 4px;
    color: #155724;
}

.kptc-kakak-info {
    text-align: center;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
    margin-bottom: 20px;
}

.kptc-kakak-info h4 {
    margin: 0 0 5px 0;
    font-size: 20px;
}

.kptc-kakak-info .kptc-gelar {
    color: #666;
    font-style: italic;
}

.kptc-form-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.kptc-form-actions .kptc-btn {
    flex: 1;
}

/* Detail Modal Styles */
.kptc-detail-content {
    padding: 10px;
}

.kptc-detail-header {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.kptc-detail-photo {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
}

.kptc-detail-info {
    flex: 1;
}

.kptc-detail-info h3 {
    margin: 0 0 5px 0;
    font-size: 22px;
}

.kptc-detail-gelar {
    color: #666;
    font-style: italic;
    margin: 0;
}

.kptc-detail-section {
    margin-bottom: 20px;
}

.kptc-detail-section h4 {
    margin: 0 0 10px 0;
    font-size: 16px;
    color: #333;
    border-bottom: 1px solid #eee;
    padding-bottom: 5px;
}

.kptc-detail-stats {
    list-style: none;
    margin: 0;
    padding: 0;
}

.kptc-detail-stats li {
    padding: 5px 0;
    color: #666;
}

.kptc-detail-stats strong {
    color: #333;
}

.kptc-admin-section {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 4px;
    margin-top: 20px;
}
    
    
    
/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}