/* Chat Profile Page Styles */

/* Chat Preview Container */
.chat-preview-container {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-radius: 0.75rem;
    padding: 1.5rem;
    border: 2px solid #cbd5e1;
}

.chat-message-preview {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    background: white;
    padding: 1rem;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.chat-preview-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #e2e8f0;
    flex-shrink: 0;
}

.chat-message-content {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    flex: 1;
}

.chat-preview-username {
    font-weight: 600;
    font-size: 0.95rem;
    color: #4f46e5;
}

.chat-preview-text {
    color: #475569;
    font-size: 0.9rem;
}

/* Profile Picture Display */
.profile-image-current {
    width: 80px;
    height: 80px;
    border-radius: 0.5rem;
    object-fit: cover;
    border: 2px solid #e2e8f0;
}

/* Color Presets */
.color-preset-container {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e2e8f0;
}

.color-presets {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.color-preset {
    width: 40px;
    height: 40px;
    border-radius: 0.375rem;
    border: 2px solid #e2e8f0;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.color-preset:hover {
    transform: scale(1.1);
    border-color: #94a3b8;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.color-preset:active {
    transform: scale(0.95);
}

/* Button Styles */
.btn-modern-lg {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
}

/* Form Elements */
.form-control:focus {
    border-color: #4f46e5;
    box-shadow: 0 0 0 0.2rem rgba(79, 70, 229, 0.25);
}

/* Alert Styles */
.alert {
    border-radius: 0.75rem;
    border: none;
}

.alert-success {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    color: #065f46;
}

.alert-danger {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    color: #991b1b;
}

/* Card Styles */
.card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1) !important;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .chat-preview-avatar {
        width: 32px;
        height: 32px;
    }

    .profile-image-current {
        width: 60px;
        height: 60px;
    }

    .color-preset {
        width: 36px;
        height: 36px;
    }

    .btn-modern-lg {
        padding: 0.6rem 1.25rem;
        font-size: 0.95rem;
    }
}

/* Default Avatar Placeholder */
img[src*="default-avatar"] {
    background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 100%);
    padding: 0.5rem;
}
