﻿/* profilecss.css */

/* Overall container for the page */
.PUContainer {
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f9fafb;
    padding: 1.5rem; /* Reduced from 2rem */
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    width: 70%;
    margin:auto;
}

/* Header styling */
.PUHeader {
    margin-bottom: 1rem;
    text-align: center;
}

    .PUHeader h2 {
        margin: 0;
        font-size: 1.6rem; /* Slightly smaller */
        color: #2563eb;
        font-weight: 600;
    }

/* Profile card / panel wrapper */
.PUProfileCard {
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.08);
    margin-bottom: 1rem;
}

    .PUProfileCard .card-body {
        padding: 1rem; /* Reduced from 1.5rem */
    }

/* Profile image container and styling */
.PUImageContainer {
    width: 90px; /* Reduced from 120px */
    height: 90px; /* Reduced from 120px */
    margin: 0 auto;
    position: relative;
}

.PUProfileImage {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: 4px solid #e2e8f0; /* Slightly thicker border */
    border-radius: 50%;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    .PUProfileImage:hover {
        transform: scale(1.05);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    }

/* Button-like label for changing profile picture */
.PUImageButton {
    display: inline-block;
    background-color: #2563eb;
    color: #ffffff;
    font-weight: 500;
    padding: 0.45rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.85rem;
    margin-top: 0.5rem;
}

    .PUImageButton:hover {
        background-color: #1d4ed8;
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
    }

    /* Example: Add icon to the label if you wish */
    .PUImageButton i {
        margin-right: 0.4rem;
    }

/* Hide the actual file input */
.d-none {
    display: none !important;
}

/* Tabs (Profile, Email, Password) */
.PUTabNav {
    border-bottom: none;
}

.PUTabItem {
    margin-right: 0.5rem;
}

.PUTabLink {
    border: none;
    background-color: transparent;
    color: #6b7280;
    padding: 0.5rem 1rem;
    border-radius: 6px 6px 0 0;
    font-weight: 500;
    transition: background-color 0.2s ease, color 0.2s ease;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
}

    .PUTabLink i {
        margin-right: 0.4rem;
    }

    .PUTabLink:hover {
        background-color: #f1f5f9;
        color: #374151;
    }

    .PUTabLink.active {
        background-color: #ffffff;
        color: #2563eb;
        border-bottom: 3px solid #2563eb;
    }

/* Card header for tabs */
.PUProfileCard .card-header {
    border-bottom: none;
    background-color: transparent;
    padding: 0.5rem 1rem 0;
}

/* Status messages */
.PUStatusError,
.PUStatusSuccess {
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
}

.PUStatusError {
    background-color: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}

.PUStatusSuccess {
    background-color: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

/* Form styling */
.PUFormGroup {
    display: flex;
    flex-direction: column;
    margin-bottom: 1rem;
}

.PUFormLabel {
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #374151;
}

.PUFormControl {
    border: 1px solid #d1d5db;
    border-radius: 6px;
    padding: 0.45rem 0.75rem;
    transition: border-color 0.2s, box-shadow 0.2s;
    font-size: 0.9rem;
}

    .PUFormControl:focus {
        outline: none;
        border-color: #2563eb;
        box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
    }

/* InputSelect specific styling */
.PUSelectControl {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg fill='%23374151' height='24' viewBox='0 0 24 24' width='24'%3E%3Cpath d='M7 10l5 5 5-5z'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 1rem 1rem;
    cursor: pointer;
}

/* Buttons */
.PUButton {
    border: none;
    border-radius: 6px;
    padding: 0.5rem 1rem;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.2s ease, transform 0.2s ease;
    display: inline-flex;
    align-items: center;
    font-size: 0.9rem;
}

    .PUButton:hover {
        transform: translateY(-1px);
    }

.PUButtonPrimary {
    background-color: #2563eb;
    color: #ffffff;
}

    .PUButtonPrimary:hover {
        background-color: #1d4ed8;
    }

/* Responsive adjustments */
@media (max-width: 768px) {
    .PUContainer {
        padding: 1rem;
    }

    .PUHeader h2 {
        font-size: 1.4rem;
    }

    .PUImageContainer {
        width: 70px;
        height: 70px;
    }

    .PUTabLink {
        font-size: 0.8rem;
        padding: 0.4rem 0.6rem;
    }

    .PUFormControl {
        font-size: 0.8rem;
    }
}
