.natd-cpd-dashboard {
    font-family: inherit;
    max-width: 100%;
    margin: 0 auto;
}

.cpd-summary-panel {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.cpd-stats {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.stat-box {
    flex: 1;
    background: #fff;
    padding: 15px;
    border-radius: 6px;
    text-align: center;
    min-width: 150px;
    border: 1px solid #eee;
}

.stat-box h3 {
    font-size: 14px;
    color: #666;
    margin: 0 0 10px 0;
}

.stat-number {
    font-size: 28px;
    font-weight: bold;
    color: #333;
    margin: 0;
}

.progress-bar-container {
    background: #eee;
    border-radius: 10px;
    height: 20px;
    width: 100%;
    overflow: hidden;
}

.progress-bar {
    background: #4caf50;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 11px;
    transition: width 0.3s ease;
}

.cpd-controls {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    align-items: center;
}

.cpd-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

.cpd-table th, .cpd-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.cpd-table th {
    background: #f4f4f4;
    font-weight: 600;
}

.cpd-badge {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    text-transform: uppercase;
    font-weight: bold;
}

.badge-auto {
    background: #e3f2fd;
    color: #1565c0;
}

.badge-manual {
    background: #f3e5f5;
    color: #7b1fa2;
}

/* Modal */
.cpd-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
}

.cpd-modal-content {
    background: white;
    padding: 30px;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    position: relative;
}

.close-modal {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
}

.form-row {
    margin-bottom: 15px;
}

.form-row label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.form-row input, .form-row select {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

@media (max-width: 600px) {
    .cpd-table thead {
        display: none;
    }
    .cpd-table tr {
        display: block;
        margin-bottom: 15px;
        border: 1px solid #eee;
        padding: 10px;
    }
    .cpd-table td {
        display: block;
        text-align: right;
        padding: 5px 0;
        border: none;
    }
    .cpd-table td:before {
        content: attr(data-label);
        float: left;
        font-weight: bold;
    }
}
