/**
 * Panel History Styles for Physician Panel Manager
 */

/* My Panels Container */
.ppm-my-panels {
    max-width: 900px;
    margin: 20px auto;
}

.ppm-my-panels h2 {
    margin: 0 0 25px 0;
    color: #1e3a5f;
}

/* No Panels */
.ppm-no-panels {
    text-align: center;
    padding: 40px;
    background: #f9f9f9;
    border-radius: 8px;
    color: #666;
}

.ppm-no-panels p {
    margin: 10px 0;
}

/* Panels List */
.ppm-panels-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Panel Card */
.ppm-panel-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    transition: box-shadow 0.2s;
}

.ppm-panel-card:hover {
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.ppm-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.ppm-panel-name {
    margin: 0;
    font-size: 18px;
    color: #1e3a5f;
}

.ppm-panel-state {
    background: #1e3a5f;
    color: #fff;
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

.ppm-panel-meta {
    display: flex;
    gap: 20px;
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
}

.ppm-panel-insurance {
    font-size: 14px;
    color: #555;
    margin-bottom: 15px;
    padding: 10px;
    background: #f5f5f5;
    border-radius: 4px;
}

.ppm-panel-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

/* Button Styles */
.ppm-button-danger {
    background: #fff;
    color: #dc3545;
    border: 1px solid #dc3545;
}

.ppm-button-danger:hover {
    background: #dc3545;
    color: #fff;
}

.ppm-button-success {
    background: #28a745;
    color: #fff;
    border: none;
}

.ppm-button-success:hover {
    background: #218838;
}

/* Save Panel Button (in main form) */
.ppm-save-panel-section {
    margin-top: 20px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px dashed #ccc;
}

.ppm-save-panel-section h4 {
    margin: 0 0 10px 0;
    color: #1e3a5f;
}

.ppm-save-panel-section p {
    margin: 0 0 15px 0;
    color: #666;
    font-size: 14px;
}

.ppm-save-panel-row {
    display: flex;
    gap: 10px;
    align-items: center;
}

.ppm-save-panel-row input {
    flex: 1;
    max-width: 300px;
}

/* Panel Details Modal */
.ppm-panel-details h2 {
    margin: 0 0 20px 0;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
    color: #1e3a5f;
}

.ppm-panel-detail-meta {
    margin-bottom: 20px;
}

.ppm-panel-detail-meta p {
    margin: 5px 0;
}

.ppm-panel-detail-insurance {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.ppm-panel-detail-insurance h4 {
    margin: 0 0 10px 0;
    color: #1e3a5f;
}

.ppm-panel-detail-insurance p {
    margin: 5px 0;
}

.ppm-panel-detail-physicians h4 {
    margin: 0 0 15px 0;
    color: #1e3a5f;
}

.ppm-detail-table {
    width: 100%;
    border-collapse: collapse;
}

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

.ppm-detail-table th {
    background: #f5f5f5;
    font-weight: 600;
    color: #333;
}

.ppm-panel-detail-actions {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    text-align: center;
}

/* Modal Styles */
.ppm-modal {
    position: fixed;
    z-index: 100001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

.ppm-modal-content {
    background: #fff;
    border-radius: 8px;
    max-width: 700px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    padding: 25px;
}

.ppm-modal-close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 28px;
    font-weight: bold;
    color: #666;
    cursor: pointer;
    z-index: 10;
    line-height: 1;
}

.ppm-modal-close:hover {
    color: #000;
}

/* Responsive */
@media (max-width: 600px) {
    .ppm-panel-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .ppm-panel-meta {
        flex-direction: column;
        gap: 5px;
    }
    
    .ppm-panel-actions {
        flex-direction: column;
    }
    
    .ppm-panel-actions .ppm-button {
        width: 100%;
        text-align: center;
    }
}
