* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-weight: normal;
    -webkit-tap-highlight-color: rgba(0,0,0,0.1);
}

html, body {
    height: 100%;
}

body {
    background-color: white;
    color: #333;
    font-size: 17px;
    line-height: 1.5;
    display: flex;
    flex-direction: column;
    animation: pageSlideIn 0.3s ease-out;
}

.header {
    background-color: #306692;
    padding: 15px 15px 20px;
    position: relative;
    flex-shrink: 0;
}

.back-arrow {
    position: absolute;
    left: 20px;
    top: 20px;
    width: 40px;
    height: 40px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.back-arrow:active {
    background-color: rgba(255,255,255,0.2);
    transform: scale(0.95);
}

.back-arrow::before {
    content: "";
    position: absolute;
    left: 12px;
    top: 50%;
    width: 15px;
    height: 15px;
    border-left: 3px solid white;
    border-top: 3px solid white;
    transform: translateY(-50%) rotate(-45deg);
}

.header h1 {
    color: white;
    font-size: 18px;
    text-align: center;
    margin-bottom: 20px;
    font-weight: normal;
}

.profile-image-container {
    position: relative;
    width: 86px;
    height: 86px;
    margin: 0 auto 15px;
}

.profile-image {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: #fff;
    border: 3px solid white;
    background-size: cover;
    background-position: center;
    transition: all 0.3s ease;
    position: relative;
    cursor: pointer;
    background-image: url('../images/default-avatar.png');
}

.profile-image:active {
    transform: scale(0.9);
}

.profile-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    opacity: 0;
    transition: opacity 0.3s, transform 0.3s;
    transform: scale(0.8);
}

.profile-image:active::after {
    opacity: 1;
    transform: scale(1.1);
}

.camera-icon {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 24px;
    height: 24px;
    background-color: #306692;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
}

.camera-icon::before {
    content: "";
    width: 14px;
    height: 12px;
    background-color: white;
    border-radius: 2px;
    position: relative;
}

.camera-icon::after {
    content: "";
    position: absolute;
    top: 5px;
    right: 5px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: white;
    border: 1px solid #306692;
}

.content {
    background-color: white;
    padding: 15px 15px 30px;
    flex-grow: 1;
    overflow-y: auto;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    transition: all 0.2s ease;
}

.info-item:active {
    background-color: #f5f5f5;
    transform: scale(0.98);
}

.info-item:not(:last-child) {
    border-bottom: 1px solid #f0f0f0;
}

.info-label {
    color: #666;
}

.info-value {
    color: #333;
    display: flex;
    align-items: center;
}

.info-input {
    border: none;
    text-align: right;
    font-size: 17px;
    color: #333;
    background: transparent;
    padding: 5px 0;
    outline: none;
}

.info-arrow {
    position: relative;
    width: 20px;
    height: 20px;
    margin-left: 10px;
    transition: transform 0.2s ease;
}

.info-item:active .info-arrow {
    transform: translateX(3px);
}

.info-arrow::before {
    content: "";
    position: absolute;
    right: 0;
    top: 50%;
    width: 10px;
    height: 10px;
    border-right: 2px solid #999;
    border-top: 2px solid #999;
    transform: translateY(-50%) rotate(45deg);
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 100;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: white;
    width: 80%;
    max-width: 300px;
    border-radius: 10px;
    padding: 20px;
    animation: modalFadeIn 0.3s;
    transform: scale(1);
    transition: transform 0.2s ease;
}

.modal-content:active {
    transform: scale(0.98);
}

.modal-title {
    font-size: 18px;
    margin-bottom: 15px;
    text-align: center;
}

.modal-message {
    margin-bottom: 20px;
    color: #666;
}

.modal-buttons {
    display: flex;
    justify-content: space-between;
}

.modal-button {
    flex: 1;
    padding: 10px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.modal-button:active {
    transform: scale(0.95);
    opacity: 0.9;
}

.modal-cancel {
    background-color: #f0f0f0;
    margin-right: 10px;
}

.modal-confirm {
    background-color: #306692;
    color: white;
}

.toast {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 15px 25px;
    border-radius: 5px;
    z-index: 101;
    display: none;
    animation: toastFadeIn 0.3s;
}

@keyframes modalFadeIn {
    from { opacity: 0; transform: translateY(-20px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes toastFadeIn {
    from { opacity: 0; transform: translate(-50%, -40%) scale(0.9); }
    to { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

@keyframes pageSlideIn {
    from { transform: translateX(20px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes profileClick {
    0% { transform: scale(1); }
    50% { transform: scale(0.9); }
    100% { transform: scale(1); }
}