Logo ShareMyCode.io ShareMyCode.io
Partagez un extrait de code en quelques secondes.
Voici votre URL de partage
Cliquer pour copier dans le presse-papiers. Copié
Nom du fichier : Sans nom
/* ================================
   TACHES CHAT DETAIL - RESPONSIVE CSS
   Design moderne et responsive pour la messagerie ERP
================================ */

:root {
    --primary-color: #77928b;
    --primary-dark: #5f7570;
    --primary-light: #9fb0ab;
    --accent-color: #4a90e2;
    --accent-dark: #357abd;
    
    --success-color: #28a745;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --info-color: #17a2b8;
    
    --bg-main: #f5f7fa;
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fa;
    --bg-tertiary: #eef1f0;
    --bg-sidebar: #77928b;
    
    --text-dark: #333333;
    --text-light: #ffffff;
    --text-muted: #6c757d;
    
    --border-color: #e9ecef;
    --border-light: #dee2e6;
    
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-light: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 4px 12px rgba(0, 0, 0, 0.15);
    --shadow-heavy: 0 8px 25px rgba(0, 0, 0, 0.2);
    --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.3);
    
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.15s ease;
}

/* ================================
   BASE & RESET
================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--bg-main);
    color: var(--text-dark);
    line-height: 1.6;
    font-size: 16px;
    overflow-x: hidden;
}

/* ================================
   HEADER - BREADCRUMB
================================ */
.page-header {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-lg);
    padding: 1.25rem 2rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-medium);
    border: 1px solid var(--border-color);
}

.breadcrumb-nav {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.95rem;
    flex-wrap: wrap;
}

.breadcrumb-nav i {
    color: var(--text-muted);
}

.breadcrumb-nav a {
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition-fast);
}

.breadcrumb-nav a:hover {
    color: var(--primary-color);
}

.breadcrumb-nav .active {
    color: var(--primary-color);
    font-weight: 600;
}

/* ================================
   MAIN CONTAINER
================================ */
.flex.mt-4.bg-white {
    display: flex;
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-medium);
    position: relative;
}

/* ================================
   SIDEBAR - MENU CONVERSATION
================================ */
.menu-conversation {
    width: 450px;
    min-width: 400px;
    background: var(--bg-primary);
    display: flex;
    flex-direction: column;
    position: relative;
    border-right: 1px solid var(--border-color);
}

/* Top Bar */
.top-bar {
    background: var(--bg-primary);
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 1rem;
    min-height: 75px;
    flex-shrink: 0;
}

.top-bar .open-message,
.top-bar .back-message {
    display: none;
}

.top-bar #menu-message {
    font-size: 1.3rem;
    cursor: pointer;
    color: var(--primary-color);
    transition: var(--transition-fast);
    padding: 0.5rem;
}

.top-bar #menu-message:hover {
    transform: scale(1.1);
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
}

/* Search Container */
.search-container {
    position: relative;
    flex: 1;
}

.search-container input {
    width: 100%;
    padding: 0.85rem 1rem 0.85rem 2.75rem;
    border-radius: 25px;
    border: none;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow-light);
    color: var(--text-dark);
    font-size: 0.95rem;
    transition: var(--transition);
}

.search-container input::placeholder {
    color: var(--text-muted);
}

.search-container input:hover {
    background: rgba(255, 255, 255, 1);
    box-shadow: var(--shadow-medium);
}

.search-container input:focus {
    outline: none;
    background: white;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
}

.search-container::before {
    content: "🔍";
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.1rem;
    pointer-events: none;
}

/* Conversations List */
.all-conversation {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
    position: relative;
}

.all-conversation::-webkit-scrollbar {
    width: 8px;
}

.all-conversation::-webkit-scrollbar-track {
    background: var(--bg-secondary);
    border-radius: 10px;
}

.all-conversation::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 10px;
}

.all-conversation::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* Conversation Items */
.conversation,
.task-item {
    background: var(--primary-color);
    color: white;
    border-radius: var(--radius-md);
    padding: 1.1rem;
    margin-bottom: 0.85rem;
    cursor: pointer;
    box-shadow: var(--shadow-light);
    transition: var(--transition);
    border: 1px solid var(--primary-dark);
    position: relative;
}

