
:root {
    --iassh-primary: #164b82;
    --iassh-dark: #10365e;
    --iassh-accent: #1686a7;
    --iassh-bg: #f4f7fb;
    --iassh-text: #26384a;
    --iassh-muted: #718096;
    --iassh-border: #e5ebf2;
    --iassh-white: #fff;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 25px;
    background: var(--iassh-bg);
    color: var(--iassh-text);
    font-family: "Segoe UI", Arial, sans-serif;
    font-size: 14px;
}

.profile-container {
    max-width: 1250px;
    margin: auto;
}

.profile-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 22px;
}

.breadcrumb {
    color: var(--iassh-muted);
    font-size: 12px;
    margin-bottom: 8px;
}

.profile-header h1 {
    margin: 0 0 7px;
    font-size: 27px;
    color: var(--iassh-dark);
}

.profile-header p {
    color: var(--iassh-muted);
    margin: 0;
}

.header-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.btn {
    display: inline-block;
    padding: 11px 18px;
    border-radius: 6px;
    text-decoration: none;
    border: 0;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    font-family: inherit;
}

.btn-primary {
    background: var(--iassh-primary);
    color: #fff;
}

.btn-primary:hover {
    background: var(--iassh-dark);
}

.btn-light {
    background: #eaf1f8;
    color: var(--iassh-primary);
}

.profile-card {
    background: #fff;
    border: 1px solid var(--iassh-border);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 14px rgba(20,55,90,.04);
}

/* Profile top */

.profile-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px;
    background: #f8fbff;
    border-bottom: 1px solid var(--iassh-border);
}

.profile-person {
    display: flex;
    align-items: center;
    gap: 18px;
}

.profile-photo {
    height: 100px;
    width: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,.10);
    background: #eaf0f7;
}

.profile-person h2 {
    color: var(--iassh-dark);
    margin: 0 0 6px;
    font-size: 22px;
}

.profile-person p {
    color: var(--iassh-muted);
    margin: 0 0 7px;
}

.member-id {
    font-size: 12px;
    color: var(--iassh-primary);
    font-weight: 700;
}

.status {
    padding: 7px 13px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
}

.status-approved {
    background: #e5f6ed;
    color: #18834c;
}

.status-pending {
    background: #fff4dc;
    color: #a66b00;
}

.status-rejected {
    background: #fdeaea;
    color: #c03939;
}

/* Sections */

.profile-section {
    padding: 25px;
    border-bottom: 1px solid var(--iassh-border);
}

.profile-section h3 {
    margin: 0 0 21px;
    font-size: 17px;
    color: var(--iassh-dark);
    padding-bottom: 12px;
    border-bottom: 2px solid #eaf1f8;
    position: relative;
}

.profile-section h3:after {
    content: "";
    width: 65px;
    height: 2px;
    background: var(--iassh-accent);
    position: absolute;
    bottom: -2px;
    left: 0;
}

/* Read-only details */

.details-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px 25px;
}

.detail label {
    display: block;
    color: var(--iassh-muted);
    font-size: 12px;
    margin-bottom: 7px;
}

.detail strong {
    display: block;
    color: var(--iassh-text);
    font-size: 13px;
    font-weight: 600;
    overflow-wrap: anywhere;
}

.full-width {
    grid-column: 1 / -1;
}

/* Edit form */

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 19px 23px;
}

.form-group label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #536b82;
    margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 11px 12px;
    border: 1px solid #dce5ef;
    border-radius: 5px;
    outline: none;
    background: #fff;
    color: var(--iassh-text);
    font-size: 13px;
    font-family: inherit;
}

.form-group textarea {
    min-height: 90px;
    resize: vertical;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--iassh-accent);
    box-shadow: 0 0 0 3px rgba(22,134,167,.08);
}

/* Photo upload */

.photo-upload-area {
    display: flex;
    align-items: center;
    gap: 22px;
}

.photo-upload-area p {
    color: var(--iassh-muted);
    font-size: 12px;
    margin: 7px 0 12px;
}

.file-label {
    display: inline-block;
    cursor: pointer;
}

.file-label input {
    display: none;
}

.file-label span {
    display: inline-block;
    background: #eaf4fc;
    color: var(--iassh-primary);
    border: 1px solid #d6e7f7;
    padding: 9px 13px;
    border-radius: 5px;
    font-size: 12px;
    font-weight: 600;
}

.file-label span:hover {
    background: #dceefa;
}

.file-name {
    display: block;
    color: var(--iassh-muted);
    margin-top: 8px;
    font-size: 11px;
}

/* Documents */

.section-description {
    color: var(--iassh-muted);
    font-size: 12px;
    margin: -9px 0 18px;
}

.document-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.document-card {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    border: 1px solid var(--iassh-border);
    background: #fbfcfe;
    padding: 17px;
    border-radius: 7px;
}

.document-icon,
.upload-card-icon {
    width: 42px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 5px;
    background: #eaf1f8;
    color: var(--iassh-primary);
    font-size: 11px;
    font-weight: 800;
    flex-shrink: 0;
}

.document-info strong,
.upload-content strong {
    display: block;
    color: var(--iassh-dark);
    margin-bottom: 7px;
    font-size: 13px;
}

.uploaded-text,
.missing-text {
    display: block;
    font-size: 11px;
    margin-bottom: 7px;
}

.uploaded-text {
    color: #16834d;
}

.missing-text {
    color: #bd3838;
}

.document-link {
    display: inline-block;
    color: var(--iassh-primary);
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    margin-bottom: 8px;
}

.document-link:hover {
    text-decoration: underline;
}

.upload-card {
    display: flex;
    gap: 14px;
    border: 1px solid var(--iassh-border);
    padding: 17px;
    border-radius: 7px;
    background: #fbfcfe;
}

.upload-content {
    min-width: 0;
}

.upload-content .file-name {
    overflow-wrap: anywhere;
}

/* Messages and footer */

.alert {
    padding: 13px 17px;
    margin-bottom: 18px;
    border-radius: 6px;
    font-weight: 600;
}

.alert-success {
    background: #e5f6ed;
    color: #18834c;
}

.alert-error {
    background: #fdeaea;
    color: #bd3838;
}

.profile-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 20px 25px;
    background: #fbfcfe;
}

/* Responsive */

@media(max-width: 850px) {
    .details-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .profile-header {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media(max-width: 600px) {
    body {
        padding: 12px;
    }

    .profile-header h1 {
        font-size: 23px;
    }

    .profile-top {
        align-items: flex-start;
        flex-direction: column;
        gap: 17px;
        padding: 18px;
    }

    .profile-person {
        align-items: flex-start;
        gap: 12px;
    }

    .profile-photo {
        width: 75px;
        height: 75px;
    }

    .profile-person h2 {
        font-size: 18px;
    }

    .profile-section {
        padding: 18px;
    }

    .details-grid,
    .form-grid,
    .document-grid {
        grid-template-columns: 1fr;
    }

    .profile-footer {
        padding: 16px;
        flex-wrap: wrap;
    }

    .header-actions {
        width: 100%;
    }
}
