/* Shared styles for my_profile.php and admin_my_profile.php */

.pf-page {
    background: #f4f6fa;
    padding: 40px 0 80px;
    font-family: 'Roboto', 'Work Sans', sans-serif;
    color: #1f2937;
}

.pf-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(7, 30, 69, .08);
    padding: 24px;
    margin-bottom: 24px;
}

/* Header */
.pf-header {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    background: linear-gradient(135deg, #071e45 0%, #0d3a85 100%);
    color: #fff;
}

.pf-avatar {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    border: 4px solid rgba(255, 255, 255, .85);
    object-fit: cover;
    flex-shrink: 0;
    background: #fff;
}

.pf-avatar-initial {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 34px;
    font-weight: 700;
    color: #071e45;
}

.pf-header h2 {
    margin: 0 0 4px;
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
}

.pf-header .pf-sub {
    font-size: 14px;
    opacity: .85;
    word-break: break-all;
}

.pf-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.pf-chip {
    background: rgba(255, 255, 255, .15);
    border: 1px solid rgba(255, 255, 255, .3);
    border-radius: 50px;
    padding: 3px 12px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .3px;
    text-transform: uppercase;
}

/* Section titles */
.pf-section-title {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .6px;
    text-transform: uppercase;
    color: #071e45;
    margin: 0 0 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eef0f4;
}

.pf-section-title + .pf-section-title,
.pf-grid + .pf-section-title {
    margin-top: 28px;
}

/* Form grid */
.pf-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 20px;
}

.pf-grid .pf-full {
    grid-column: 1 / -1;
}

@media (max-width: 575px) {
    .pf-grid {
        grid-template-columns: 1fr;
    }
}

.pf-field label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #6b7280;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: .3px;
}

.pf-field input[type="text"],
.pf-field input[type="email"],
.pf-field input[type="password"],
.pf-field select {
    width: 100%;
    height: 44px;
    border: 1px solid #d9dee7;
    border-radius: 10px;
    padding: 0 14px;
    font-size: 15px;
    color: #1f2937;
    background: #fff;
    box-shadow: none;
    transition: border-color .2s, box-shadow .2s;
}

.pf-field input:focus,
.pf-field select:focus {
    outline: none;
    border-color: #0d3a85;
    box-shadow: 0 0 0 3px rgba(13, 58, 133, .12);
}

.pf-field input[readonly] {
    background: #f4f6fa;
    color: #6b7280;
    cursor: not-allowed;
}

.pf-hint {
    font-size: 12px;
    color: #6b7280;
    margin-top: 6px;
    line-height: 1.4;
}

/* Read-only info tiles */
.pf-info {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 28px;
}

@media (max-width: 767px) {
    .pf-info {
        grid-template-columns: 1fr;
    }
}

.pf-info-item {
    background: #f4f6fa;
    border-radius: 12px;
    padding: 12px 14px;
}

.pf-info-item span {
    display: block;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .4px;
    color: #6b7280;
}

.pf-info-item strong {
    display: block;
    font-size: 15px;
    color: #071e45;
    margin-top: 2px;
    word-break: break-all;
}

/* Buttons */
.pf-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 44px;
    padding: 0 26px;
    border: none;
    border-radius: 50px;
    background: #071e45;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: .3px;
    text-transform: uppercase;
    cursor: pointer;
    transition: background .2s, transform .2s;
}

.pf-btn:hover {
    background: #0d3a85;
    transform: translateY(-1px);
}

.pf-btn-block {
    width: 100%;
}

.pf-btn-outline {
    background: #fff;
    color: #071e45;
    border: 1px solid #071e45;
}

.pf-btn-outline:hover {
    background: #f4f6fa;
}

.pf-actions {
    margin-top: 28px;
    display: flex;
    justify-content: flex-end;
}

/* Side cards: image + upload */
.pf-photo {
    display: block;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 16px;
    border: 4px solid #eef0f4;
}

.pf-doc {
    display: block;
    width: 100%;
    max-height: 160px;
    object-fit: contain;
    border-radius: 12px;
    margin: 0 auto 16px;
    background: #f4f6fa;
}

.pf-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 120px;
    height: 120px;
    margin: 0 auto 16px;
    border-radius: 50%;
    background: #f4f6fa;
    color: #9ca3af;
    font-size: 13px;
    text-align: center;
}

.pf-placeholder.pf-placeholder-doc {
    width: 100%;
    height: 110px;
    border-radius: 12px;
}

.pf-upload {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.pf-file {
    position: relative;
    display: flex;
    align-items: center;
    height: 44px;
    border: 1px dashed #c5ccd8;
    border-radius: 10px;
    padding: 0 14px;
    font-size: 13px;
    color: #6b7280;
    cursor: pointer;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.pf-file:hover {
    border-color: #0d3a85;
    color: #0d3a85;
}

.pf-file input[type="file"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

/* Alerts */
.pf-alert {
    border-radius: 12px;
    padding: 12px 16px;
    margin-bottom: 20px;
    font-size: 14px;
    font-weight: 500;
}

.pf-alert-success {
    background: #e7f7ef;
    color: #146c43;
    border: 1px solid #b7e4cb;
}

.pf-alert-info {
    background: #eef3fc;
    color: #0d3a85;
    border: 1px solid #c9d8f2;
}
