/* Personal Data Modal Styles */
:root {
    --modal-background: #ffffff;
    --modal-border: #d2d2d7;
    --modal-shadow: rgba(0, 0, 0, 0.1);
    --primary-text: #1d1d1f;
    --secondary-text: #86868b;
    --input-border: #d2d2d7;
    --input-border-focus: #0071e3;
    --button-primary: #0071e3;
    --button-primary-hover: #0077ed;
    --font-family: "SF Pro Display", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
}

/* Modal Overlay */
.personal-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.personal-modal-overlay.show {
    opacity: 1;
    visibility: visible;
}

/* Modal Container */
.personal-modal {
    width: 690px;
    height: 500px;
    background: var(--modal-background);
    border-radius: 20px;
    box-shadow: 0 8px 40px var(--modal-shadow);
    position: relative;
    font-family: var(--font-family);
    transform: scale(0.8) translateY(-20px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.personal-modal-overlay.show .personal-modal {
    transform: scale(1) translateY(0);
}

/* Modal Header */
.personal-modal-header {
    padding: 24px 24px 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: none;
    flex-shrink: 0;
}

.personal-modal-title {
    font-size: 19px;
    font-weight: 600;
    color: var(--primary-text);
    margin: 0;
    font-family: var(--font-family);
}

.personal-modal-close {
    width: 32px;
    height: 32px;
    border: none;
    background: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s ease;
    padding: 0;
}

.personal-modal-close:hover {
    background-color: #f5f5f7;
}

.personal-modal-close img {
    width: 16px;
    height: 16px;
    opacity: 0.7;
}

/* Modal Content */
.personal-modal-content {
    padding: 32px 24px 24px 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow-y: auto;
}

/* User Icon */
.personal-modal-icon {
    width: 80px;
    height: 80px;
    background: #0071e3;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 32px;
    flex-shrink: 0;
}

.personal-modal-icon img {
    width: 40px;
    height: 40px;
    filter: brightness(0) invert(1);
}

/* Form Styles (übernommen von register.css) */
.personal-modal-form {
    width: 100%;
    max-width: 400px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.personal-form-group {
    position: relative;
}

.personal-form-input {
    width: 100%;
    padding: 16px;
    font-size: 17px;
    line-height: 1.47;
    border: 1px solid var(--input-border);
    border-radius: 12px;
    background-color: var(--modal-background);
    color: var(--primary-text);
    font-family: var(--font-family);
    transition: border-color 0.2s ease;
    box-sizing: border-box;
    font-weight: 400;
}

.personal-form-input:focus {
    outline: none;
    border-color: var(--input-border-focus);
    box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.15);
}

.personal-form-input::placeholder {
    color: var(--secondary-text);
    font-weight: 400;
}

/* Button Container */
.personal-button-container {
    display: flex;
    gap: 12px;
    margin-top: 16px;
    width: 100%;
}

/* Cancel Button */
.personal-cancel-button {
    width: 180px;
    height: 36px;
    border: 1px solid var(--input-border);
    background-color: transparent;
    color: var(--primary-text);
    border-radius: 18px; /* Capsule shape (height/2) */
    font-size: 17px;
    font-weight: 400;
    font-family: var(--font-family);
    cursor: pointer;
    transition: background-color 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.personal-cancel-button:hover {
    background-color: #f5f5f7;
}

/* Save Button */
.personal-save-button {
    width: 180px;
    height: 36px;
    background-color: var(--button-primary);
    color: white;
    border: none;
    border-radius: 18px; /* Capsule shape (height/2) */
    font-size: 17px;
    font-weight: 400;
    font-family: var(--font-family);
    cursor: pointer;
    transition: background-color 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.personal-save-button:hover {
    background-color: var(--button-primary-hover);
}

.personal-save-button:active {
    transform: translateY(1px);
}

.personal-save-button:disabled {
    background-color: var(--secondary-text);
    cursor: not-allowed;
    opacity: 0.6;
}

/* Responsive Design */
@media (max-width: 768px) {
    .personal-modal {
        width: 90vw;
        height: 80vh;
        max-width: 500px;
        margin: 20px;
    }
    
    .personal-modal-content {
        padding: 24px 20px 20px 20px;
    }
    
    .personal-modal-icon {
        width: 70px;
        height: 70px;
        margin-bottom: 24px;
    }
    
    .personal-modal-icon img {
        width: 35px;
        height: 35px;
    }
    
    .personal-form-input {
        padding: 14px;
        font-size: 16px;
    }
    
    .personal-button-container {
        flex-direction: column;
        gap: 8px;
    }
    
    .personal-cancel-button,
    .personal-save-button {
        width: 100%;
        height: 40px;
        font-size: 16px;
        border-radius: 20px;
    }
}

@media (max-width: 480px) {
    .personal-modal {
        width: 95vw;
        height: 85vh;
        border-radius: 16px;
    }
    
    .personal-modal-header {
        padding: 20px 20px 0 20px;
    }
    
    .personal-modal-title {
        font-size: 18px;
    }
    
    .personal-modal-content {
        padding: 20px 16px 16px 16px;
    }
    
    .personal-button-container {
        flex-direction: column;
        gap: 8px;
    }
    
    .personal-cancel-button,
    .personal-save-button {
        width: 100%;
        height: 44px;
        font-size: 17px;
        border-radius: 22px;
    }
}

/* Animation for form fields */
.personal-form-group {
    animation: slideInUp 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    animation-fill-mode: both;
}

.personal-form-group:nth-child(1) { animation-delay: 0.1s; }
.personal-form-group:nth-child(2) { animation-delay: 0.2s; }

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
} 