/* Base styles */
body {
    background-color: #f0f6ff;
    color: #28384d;
}

/* Card styles */
.card-one {
    position: relative;
    width: 300px;
    background: #fff;
    box-shadow: 0 10px 7px -5px rgba(0, 0, 0, 0.4);
}

.card {
    margin-bottom: 35px;
    box-shadow: 0 10px 20px 0 rgba(26, 44, 57, 0.14);
    border: none;
}

/* Social profile styles */
.social-profile {
    color: #fff;
    position: relative;
    margin-bottom: 150px;
}

.follower-wrapper li {
    list-style-type: none;
    color: #fff;
    display: inline-block;
    float: left;
    margin-right: 20px;
}

.social-profile a {
    color: #fff;
}

.social-profile {
    position: relative;
    margin-bottom: 150px;
}

.social-profile .user-profile {
    position: absolute;
    bottom: -75px;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    left: 50px;
}

.social-nav {
    position: absolute;
    bottom: 0;
}

.social-prof {
    color: #333;
    text-align: center;
}

.social-prof .wrapper {
    width: 70%;
    margin: auto;
    margin-top: -100px;
}

.social-prof img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    margin-bottom: 20px;
    border: 5px solid #fff;
    /*border: 10px solid #70b5e6ee;*/
}

.social-prof h3 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 0;
}

.social-prof p {
    font-size: 18px;
}

.social-prof .nav-tabs {
    border: none;
}

.card .nav > li {
    position: relative;
    display: block;
}

.card .nav > li > a {
    position: relative;
    display: block;
    padding: 10px 15px;
    font-weight: 300;
    border-radius: 4px;
}

.card .nav > li > a:focus,
.card .nav > li > a:hover {
    text-decoration: none;
    background-color: #eee;
}

.card .s-nav > li > a.active {
    text-decoration: none;
    background-color: #3afe;
    color: #fff;
}

.text-blue {
    color: #3afe;
}

ul.friend-list {
    margin: 0;
    padding: 0;
}

ul.friend-list li {
    list-style-type: none;
    display: flex;
    align-items: center;
}

ul.friend-list li:hover {
    background: rgba(0, 0, 0, 0.1);
    cursor: pointer;
}

ul.friend-list .left img {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    margin-right: 20px;
}

ul.friend-list li {
    padding: 10px;
}

ul.friend-list .right h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 0;
}

ul.friend-list .right p {
    font-size: 11px;
    color: #6c757d;
    margin: 0;
}

.social-timeline-card .dropdown-toggle::after {
    display: none;
}

.info-card h4 {
    font-size: 15px;
}

.info-card h2 {
    font-size: 18px;
    margin-bottom: 20px;
}

.social-about .social-info {
    font-size: 16px;
    margin-bottom: 20px;
}

.social-about p {
    margin-bottom: 20px;
}

.info-card i {
    color: #3afe;
}

.card-one {
    position: relative;
    width: 300px;
    background: #fff;
    box-shadow: 0 10px 7px -5px rgba(0, 0, 0, 0.4);
}

.card-one .header {
    position: relative;
    width: 100%;
    height: 60px;
    background-color: #3afe;
}

.card-one .header::before,
.card-one .header::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background: inherit;
}

.card-one .header::before {
    -webkit-transform: skewY(-8deg);
    transform: skewY(-8deg);
    -webkit-transform-origin: 100% 100%;
    transform-origin: 100% 100%;
}

.card-one .header::after {
    -webkit-transform: skewY(8deg);
    transform: skewY(8deg);
    -webkit-transform-origin: 0 100%;
    transform-origin: 0 100%;
}

.card-one .header .avatar {
    position: absolute;
    left: 50%;
    top: 30px;
    margin-left: -50px;
    z-index: 5;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    background: #ccc;
    border: 3px solid #fff;
}

.card-one .header .avatar img {
    position: absolute;
    top: 50%;
    left: 50%;
    -webkit-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    width: 100px;
    height: auto;
}

