.sidebar {
    background-color: #f8f9fa;
    border-right: 1px solid #dee2e6;
    min-height: 100vh;
    padding: 20px;
}

.search-bar {
    margin-bottom: 20px;
}

.icon-buttons button {
    margin-right: 10px;
}

/* Add more CSS here as needed to match the screenshot */

.contact-card {
    background-color: #fff;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    margin: 20px;
    padding: 20px;
}

.contact-info p {
    display: flex;
    align-items: center;
    margin: 10px 0;
}

.contact-info i {
    margin-right: 10px;
}

.attachments, .rating {
    border-top: 1px solid #eee;
    padding-top: 10px;
    margin-top: 10px;
}

.stars {
    color: #ffc107; /* Gold color for the stars */
}

.private-note textarea {
    width: 100%;
    margin-top: 10px;
}

.tags {
    display: flex;
    align-items: center;
}

.tags .views p {
    background-color: #eee;
    padding: 5px;
    margin-right: 5px;
    cursor: pointer;
}

.contact-header {
    margin-bottom: 30px;
}

.contact-photo {
    width: 100px;
    height: 100px;
    background-color: #f0f0f0; /* Placeholder color, replace with actual photo */
    border-radius: 50%;
    margin-bottom: 10px;
    /* Add styles for the photo, such as border, etc. */
}

h3 {
    margin-top: 0;
}

/* Continue with the rest of your CSS for other elements... */
.contact-header {
    /* This will center the header contents vertically and horizontally */
    margin-bottom: 30px;
}

.contact-photo-container {
    /* Relative position for absolute children */
    position: relative;
}

.contact-photo {
    width: 100px;
    height: 100px;
    background-color: #f0f0f0; /* Placeholder color, replace with actual photo */
    border-radius: 50%;
    border: 2px solid #000; /* Circle border */
    position: relative;
    /* Additional photo styles here */
}

.initials {
    font-size: 2rem; /* Large initials */
    color: #000; /* Initials color */
}

.star-icon {
    bottom: 0;
    right: 0;
    transform: translate(50%, 50%);
    /* Style your star icon appropriately */
}

.contact-actions {
    /* This ensures that the actions are to the right */
    position: absolute;
    right: 0;
    top: 0;
}

.contact-card{
  box-shadow:none;
}

/* Style for buttons if needed */
.btn-sm {
    /* Add custom styling for small buttons if necessary */
}

/* Continue with the rest of your CSS for other elements... */

.sidebar {
    /* Existing sidebar styles... */
}

.search-area {
    /* Existing search area styles... */
}

.contacts-scrollable {
    max-height: 500px; /* Adjust based on your needs */
    overflow-y: auto;
}

.alphabetical-index {
    position: absolute;
    right: 10px; /* Adjust the spacing to match your design */
    top: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.alphabetical-index a {
    padding: 2px;
    margin: 1px 0;
    color: #007bff; /* Bootstrap primary color for links */
    text-decoration: none;
    font-size:10px;
    font-weight:bold;
}

.alphabetical-index a:hover {
    text-decoration: underline;
}

/* Ensure the main content is not covered by the alphabetical index */
.main-content {
    padding-left: 0;
}
