/**
 * Styles for Patient Card (pcard) custom post type
 * Based on the provided design
 */
html{
	margin-top: 10px !important;
}
#wpadminbar{display:none;}
a{color: #fff;}
body.single-pcard,
body.home{
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
    background-color: #f5f5f5;
    
    /* Disable scrolling */
    width: 100%;
    height: 100%;
}

/* Hide theme elements when viewing pcards */
body #masthead,
body #colophon,
body .site-header,
body .site-footer,
body .entry-header,
body .entry-footer,
body .navigation {
    display: none;
}


/* Container for the card */
.pcard-container {
    max-width: 460px;
    width: 100%;
    font-family: Arial, sans-serif;
    padding: 20px;
}

/* Unified Card with sections */
.pcard-unified-card {
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

/* Header Section - Purple background */
.pcard-header-section {
    background: linear-gradient(135deg, #9966cc 0%, #7c54a3 100%);
    padding: 20px;
    color: white;
    text-align: center;
}

.pcard-header-content {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.pcard-logo, .pcard-logo-text {
    width: 80px;
    margin-right: 20px;
}

.pcard-logo img {
    max-width: 100%;
    height: auto;
}

.pcard-logo-text {
    font-weight: bold;
    text-align: center;
    font-style: italic;
    font-size: 16px;
}

.pcard-doctor-info {
    text-align: left;
    flex: 1;
}

.pcard-doctor-info h2 {
    margin: 0 0 2px 0;
    font-size: 18px;
    font-weight: normal;
}

.pcard-doctor-info p {
    margin: 0 0 0px 0;
    font-size: 14px;
    font-weight: normal;
}

/* Patient Card Title */
.pcard-title {
    padding: 10px 0;
    text-align: center;
}

.pcard-title h1 {
    margin: 0 0 5px 0;
    font-size: 24px;
    font-weight: bold;
    letter-spacing: 1px;
}

.pcard-contact {
    font-size: 16px;
    margin: 0;
	color: #fff !important;
}

/* Metal Warning on Header Card */
.pcard-metal-warning {
    background-color: #663399;
    padding: 10px;
    border-radius: 5px;
    margin-top: 15px;
}

.pcard-metal-warning p {
    margin: 0;
    line-height: 1.4;
    font-size: 13px;
}

/* Patient Section - Light Purple background */
.pcard-patient-section {
    background-color: #f0e6f6;
    padding: 20px;
}

/* Patient Information Section */
.pcard-patient-info {
    margin-bottom: 20px;
}

.pcard-info-row {
    display: flex;
    margin-bottom: 10px;
    align-items: flex-start;
}

.pcard-label {
    font-weight: bold;
    width: 120px;
    color: #333;
    font-size: 14px;
}

.pcard-value {
    flex: 1;
    font-size: 14px;
    color: #333;
}

.pcard-details {
    align-items: flex-start;
}

.pcard-details .pcard-value {
    line-height: 1.4;
}

/* Bottom Warning Note */
.pcard-warning {
    background-color: #663399;
    color: white;
    padding: 10px;
    border-radius: 5px;
    text-align: center;
}

.pcard-warning p {
    margin: 0;
    line-height: 1.4;
    font-size: 13px;
}

/* Save Button */
.pcard-save-button-container {
    position: fixed;
    bottom: 30px;
    left: 0;
    right: 0;
    text-align: center;
    z-index: 1000;
}

.pcard-save-button {
    background-color: #663399;
    color: white;
    border: none;
    border-radius: 30px;
    padding: 12px 25px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.pcard-save-button:hover {
    background-color: #7c54a3;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.pcard-save-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.pcard-save-button:disabled {
    background-color: #9985ad;
    cursor: not-allowed;
}

/* Responsive adjustments */
@media screen and (max-width: 480px) {
    /* Keep header content in row layout */
    .pcard-header-content {
        flex-direction: row;
        text-align: left;
    }
    
    .pcard-logo, .pcard-logo-text {
        margin-right: 20px;
        margin-bottom: 0;
        width: 60px; /* Slightly smaller logo for mobile */
    }
    
    .pcard-doctor-info {
        text-align: left;
    }
    
    .pcard-container {
        padding: 10px;
    }
    
    /* Keep patient info rows as rows even on mobile */
    .pcard-label {
        width: 120px;
        font-size: 13px;
    }
    
    .pcard-value {
        font-size: 13px;
    }
}

/* Ensure that the card is optimized for screenshots */
@media print {
    .pcard-unified-card {
        box-shadow: none;
    }
    
    body * {
        visibility: hidden;
    }
    
    .pcard-container, 
    .pcard-unified-card,
    .pcard-header-section,
    .pcard-patient-section, 
    .pcard-container *, 
    .pcard-unified-card *,
    .pcard-header-section *,
    .pcard-patient-section * {
        visibility: visible;
    }
    
    .pcard-container {
        position: absolute;
        left: 0;
        top: 0;
    }
}