.conversation::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 4px;
    background: transparent;
    border-radius: var(--radius-md) 0 0 var(--radius-md);
    transition: var(--transition);
}

.conversation:hover,
.task-item:hover {
    background: var(--primary-dark);
    transform: translateX(6px);
    box-shadow: var(--shadow-medium);
    border-color: var(--primary-light);
}

.conversation:hover::before {
    background: var(--accent-color);
}

.conversation.selected,
.task-item.selected {
    background: white;
    color: var(--primary-color);
    box-shadow: var(--shadow-heavy);
    transform: translateX(8px);
}

.conversation.selected::before {
    background: var(--accent-color);
}

.conversation.selected h6,
.conversation.selected small,
.task-item.selected h6,
.task-item.selected small {
    color: var(--primary-color) !important;
}

.conversation a {
    text-decoration: none;
    color: inherit;
    display: flex;
    width: 100%;
}

.conversation .details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.conversation h6,
.task-item h6 {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 600;
    color: white;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-height: 1.4;
}

.conversation small,
.task-item small {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.75);
    font-weight: 400;
}

.conversation.selected small,
.task-item.selected small {
    color: var(--text-muted) !important;
}

/* Floating Button */
.showUsersBtn {
    position: absolute;
    bottom: 24px;
    right: 24px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-color), var(--accent-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-heavy);
    cursor: pointer;
    transition: var(--transition);
    z-index: 100;
}

.showUsersBtn:hover {
    transform: scale(1.12) rotate(8deg);
    box-shadow: 0 12px 35px rgba(74, 144, 226, 0.5);
}

.showUsersBtn:active {
    transform: scale(1.05);
}

.showUsersBtn button {
    background: transparent;
    border: none;
    padding: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: white;
}

.showUsersBtn i {
    font-size: 22px;
    color: white;
}

/* ================================
   MAIN CONTENT AREA
================================ */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: var(--bg-secondary);
    overflow: hidden;
}

/* Header */
.header {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    padding: 1.5rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 75px;
    box-shadow: var(--shadow-light);
    flex-shrink: 0;
}

.header h5 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
}

.header .back-message {
    display: none;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 1.5rem;
    padding: 0.5rem 1rem;
    cursor: pointer;
    border-radius: var(--radius-sm);
    transition: var(--transition-fast);
}

.header .back-message:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Messages Container */
#message-container {
    flex: 1;
    padding: 2rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    background: linear-gradient(to bottom, #f8f9fa 0%, #ffffff 100%);
}

#message-container::-webkit-scrollbar {
    width: 10px;
}

#message-container::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

#message-container::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 10px;
}

#message-container::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* Message Bubbles */
.message {
    max-width: 75%;
    padding: 1.1rem 1.4rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-light);
    animation: fadeIn 0.4s ease;
    position: relative;
    word-wrap: break-word;
    line-height: 1.5;
}

.message.sent {
    margin-left: auto;
    background: linear-gradient(135deg, var(--success-color), #218838);
    color: white;
    border-bottom-right-radius: 4px;
}

.message.received {
    margin-right: auto;
    background: white;
    border: 1px solid var(--border-color);
    color: var(--text-dark);
    border-bottom-left-radius: 4px;
}

.message .message-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
    opacity: 0.9;
}

.message .message-text {
    margin: 0.5rem 0;
}

.message .message-time {
    font-size: 0.75rem;
    margin-top: 0.5rem;
    opacity: 0.7;
}

.message.sent .message-time {
    text-align: right;
}

.message.received .message-time {
    text-align: left;
}

/* Attachment */
.message .attachment {
    margin-top: 0.75rem;
    padding: 0.75rem;
    background: rgba(0, 0, 0, 0.05);
    border-radius: var(--radius-sm);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: var(--transition-fast);
}

.message.sent .attachment {
    background: rgba(255, 255, 255, 0.2);
}

.message .attachment:hover {
    background: rgba(0, 0, 0, 0.1);
}

.message.sent .attachment:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Empty State */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--text-muted);
    text-align: center;
    padding: 3rem;
}

.empty-state i {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.3;
}

.empty-state h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.empty-state p {
    font-size: 1rem;
}

