/* Profile Page Modern Design */

/* Profile Card Container */
.profile-card {
    background: linear-gradient(145deg, rgba(30, 30, 40, 0.95) 0%, rgba(20, 20, 30, 0.98) 100%);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3),
                0 0 0 1px rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.profile-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4),
                0 0 0 1px rgba(0, 201, 255, 0.3);
}

/* Profile Card Header */
.profile-card-header {
    background: linear-gradient(135deg, #1696ff 0%, #7ac2ff 50%, #00c9ff 100%);
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: bold;
    color: #fff;
    font-size: 16px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
}

.profile-card-header i {
    font-size: 20px;
    color: #fff;
}

/* Profile Card Body */
.profile-card-body {
    padding: 20px;
}

/* Profile Field */
.profile-field {
    margin-bottom: 20px;
}

.profile-field:last-child {
    margin-bottom: 0;
}

/* Profile Label */
.profile-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 600;
    color: #00a8ff;
    margin-bottom: 8px;
}

.profile-label i {
    font-size: 16px;
    width: 20px;
    text-align: center;
    color: #00c9ff;
}

.profile-label span {
    color: #fff;
}

/* Profile Input Fields */
.profile-input,
.profile-select {
    width: 100%;
    padding: 12px 16px;
    background: rgba(0, 0, 0, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: #fff;
    font-size: 15px;
    transition: all 0.3s ease;
    outline: none;
}

.profile-input:focus,
.profile-select:focus {
    border-color: #00a8ff;
    background: rgba(0, 0, 0, 0.6);
    box-shadow: 0 0 0 3px rgba(0, 168, 255, 0.2);
}

.profile-input:disabled {
    background: rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.5);
    cursor: not-allowed;
}

.profile-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

/* Profile Select Dropdown */
.profile-select {
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2300c9ff' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    appearance: none;
    -webkit-appearance: none;
    padding-right: 40px;
}

.profile-select option {
    background: #1a1a2e;
    color: #fff;
    padding: 10px;
}

/* Profile Hint */
.profile-hint {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    font-style: italic;
}

/* Bank Display with Icon */
.bank-display {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
}

.bank-icon {
    width: 40px;
    height: 40px;
    object-fit: contain;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    padding: 6px;
    flex-shrink: 0;
}

.bank-display .profile-input {
    flex: 1;
}

/* Profile Actions */
.profile-actions {
    padding: 0 12px 12px 12px;
}

.btn-profile-save {
    width: 100%;
    padding: 16px;
    background: linear-gradient(to bottom, #1696ff 0%, #7ac2ff 32%, #ffffff 57%, #7ac2ff 77%, #1696ff 100%);
    border: 2px solid #1696ff;
    border-radius: 12px;
    color: #000;
    font-weight: bold;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(22, 150, 255, 0.3);
}

.btn-profile-save:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(22, 150, 255, 0.5);
}

.btn-profile-save:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(22, 150, 255, 0.4);
}

.btn-profile-save i {
    font-size: 18px;
}

/* Responsive Design */
@media (max-width: 450px) {
    .profile-card-header {
        padding: 12px 16px;
        font-size: 15px;
    }

    .profile-card-header i {
        font-size: 18px;
    }

    .profile-card-body {
        padding: 16px;
    }

    .profile-field {
        margin-bottom: 16px;
    }

    .profile-label {
        font-size: 13px;
    }

    .profile-label i {
        font-size: 15px;
        width: 18px;
    }

    .profile-input,
    .profile-select {
        padding: 10px 14px;
        font-size: 14px;
    }

    .bank-icon {
        width: 35px;
        height: 35px;
        padding: 5px;
    }

    .btn-profile-save {
        padding: 14px;
        font-size: 15px;
    }
}

/* Input validation states */
.profile-input:invalid:not(:placeholder-shown) {
    border-color: #dc3545;
}

.profile-input:valid:not(:placeholder-shown):not(:disabled) {
    border-color: #28a745;
}

/* Animation for form submission */
@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.02);
    }
}

.profile-card.saving {
    animation: pulse 1s infinite;
}

/* Custom scrollbar for select */
.profile-select::-webkit-scrollbar {
    width: 8px;
}

.profile-select::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
}

.profile-select::-webkit-scrollbar-thumb {
    background: #00a8ff;
    border-radius: 4px;
}

.profile-select::-webkit-scrollbar-thumb:hover {
    background: #00c9ff;
}

/* Number input - remove spinners */
.profile-input[type="number"]::-webkit-inner-spin-button,
.profile-input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.profile-input[type="number"] {
    -moz-appearance: textfield;
}

/* Page title styling */
.title {
    color: #fff;
    font-weight: bold;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    letter-spacing: 0.5px;
}