.card-one h3 {
    position: relative;
    margin: 80px 0 30px;
    text-align: center;
}

.card-one h3::after {
    content: "";
    position: absolute;
    bottom: -15px;
    left: 50%;
    margin-left: -15px;
    width: 30px;
    height: 1px;
    background: #000;
}

.card-one .desc {
    padding: 0 1rem 2rem;
    text-align: center;
    line-height: 1.5;
    color: #777;
}

.card-one .contacts {
    width: 200px;
    max-width: 100%;
    margin: 0 auto 3rem;
}

.card-one .contacts a {
    display: block;
    width: 33.333333%;
    float: left;
    text-align: center;
    color: #c8c;
}

.card-one .contacts a:hover {
    color: #333;
}

.card-one .contacts a:hover .fa::before {
    color: #fff;
}

.card-one .contacts a:hover .fa::after {
    width: 100%;
    height: 100%;
}

.card-one .contacts a .fa {
    position: relative;
    width: 40px;
    height: 40px;
    line-height: 39px;
    overflow: hidden;
    text-align: center;
    font-size: 1.3em;
}

.card-one .contacts a .fa:before {
    position: relative;
    z-index: 1;
}

.card-one .contacts a .fa::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    -webkit-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    background: #c8c;
    transition: width 0.3s, height 0.3s;
}

.card-one .contacts a:last-of-type .fa {
    line-height: 36px;
}

.card-one .footer {
    position: relative;
    padding: 1rem;
    background-color: #3afe;
    text-align: center;
}

.card-one .footer a {
    padding: 0 1rem;
    color: #e2e2e2;
    transition: color 0.4s;
}

.card-one .footer a:hover {
    color: #c8c;
}

.card-one .footer::before {
    content: "";
    position: absolute;
    top: -27px;
    left: 50%;
    margin-left: -15px;
    border: 15px solid transparent;
    border-bottom-color: #3afe;
}

.card-title,
.card .card-title,
.card-2 .card-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 20px;
}

a {
    color: #333;
}

.badge {
    font-size: 12px;
    line-height: 1;
    padding: 0.375rem 0.5625rem;
    font-weight: normal;
}

.badge-primary {
    color: #447de8;
    background-color: #e6edff;
}

.badge {
    display: inline-block;
    padding: 0.4em 0.5em;
    font-size: 75%;
    font-weight: 700;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out,
    border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

/*end social*/

.social-timeline-card {
    width: 100%;
    margin: 0; /* Remove any default margins */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.card-header {
    padding: 1rem;
}

.card-body {
    padding: 1rem;
}

.card-footer {
    padding: 1rem;
}

/* Ensure proper spacing between cards */
.mb-3 {
    margin-bottom: 1rem !important;
}

/* Ensure proper column spacing */
.row {
    margin-left: 0;
    margin-right: 0;
}

.col-12 {
    padding-left: 0;
    padding-right: 0;
}

.hidden {
    display: none;
}

.form-control-sm {
    font-size: 0.875rem;
    padding: 0.25rem 0.5rem;
}

#inputComments {
    padding-right: 70px; /* Make room for the send button */
    min-height: 120px; /* Increased from 100px to accommodate 4 rows */
}

.position-relative {
    position: relative;
}

.position-absolute {
    position: absolute;
}

#targetSelect {
    transition: all 0.3s ease;
    margin-left: 10px;
}

#targetSelect.hidden {
    opacity: 0;
    width: 0;
    margin-left: 0;
}

#targetSelect:not(.hidden) {
    opacity: 1;
    width: auto;
}

.cursor-pointer {
    cursor: pointer;
}

.attachment-container {
    margin-top: 1rem;
    border-top: 1px solid #eee;
    padding-top: 1rem;
}

.image-preview img {
    max-height: 200px;
    object-fit: contain;
}

.file-download {
    display: flex;
    align-items: center;
}