/* ================================
   MESSAGE INPUT AREA
================================ */
.new-message {
    background: white;
    border-top: 1px solid var(--border-color); /* Modifié pour une séparation plus subtile */
    padding: 1.5rem;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.08);
    flex-shrink: 0;
}

.new-message form {
    display: flex;
    gap: 1rem;
    align-items: stretch;
}

.textarea-content {
    flex: 1;
    display: flex;
}

.textarea-content textarea {
    width: 100%;
    min-height: 100px;
    padding: 1rem;
    border-radius: var(--radius-lg); /* Forme plus arrondie */
    border: 2px solid var(--primary-light); /* Couleur de bordure plus prononcée */
    background-color: var(--bg-secondary); /* Couleur de fond légèrement contrastée */
    resize: vertical;
    font-family: inherit;
    font-size: 0.95rem;
    transition: var(--transition);
}

.textarea-content textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(119, 146, 139, 0.15);
}

.button-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    justify-content: space-between;
}

.file-upload label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 1.1rem;
    background: var(--bg-primary); /* Fond blanc */
    border: 1px solid var(--primary-light); /* Bordure alignée avec la textarea */
    border-radius: var(--radius-lg); /* Correspond à la textarea */
    cursor: pointer;
    transition: var(--transition-fast);
    white-space: nowrap;
    font-size: 0.9rem;
}

.file-upload label:hover {
    background: var(--bg-secondary); /* Effet de hover léger */
    border-color: var(--primary-color);
}

.file-upload label i {
    font-size: 1rem;
}

.button-group button[type="submit"] {
    padding: 0.85rem 2rem;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    border: none;
    border-radius: var(--radius-lg); /* Correspond à la textarea */
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-light);
    align-self: stretch;
}

