.profile-container {
    width: 100%;
    max-width: 950px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    overflow: hidden;
}

.header {
    background-color: #007bff;
    color: white;
    padding: 10px 30px;
    font-size: 1.6em;
    font-weight: 500;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-link {
    transition: color 180ms ease, background-color 180ms ease, transform 120ms ease;
    border-radius: 0.5rem;
    padding: 0.5rem 0.9rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #4b5563; /* gray-600 */
}

.nav-link.active {
    color: #ffffff;
    background-color: #4f46e5; /* Indigo 600 */
    box-shadow: 0 10px 30px rgba(79, 70, 229, 0.2); /* Deeper shadow */
    position: relative;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    left: 12px;
    right: 12px;
    height: 3px;
    bottom: -10px;
    border-radius: 9999px;
    /* Softer, more professional gradient */
    background: linear-gradient(90deg, #6366f1, #4f46e5);
    box-shadow: 0 6px 16px rgba(79,70,229,0.15);
}

/* Enhanced Hover State: Softer hover color */
.nav-link:not(.active):hover {
    color: #4f46e5; /* Indigo 600 */
    background-color: #f3f4f6; /* Gray 100 */
    transform: translateY(-1px);
}

.dropdown-menu { z-index: 60; transform-origin: top right; }

.input-group label {
    font-size: 0.8rem;
    font-weight: 600;
    color: #4b5563;
    margin-bottom: 4px;
    display: block;
}
.input-group select, .input-group input {
    width: 90%;
    padding: 8px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    background-color: #f9fafb;
    transition: border-color 0.15s ease-in-out;
}
.input-group select:focus, .input-group input:focus {
    outline: none;
    border-color: #4f46e5;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.2);
}

.open-bid-button {
    color: white; /* Text color */
    background-color: #ffc107; /* Green background for the button */
    padding: 8px 15px; /* Spacing inside the button */
    text-decoration: none; /* Removes the underline from the hyperlink */
    border-radius: 5px; /* Rounded corners */
    font-size: 0.7em; /* Make the button text slightly smaller than the header text */
    font-weight: 600;
    transition: background-color 0.3s; /* Smooth transition for hover effect */
}

.open-bid-button:hover {
    background-color: #ffc912;
}

.profile-body {
    display: grid;
    grid-template-columns: 1fr 2.5fr;
    padding: 30px;
    gap: 40px;
}

.left-column {
    text-align: center;
    padding-right: 20px;
    border-right: 1px solid #f0f0f0;
}

.photo-wrapper {
    width: 180px;
    height: 180px;
    margin: 0 auto 15px;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #ced4da;
    background-color: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.photo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.team-name {
    font-size: 1.8em;
    color: #333;
    margin: 10px 0 5px;
}

.italic-gray {
    color: #6c757d;
    font-style: italic;
}

.right-column {
    padding-left: 20px;
}

.section-title {
    font-size: 1.3em;
    color: #333;
    margin-bottom: 15px;
    border-bottom: 2px solid #007bff;
    padding-bottom: 5px;
    font-weight: 600;
}

.details-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 25px;
}

.details-table th, .details-table td {
    padding: 10px 0;
    text-align: left;
    border-bottom: 1px dashed #e9ecef;
}

.details-table th {
    color: #495057;
    width: 30%;
    font-weight: 500;
}

.details-table tr:last-child th, .details-table tr:last-child td {
    border-bottom: none;
}

.introduction-block {
    padding: 15px;
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 5px;
    line-height: 1.6;
    color: #343a40;
}

.profile-footer {
    padding: 20px 30px;
    border-top: 1px solid #e0e0e0;
}

.profile-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-link {
    font-size: 1em;
    padding: 8px 15px;
    border-radius: 5px;
}

.nav-link.prev {
    color: #007bff;
    border: 1px solid #007bff;
}

.nav-link.next {
    color: white;
    background-color: #007bff;
}

.nav-link:hover {
    text-decoration: none;
    opacity: 0.9;
}

.back-to-roster {
    text-align: center;
    flex-grow: 1; /* Pushes the nav links to the sides */
}

.container {
    max-width: 100%;
    margin: auto;
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

h1 {
    color: #333;
    text-align: center;
    margin-bottom: 25px;
    border-bottom: 2px solid #007bff;
    padding-bottom: 10px;
}

a {
    text-decoration: none;
    color: #0056b3;
}

a:hover {
    text-decoration: underline;
    color: #004085;
}

.small-text {
    font-size: 0.8em;
    color: #6c757d;
}

.profile-container, .main-content-wrapper {
    width: 100%;
    max-width: 100%;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    overflow: hidden;
    margin-top: 10px;
    margin-bottom: 40px;
}

.input-field {
    padding: 5px;
    margin-right: 10px;
    border: 1px solid #ccc;
    border-radius: 3px;
    font-size: 14px;
}

.small-button {
    background-color: #f0f0f0;
    color: #333;
    border: 1px solid #ccc;
    padding: 5px 10px;
    margin: 2px;
    cursor: pointer;
    border-radius: 3px;
    font-size: 14px;
}
            /* Remove links underline / colors for consistent printing */
            a { color: #000000; text-decoration: none; }

            /* ensure images are not scaled beyond their container on print */
            img { max-width: 100%; height: auto !important; }


@keyframes pulse-yellow {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 193, 7, 0.4);
        background-color: #fff;
    }
    50% {
        box-shadow: 0 0 20px 10px rgba(255, 193, 7, 0.8);
        background-color: #FFC107; /* Green */
        color: white;
        transform: scale(1.02);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 193, 7, 0);
        background-color: #fff;
    }
}

.new-bid-pulse {
    animation: pulse-yellow 2s ease-in-out forwards;
    border-radius: 10px;
}
/* Modal Overlay - The dark background */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent black */
    display: none; /* Hidden by default */
    justify-content: center;
    align-items: center;
    z-index: 1000; /* Sit on top of everything */
    opacity: 0;
    transition: opacity 0.2s ease-in-out;
}

/* When active, show it */
.modal-overlay.active {
    opacity: 1;
}

/* The White Box */
.modal-content {
    background: white;
    padding: 25px;
    border-radius: 8px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    text-align: center;
    transform: scale(0.95);
    transition: transform 0.2s ease-in-out;
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

#modal-title {
    margin-top: 0;
    color: #333;
    font-size: 1.25rem;
}

#modal-message {
    margin: 15px 0 25px 0;
    color: #666;
    font-size: 1rem;
    line-height: 1.5;
}

/* Button Container */
.modal-actions {
    display: flex;
    justify-content: flex-end; /* Align right */
    gap: 10px;
}

/* General Button Styles */
.modal-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    font-size: 0.9rem;
}

/* Specific Colors */
.modal-btn.cancel {
    background-color: #f0f0f0;
    color: #333;
}

.modal-btn.cancel:hover {
    background-color: #e0e0e0;
}

.modal-btn.confirm {
    background-color: #007bff; /* Blue */
    color: white;
}

.modal-btn.confirm:hover {
    background-color: #0056b3;
}