body { font-family: sans-serif; padding: 20px; background-color: #f4f7f9; }
.dashboard-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; }
.stat-box { background: white; padding: 15px 30px; border-radius: 8px; box-shadow: 0 2px 4px rgba(0,0,0,0.05); text-align: center; }
.stat-box h3 { margin-top: 0; color: #0056b3; font-size: 1.2em; }
.profile-table { width: 100%; border-collapse: collapse; margin-top: 20px; }
.profile-table th, .profile-table td { border: 1px solid #ddd; padding: 10px; text-align: left; font-size: 0.9em; }
.collab-control-panel { background: #fff; padding: 20px; border-radius: 8px; margin-top: 30px; box-shadow: 0 4px 8px rgba(0,0,0,0.1); }
#product-control-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; margin-top: 20px; }
.control-group { border: 1px solid #e0e0e0; padding: 10px; border-radius: 4px; }
.control-group label { font-weight: bold; display: block; margin-bottom: 5px; color: #333; }
.control-group button { background-color: #4CAF50; color: white; border: none; padding: 8px 12px; border-radius: 4px; cursor: pointer; transition: background-color 0.3s; }
.control-group button:hover { background-color: #45a049; }
.control-group span { margin-left: 10px; font-style: italic; color: #777; }
#email-modal { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); justify-content: center; align-items: center; }
#email-modal.active { display: flex; }

/* Ensure the overall modal overlay works */
.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1000; /* Sit on top of everything else */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto; 
    background-color: rgba(0,0,0,0.4); /* Black w/ opacity - The grey overlay */
}

/* Ensure the white content box is visible and centered */
.modal-content {
    background-color: #fefefe; /* White background for the box */
    margin: 5% auto; /* 5% from the top and horizontally centered */
    padding: 30px;
    border: 1px solid #888;
    width: 70%; /* Adjust size as needed */
    max-width: 800px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

/* Styling for the content injected by JavaScript */
.detail-section h3, .qualitative-section h3 {
    color: #0056b3;
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 5px;
    margin-top: 20px;
}
.summary-box {
    background: #f9f9f9;
    padding: 15px;
    border-left: 5px solid #007bff;
    margin: 10px 0;
}
.close-button {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}
.close-button:hover,
.close-button:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}
#team-summary {
    display: flex;
    gap: 20px;
}