.button-group button[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.button-group button[type="submit"]:active {
    transform: translateY(0);
}

/* ================================
   MODAL STYLES
================================ */
.modal-content {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    border: none;
}

.modal-header {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    padding: 1.5rem;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.modal-title {
    font-size: 1.25rem;
    font-weight: 600;
}

.modal-body {
    padding: 2rem;
}

.modal-body .form-label {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.modal-body input,
.modal-body textarea {
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 0.85rem;
    transition: var(--transition);
}

.modal-body input:focus,
.modal-body textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(119, 146, 139, 0.15);
}

.modal-footer {
    padding: 1.5rem;
    background: var(--bg-secondary);
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

/* ================================
   ANIMATIONS
================================ */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ================================
   RESPONSIVE - TABLET
================================ */
@media (max-width: 1024px) {
    .menu-conversation {
        width: 320px;
        min-width: 280px;
    }
    
    .page-header {
        padding: 1rem 1.5rem;
    }
    
    .top-bar {
        padding: 1rem;
    }
    
    .header {
        padding: 1.25rem 1.5rem;
    }
    
    #message-container {
        padding: 1.5rem;
    }
    
    .message {
        max-width: 80%;
    }
}

/* ================================
   RESPONSIVE - MOBILE
================================ */
@media (max-width: 768px) {
    body {
        font-size: 14px;
    }
    
    .page-header {
        padding: 0.85rem 1rem;
        margin-bottom: 1rem;
        border-radius: var(--radius-md);
    }
    
    .breadcrumb-nav {
        font-size: 0.85rem;
        gap: 0.5rem;
    }
    
    /* Main Container */
    .flex.mt-4.bg-white {
        flex-direction: column;
        height: calc(100vh - 140px) !important;
        border-radius: var(--radius-md);
    }
    
    /* Sidebar */
    .menu-conversation {
        width: 100%;
        min-width: 100%;
        position: relative;
        z-index: 10;
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    
    .top-bar {
        justify-content: space-between;
        padding: 0.85rem 1rem;
        min-height: 65px;
    }
    
    .top-bar .open-message {
        display: flex !important;
        align-items: center;
    }
    
    .top-bar #menu-message {
        font-size: 1.2rem;
        padding: 0.4rem;
    }
    
    .search-container {
        max-width: 200px;
    }
    
    .search-container input {
        padding: 0.7rem 0.85rem 0.7rem 2.5rem;
        font-size: 0.85rem;
    }
    
    .all-conversation {
        max-height: calc(100vh - 200px);
        padding: 0.85rem;
    }
    
    .conversation,
    .task-item {
        padding: 0.95rem;
        margin-bottom: 0.75rem;
    }
    
    .conversation h6,
    .task-item h6 {
        font-size: 0.95rem;
    }
    
    .conversation small,
    .task-item small {
        font-size: 0.8rem;
    }
    
    .showUsersBtn {
        width: 54px;
        height: 54px;
        bottom: 18px;
        right: 18px;
    }
    
    .showUsersBtn i {
        font-size: 20px;
    }
    
    /* Main Content */
    .main-content {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        z-index: 1000;
        transform: translateX(100%);
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    .main-content.active {
        transform: translateX(0);
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.3);
    }
    
    .header {
        padding: 1rem 1.25rem;
        min-height: 65px;
    }
    
    .header .back-message {
        display: flex !important;
        align-items: center;
        justify-content: center;
        font-size: 1.3rem;
        padding: 0.4rem 0.8rem;
    }
    
    .header h5 {
        font-size: 1.1rem;
        flex: 1;
        text-align: center;
    }
    
    #message-container {
        padding: 1.25rem;
        gap: 1rem;
    }
    
    .message {
        max-width: 85%;
        padding: 0.95rem 1.15rem;
        font-size: 0.9rem;
    }
    
    .message .message-meta {
        font-size: 0.8rem;
    }
    
    .message .message-time {
        font-size: 0.7rem;
    }
    
    /* Input Area */
    .new-message {
        padding: 1rem;
    }
    
    .new-message form {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .textarea-content textarea {
        min-height: 80px;
        font-size: 0.9rem;
        padding: 0.85rem;
    }
    
    .button-group {
        flex-direction: row;
        justify-content: space-between;
    }
    
    .file-upload label {
        padding: 0.65rem 1rem;
        font-size: 0.85rem;
    }
    
    .button-group button[type="submit"] {
        padding: 0.65rem 1.5rem;
        font-size: 0.9rem;
    }
    
    /* Modal */
    .modal-dialog {
        margin: 1rem;
    }
    
    .modal-body {
        padding: 1.5rem;
    }
}

/* ================================
   RESPONSIVE - SMALL MOBILE
================================ */
@media (max-width: 480px) {
    .page-header {
        padding: 0.75rem;
    }
    
    .breadcrumb-nav {
        font-size: 0.8rem;
    }
    
    .top-bar {
        padding: 0.75rem;
        min-height: 60px;
    }
    
    .search-container {
        max-width: 160px;
    }
    
    .search-container input {
        padding: 0.65rem 0.75rem 0.65rem 2.25rem;
        font-size: 0.8rem;
    }
    
    .conversation h6,
    .task-item h6 {
        font-size: 0.9rem;
    }
    
    .header h5 {
        font-size: 1rem;
    }
    
    #message-container {
        padding: 1rem;
    }
    
    .message {
        max-width: 90%;
        padding: 0.85rem 1rem;
    }
    
    .new-message {
        padding: 0.85rem;
    }
    
    .textarea-content textarea {
        min-height: 70px;
        padding: 0.75rem;
    }
}

/* ================================
   UTILITY CLASSES
================================ */
.hidden {
    display: none !important;
}

.text-center {
    text-align: center;
}

.text-muted {
    color: var(--text-muted) !important;
}

.d-flex {
    display: flex;
}

.flex-column {
    flex-direction: column;
}

.align-items-center {
    align-items: center;
}

.justify-content-between {
    justify-content: space-between;
}

.justify-content-center {
    justify-content: center;
}

.mb-1 {
    margin-bottom: 0.25rem;
}

.me-2 {
    margin-right: 0.5rem;
}

.p-2 {
    padding: 0.5rem;
}

.p-3 {
    padding: 1rem;
}

.p-4 {
    padding: 1.5rem;
}

/* ================================
   LOADING STATE
================================ */
.loading-spinner {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.spinner {
    border: 3px solid rgba(0, 0, 0, 0.1);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}
Informations
Cet extrait a été créé le
10 Feb 2026 à 15:39:23
Cet extrait expire le
12 Mar 2026 à 15:39:23
Langage :
css
Lien
Demander la suppression