/* Comment input styling */
.comment-input-container {
    position: relative;
}

.comment-toolbar {
    position: absolute;
    bottom: 8px;
    left: 8px;
    right: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px;
    background: rgba(255, 255, 255, 0.9);
    border-top: 1px solid #eee;
}

/* Form controls styling */
.form-control-sm {
    height: 31px;
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
}

/* Ensure selects don't grow too large */
select.form-control-sm {
    max-width: 140px;
}

#targetSelect.hidden {
    display: none;
}

#targetSelect:not(.hidden) {
    display: block;
}

/* Spacing utilities */
.gap-2 {
    gap: 0.5rem;
}

/* File name truncation */
#selectedFileName {
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Modal styles */
.modal-dialog.modal-lg {
    max-width: 90vw;
    margin: 1.75rem auto;
}

.modal-content {
    background-color: transparent;
    border: none;
}

.modal-body {
    position: relative;
    padding: 0;
}

#modalImage {
    max-height: 85vh;
    object-fit: contain;
    background-color: black;
}

.comment-image {
    transition: transform 0.2s;
    cursor: zoom-in;
}

.comment-image:hover {
    transform: scale(1.02);
}

.close {
    opacity: 0.8;
    font-size: 2rem;
    cursor: pointer;
}

.close:hover {
    opacity: 1;
}

/* Add these styles */
.dropdown-toggle::after {
    display: none;
}

/* Edit Control Dropdown Styles */
.edit-control {
    display: inline-block;
    position: relative;
}

.edit-control .dropdown-menu {
    position: absolute;
    right: 0;
    left: auto;
    top: 100%;
    z-index: 1000;
    float: left;
    min-width: 10rem;
    padding: 0.5rem 0;
    margin: 0.125rem 0 0;
    font-size: 1rem;
    color: #212529;
    text-align: left;
    list-style: none;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 0.25rem;
    transform: translate(0px, 27px);
}

.dropdown-menu-right {
    right: 0;
    left: auto;
}

.dropdown-menu.show {
    display: block;
}

.edit-control .dropdown-item {
    display: block;
    width: 100%;
    padding: 0.25rem 1.5rem;
    clear: both;
    font-weight: 400;
    color: #212529;
    text-align: inherit;
    white-space: nowrap;
    background-color: transparent;
    border: 0;
}

.edit-control .dropdown-item:hover, 
.edit-control .dropdown-item:focus {
    color: #16181b;
    text-decoration: none;
    background-color: #f8f9fa;
}

.edit-control .dropdown-item i {
    margin-right: 0.5rem;
}


.btn-link:hover {
    opacity: 0.8;
}

.social-timeline-card .dropdown-menu li::marker,
.social-timeline-card .dropdown-item::marker {
    content: "" !important;
}

.social-timeline-card .dropdown-menu,
.social-timeline-card .dropdown-item {
    list-style: none !important;
    list-style-type: none !important;
}

.dropdown > a {
    text-decoration: none;
    padding: 0.25rem 0.5rem;
}

.dropdown > a:hover {
    text-decoration: none;
    opacity: 0.7;
}

/* Add some spacing for the icons */
.card-footer .list-inline-item {
    margin-right: 1rem;
}

.card-footer a {
    text-decoration: none;
}

/* Make tooltips look better */
.tooltip {
    font-size: 0.8rem;
}

/* Modern Loading Spinner */
.loading-spinner {
    display: inline-block;
    position: relative;
    width: 40px;
    height: 40px;
}

.spinner-ring {
    box-sizing: border-box;
    display: block;
    position: absolute;
    width: 32px;
    height: 32px;
    margin: 4px;
    border: 3px solid #3b82f6;
    border-radius: 50%;
    animation: spinner-ring 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
    border-color: #3b82f6 transparent transparent transparent;
}

@keyframes spinner-ring {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

#comments-spinner {
    min-height: 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

#comments-spinner p {
    color: #6b7280;
    font-size: 0.875rem;
}

