/* Photo Attachment Component Styles */
:root {
    --cover-height: 320px;
}

.photo-attachment {
    margin: 0;
    box-shadow: none !important;
    /*border: 1px solid #e0e0e0;*/
}

.photo-attachment__body {
    padding: 0 !important;
}

.photo-attachment__file-input {
    display: none;
}

/* Image wrapper for regular photos */
.photo-attachment__image-wrapper {
    width: 200px;
    height: 200px;
    margin: 0 auto;
    position: relative;
    padding: 16px;
}

.photo-attachment__image-wrapper .photo-attachment__image {
    border-radius: 50%;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Cover photo styles */
.photo-attachment.is-cover .photo-attachment__image {
    width: 100%;
    height: var(--cover-height);
    object-fit: cover;
}

.photo-attachment__cover-wrapper {
    position: relative;
    min-height: var(--cover-height);
    height: var(--cover-height);
}

.photo-attachment__cover-controls {
    background-color: var(--sunken);
    padding: 8px 16px;
    border-top: 1px solid var(--line);
}

/* Placeholder for empty cover photos */
.photo-attachment__placeholder {
    width: 100%;
    height: var(--cover-height);
    background: linear-gradient(135deg, var(--sunken), var(--paper));
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    position: relative;
}

.photo-attachment__placeholder-text {
    color: var(--ink-muted);
    margin-top: 16px;
    font-size: 14px;
}

/* Button positioning */
.photo-attachment__upload-button {
    position: absolute !important;
    right: 8px !important;
    bottom: 8px !important;
    min-width: 40px !important;
    height: 40px !important;
    padding: 0 !important;
    border-radius: 50% !important;
    background-color: white !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
}

.photo-attachment__delete-button {
    position: absolute !important;
    top: 8px !important;
    right: 8px !important;
    min-width: 40px !important;
    height: 40px !important;
    padding: 0 !important;
    border-radius: 50% !important;
    background-color: white !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
}

.photo-attachment__cover-controls .photo-attachment__upload-button,
.photo-attachment__cover-controls .photo-attachment__delete-button {
    position: relative !important;
    top: auto !important;
    right: auto !important;
    bottom: auto !important;
}

/* Description text */
.photo-attachment__description {
    font-size: 12px;
    color: var(--ink-muted);
    margin: 8px 16px;
    text-align: right;
}

.photo-attachment.is-compact .photo-attachment__image-wrapper {
    width: 76px;
    height: 76px;
    margin: 0;
    padding: 0;
}
.photo-attachment.is-compact .photo-attachment__upload-button,
.photo-attachment.is-compact .photo-attachment__delete-button {
    min-width: 26px !important;
    width: 26px !important;
    height: 26px !important;
    right: -4px !important;
}
.photo-attachment.is-compact .photo-attachment__upload-button {
    bottom: -4px !important;
}
.photo-attachment.is-compact .photo-attachment__delete-button {
    top: -4px !important;
}

#akashic-health-records-patient-portal-root .photo-attachment.is-compact .photo-attachment__initials {
    width: 100%;
    height: 100%;
    border-radius: 9999px;
    font-size: 24px;
}
