/* app/static/css/personal_info.css */

/* ========================= */
/* PERSONAL INFO CONTAINER */
/* ========================= */
.personal-info-container {
    margin: 0;
    width: 100%;
    text-align: left;
    border: 1px solid rgba(6, 171, 212, 0.44);
    border-radius: 18px;
    overflow: hidden;
    position: relative;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.015)),
        linear-gradient(180deg, rgba(6, 171, 212, 0.14), rgba(0, 0, 0, 0.10)),
        rgba(15, 18, 22, 0.98);
    box-shadow:
        0 0 24px rgba(6, 171, 212, 0.22),
        0 18px 50px rgba(0, 0, 0, 0.34),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
    box-sizing: border-box;
}

/* ========================= */
/* PERSONAL INFO HEADER */
/* ========================= */
.personal-info-container .tab-section-header {
    position: relative;
    overflow: hidden;
    min-height: 72px;
    margin: 0;
    padding: 12px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 2px solid #037d9c;
    border-radius: 15px;
    background:
        linear-gradient(90deg, rgba(0, 0, 0, 0.46), rgba(0, 0, 0, 0.14) 48%, rgba(0, 0, 0, 0.04)),
        radial-gradient(circle at 78% 48%, rgba(3, 125, 156, 0.42), transparent 38%),
        linear-gradient(180deg, rgba(3, 125, 156, 0.38), rgba(4, 22, 32, 0.84));
    box-shadow:
        0 0 16px rgba(3, 125, 156, 0.48),
        0 10px 24px rgba(0, 0, 0, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.14);
    text-align: center;
    box-sizing: border-box;
}

.personal-info-container .tab-section-header::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.08), transparent 42%),
        radial-gradient(circle at 15% 20%, rgba(255, 255, 255, 0.12), transparent 32%);
    pointer-events: none;
}

/* ========================= */
/* PERSONAL INFO HEADER TITLE */
/* ========================= */
.personal-info-container .tab-section-header h2 {
    position: relative;
    z-index: 2;
    margin: 0 0 8px;
    font-size: 28px;
    color: #ffffff;
    font-weight: 800;
    text-align: center;
    line-height: 1.2;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.48);
}

/* ========================= */
/* PERSONAL INFO BODY */
/* ========================= */
.personal-info-container .tab-section-body {
    padding: 14px 20px 20px;
    box-sizing: border-box;
}

/* ========================= */
/* PERSONAL INFO DESCRIPTION */
/* ========================= */
.personal-info-container p {
    font-size: 16px;
    color: #cfefff;
    margin: 0 0 18px;
    text-align: center;
}

.personal-info-description {
    position: relative;
    z-index: 1;
    font-weight: 650;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

/* ========================= */
/* PERSONAL INFO INNER BOX */
/* ========================= */
.personal-info-box {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.01)),
        rgba(8, 12, 16, 0.92);
    border: 1px solid rgba(6, 171, 212, 0.28);
    border-radius: 16px;
    width: 100%;
    max-width: 720px;
    margin: 0 auto;
    position: relative;
    z-index: 12;
    padding: 12px;
    box-shadow:
        0 0 18px rgba(6, 171, 212, 0.14),
        inset 0 1px 0 rgba(255, 255, 255, 0.07);
    box-sizing: border-box;
}

/* ========================= */
/* USER INFO TABLE */
/* ========================= */
.user-info-table {
    display: grid;
    gap: 10px;
    width: 100%;
    border: 0;
    background: transparent;
    border-radius: 14px;
    box-sizing: border-box;
}

/* ========================= */
/* USER INFO ROW */
/* ========================= */
.row-info {
    display: grid;
    grid-template-columns: 40px minmax(120px, 0.42fr) minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border: 1px solid rgba(6, 171, 212, 0.22);
    border-radius: 13px;
    background: rgba(15, 18, 22, 0.78);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.045);
    transition:
        background 0.25s ease,
        border-color 0.25s ease,
        box-shadow 0.25s ease;
}

