/* Form Container */
.pc-form-container {
    max-width: 600px;
    margin: 30px auto;
    padding: 30px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.pc-form-container h2 {
    text-align: center;
    color: #333;
    margin-bottom: 30px;
    font-size: 24px;
}

.pc-form-group {
    margin-bottom: 20px;
}

.pc-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #555;
    font-size: 14px;
}

.pc-form-group input[type="text"],
.pc-form-group input[type="date"],
.pc-form-group select,
.pc-form-group textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.3s;
    box-sizing: border-box;
}

.pc-form-group input:focus,
.pc-form-group select:focus,
.pc-form-group textarea:focus {
    outline: none;
    border-color: #0073aa;
}

.pc-submit-btn {
    width: 100%;
    padding: 12px;
    background: #0073aa;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.pc-submit-btn:hover {
    background: #005a87;
}

.pc-cancel-btn {
    display: inline-block;
    width: 100%;
    padding: 12px;
    background: #666;
    color: #fff;
    text-align: center;
    text-decoration: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    margin-top: 10px;
    transition: background 0.3s;
}

.pc-cancel-btn:hover {
    background: #444;
}

#pc-message {
    margin-top: 20px;
    padding: 12px;
    border-radius: 4px;
    display: none;
}

#pc-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    display: block;
}

#pc-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    display: block;
}

/* Certificate List Container */
.pc-list-container {
    max-width: 1200px;
    margin: 30px auto;
    padding: 30px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.pc-list-container h2 {
    color: #333;
    margin-bottom: 20px;
    font-size: 24px;
}

.pc-table-responsive {
    overflow-x: auto;
}

.pc-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.pc-table thead {
    background: #0073aa;
    color: #fff;
}

.pc-table th,
.pc-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.pc-table th {
    font-weight: 600;
    font-size: 14px;
}

.pc-table tbody tr:hover {
    background: #f5f5f5;
}

.pc-table tbody tr.deleting {
    opacity: 0.5;
    pointer-events: none;
}

.pc-actions {
    white-space: nowrap;
}

.pc-btn {
    display: inline-block;
    padding: 6px 12px;
    margin: 2px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
}

.pc-btn-edit {
    background: #0073aa;
    color: #fff;
}

.pc-btn-edit:hover {
    background: #005a87;
}

.pc-btn-print {
    background: #28a745;
    color: #fff;
}

.pc-btn-print:hover {
    background: #218838;
}

.pc-btn-delete {
    background: #dc3545;
    color: #fff;
}

.pc-btn-delete:hover {
    background: #c82333;
}

.pc-no-data {
    text-align: center;
    padding: 40px;
    color: #666;
    font-size: 16px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .pc-form-container,
    .pc-list-container {
        padding: 20px;
        margin: 15px;
    }
    
    .pc-table {
        font-size: 12px;
    }
    
    .pc-table th,
    .pc-table td {
        padding: 8px 10px;
    }
    
    .pc-btn {
        padding: 4px 8px;
        font-size: 11px;
        display: block;
        margin: 4px 0;
    }
}