.row-info:hover {
    border-color: rgba(6, 217, 255, 0.56);
    background:
        linear-gradient(90deg, rgba(6, 171, 212, 0.16), rgba(0, 255, 204, 0.05)),
        rgba(12, 16, 20, 0.96);
    box-shadow:
        0 0 14px rgba(6, 171, 212, 0.16),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

/* ========================= */
/* USER INFO CELL */
/* ========================= */
.row-info > * {
    min-width: 0;
    text-align: left;
}

/* ========================= */
/* ICON CIRCLE */
/* ========================= */
.icon-circle {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 34px;
    height: 34px;
    background: rgba(6, 171, 212, 0.15);
    border: 1px solid rgba(6, 171, 212, 0.50);
    border-radius: 50%;
    transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
    margin: 0;
}

.row-info:hover .icon-circle {
    background: rgba(6, 171, 212, 0.24);
    border-color: rgba(6, 217, 255, 0.72);
}

/* ========================= */
/* ICON */
/* ========================= */
.info-icon {
    font-size: 14px;
    color: #00ccff;
    line-height: 1;
    transition: color 0.25s ease;
}

.row-info:hover .info-icon {
    color: #e8fbff;
}

/* ========================= */
/* LABEL */
/* ========================= */
.info-label {
    font-weight: 800;
    color: #e8fbff;
    text-align: left;
    width: auto;
    margin-left: 0;
    font-size: 13px;
}

/* ========================= */
/* VALUE */
/* ========================= */
.info-value {
    color: #cfefff;
    text-align: left;
    font-size: 14px;
    overflow-wrap: anywhere;
}

/* ========================= */
/* ACTION BUTTONS CONTAINER */
/* ========================= */
.logout-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    margin-top: 16px;
    min-height: auto;
}

/* ========================= */
/* SETTINGS BUTTON */
/* ========================= */
.logout-container .settings-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 12px 0 30px;
    background:
        radial-gradient(circle at 26% 0%, rgba(93, 255, 154, 0.22), transparent 42%),
        linear-gradient(135deg, rgba(54, 168, 102, 0.34), rgba(6, 171, 212, 0.20)),
        rgba(8, 12, 16, 0.94);
    border: 1px solid rgba(93, 255, 154, 0.42);
    color: #eafff2;
    font-size: 11px;
    font-weight: 800;
    border-radius: 999px;
    letter-spacing: 0;
    transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
    cursor: pointer;
    text-decoration: none;
    text-align: left;
    width: auto;
    height: 28px;
    box-sizing: border-box;
    overflow: visible;
    z-index: 100;
    pointer-events: auto;
    min-width: 112px;
    white-space: nowrap;
}

.logout-container .settings-btn:hover {
    border-color: rgba(93, 255, 154, 0.72);
    background:
        radial-gradient(circle at 26% 0%, rgba(93, 255, 154, 0.32), transparent 44%),
        linear-gradient(135deg, rgba(54, 168, 102, 0.46), rgba(6, 171, 212, 0.26)),
        rgba(8, 12, 16, 0.98);
    color: #ffffff;
    box-shadow:
        0 0 12px rgba(54, 168, 102, 0.26),
        0 7px 15px rgba(0, 0, 0, 0.24),
        inset 0 1px 0 rgba(255, 255, 255, 0.12);
    transform: translateY(-1px);
}

.logout-container .settings-btn:before {
    display: none;
}

.logout-container .settings-btn i {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    color: #5dff9a;
    font-size: 0.9em;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logout-container .settings-btn:hover i {
    color: #eafff2;
}

/* ========================= */
/* LOGOUT BUTTON */
/* ========================= */
.logout-container .logout-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 8px 16px 8px 60px;
    background: rgba(20, 20, 20, 0.8);
    border: 1px solid rgba(50, 50, 50, 0.5);
    color: #ffffff;
    font-size: 14px;
    border-radius: 4px;
    transition: background 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    text-align: left;
    width: auto;
    height: 40px;
    box-sizing: border-box;
    overflow: visible;
    z-index: 100;
    pointer-events: auto;
    margin-top: auto;
    min-width: 120px;
    white-space: nowrap;
}

.logout-container .logout-btn:hover {
    background: #037d9c;
    color: #ffffff;
}

.logout-container .logout-btn:before {
    content: '';
    position: absolute;
    left: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    background: #1a1a1a;
    border-radius: 50%;
    transition: background 0.3s ease;
    z-index: 1;
}

.logout-container .logout-btn:hover:before {
    background: #037d9c;
}

.logout-container .logout-btn i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    color: #ffffff;
    font-size: 1em;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logout-container .logout-btn:hover i {
    color: #ffffff;
}

/* ========================= */
/* LIGHT THEME CONTAINER */
/* ========================= */
.light-theme .personal-info-container {
    border-color: rgba(6, 171, 212, 0.44);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.015)),
        linear-gradient(180deg, rgba(6, 171, 212, 0.14), rgba(0, 0, 0, 0.10)),
        rgba(15, 18, 22, 0.98);
}

/* ========================= */
/* LIGHT THEME HEADER */
/* ========================= */
.light-theme .personal-info-container .tab-section-header {
    background:
        linear-gradient(90deg, rgba(0, 0, 0, 0.46), rgba(0, 0, 0, 0.14) 48%, rgba(0, 0, 0, 0.04)),
        radial-gradient(circle at 78% 48%, rgba(3, 125, 156, 0.42), transparent 38%),
        linear-gradient(180deg, rgba(3, 125, 156, 0.38), rgba(4, 22, 32, 0.84));
}

/* ========================= */
/* LIGHT THEME HEADER TITLE */
/* ========================= */
.light-theme .personal-info-container .tab-section-header h2 {
    color: #ffffff;
}

/* ========================= */
/* LIGHT THEME DESCRIPTION */
/* ========================= */
.light-theme .personal-info-container p {
    color: #cfefff;
}

/* ========================= */
/* LIGHT THEME INNER BOX */
/* ========================= */
.light-theme .personal-info-box {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.01)),
        rgba(8, 12, 16, 0.92);
    border-color: rgba(6, 171, 212, 0.28);
}

/* ========================= */
/* LIGHT THEME TABLE */
/* ========================= */
.light-theme .user-info-table {
    background: transparent;
    border: 0;
}

/* ========================= */
/* LIGHT THEME ROW HOVER */
/* ========================= */
.light-theme .row-info:hover {
    background:
        linear-gradient(90deg, rgba(6, 171, 212, 0.16), rgba(0, 255, 204, 0.05)),
        rgba(12, 16, 20, 0.96);
}

/* ========================= */
/* LIGHT THEME ICON CIRCLE */
/* ========================= */
.light-theme .icon-circle {
    background: rgba(6, 171, 212, 0.15);
    border-color: rgba(6, 171, 212, 0.50);
    width: 34px;
}

.light-theme .row-info:hover .icon-circle {
    background: rgba(6, 171, 212, 0.24);
}

/* ========================= */
/* LIGHT THEME ICON */
/* ========================= */
.light-theme .info-icon {
    color: #00ccff;
    font-size: 14px;
}

.light-theme .row-info:hover .info-icon {
    color: #e8fbff;
}

/* ========================= */
/* LIGHT THEME LABEL */
/* ========================= */
.light-theme .info-label {
    color: #e8fbff;
}

/* ========================= */
/* LIGHT THEME VALUE */
/* ========================= */
.light-theme .info-value {
    color: #cfefff;
}

/* ========================= */
/* LIGHT THEME SETTINGS BUTTON */
/* ========================= */
.light-theme .logout-container .settings-btn {
    background:
        radial-gradient(circle at 26% 0%, rgba(93, 255, 154, 0.22), transparent 42%),
        linear-gradient(135deg, rgba(54, 168, 102, 0.34), rgba(6, 171, 212, 0.20)),
        rgba(8, 12, 16, 0.94);
    border-color: rgba(93, 255, 154, 0.42);
    color: #eafff2;
    min-width: 112px;
    white-space: nowrap;
}

.light-theme .logout-container .settings-btn:hover {
    background:
        radial-gradient(circle at 26% 0%, rgba(93, 255, 154, 0.32), transparent 44%),
        linear-gradient(135deg, rgba(54, 168, 102, 0.46), rgba(6, 171, 212, 0.26)),
        rgba(8, 12, 16, 0.98);
    color: #ffffff;
}

.light-theme .logout-container .settings-btn:before {
    display: none;
}

.light-theme .logout-container .settings-btn i {
    color: #5dff9a;
}

.light-theme .logout-container .settings-btn:hover i {
    color: #ffffff;
}

/* ========================= */
/* LIGHT THEME LOGOUT BUTTON */
/* ========================= */
.light-theme .logout-container .logout-btn {
    background: rgba(230, 230, 230, 0.8);
    border: 1px solid rgba(150, 150, 150, 0.5);
    color: #000000;
    min-width: 120px;
    white-space: nowrap;
}

.light-theme .logout-container .logout-btn:hover {
    background: #037d9c;
    color: #ffffff;
}

.light-theme .logout-container .logout-btn:before {
    background: #d8d8d8;
}

.light-theme .logout-container .logout-btn:hover:before {
    background: #037d9c;
}

.light-theme .logout-container .logout-btn i {
    color: #000000;
}

.light-theme .logout-container .logout-btn:hover i {
    color: #ffffff;
}

@media (max-width: 640px) {
    .personal-info-container .tab-section-header {
        min-height: 68px;
        padding: 14px 16px;
    }

    .personal-info-container .tab-section-body {
        padding: 14px;
    }

    .personal-info-box {
        padding: 10px;
    }

    .row-info {
        grid-template-columns: 36px minmax(0, 1fr);
        gap: 6px 10px;
        padding: 11px;
    }

    .icon-circle {
        grid-row: span 2;
        width: 32px;
        height: 32px;
    }

    .info-label,
    .info-value {
        text-align: left;
    }
}
