/*================================================================================
	Item Name: Shastrang 
	Version: 1.0
	Author: Mohit Kumar Anant
	Author URL: https://www.codepixelsoft.com
================================================================================

NOTE:
------
PLACE HERE YOUR OWN CSS CODES AND IF NEEDED, OVERRIDE THE STYLES FROM THE OTHER STYLESHEETS.
WE WILL RELEASE FUTURE UPDATES SO IN ORDER TO NOT OVERWRITE YOUR STYLES IT'S BETTER LIKE THIS.  */
table.dataTable {
	width: 100% !important;
	border-collapse: collapse !important;
	margin-bottom: 1rem !important;
	margin-top: 0 !important;
}

.table th, .table td{
	padding: 1rem 1rem;
}

.chat-container {            background-color: #fff;
            border-radius: 15px;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
            overflow: hidden;
            height: calc(100vh - 100px);
            display: flex;
            flex-direction: column;
        }

        /* --- Chat Header --- */
        .chat-header {
            background-color: #fff;
            padding: 1rem;
            border-bottom: 1px solid #e9ecef;
            display: flex;
            align-items: center;
        }

        .chat-header img {
            width: 50px;
            height: 50px;
        }

        .chat-header .user-info h5 {
            font-weight: 600;
        }

        .chat-header .user-info p {
            color: #28a745; /* Green for "Online" */
        }
        

        /* --- Chat Body --- */
        .chat-body {
            flex-grow: 1;
            padding: 1.5rem;
            overflow-y: auto;
            background-color: #e5ddd5; /* WhatsApp-like background */
            background-image: url('https://user-images.githubusercontent.com/15075759/28719144-86dc0f70-73b1-11e7-911d-60d70fcded21.png');
        }

        .message {
            margin-bottom: 1rem;
            display: flex;
            flex-direction: column;
        }
        
        .message-bubble {
            padding: 0.75rem 1rem;
            border-radius: 15px;
            max-width: 75%;
            line-height: 1.4;
        }

        .message-time {
            font-size: 0.75rem;
            color: #6c757d;
            margin-top: 4px;
        }

        /* Received Message Styling */
        .message.received {
            align-items: flex-start;
        }
        .message.received .message-bubble {
            background-color: #ffffff;
            border-bottom-left-radius: 3px;
        }
        .message.received .message-time {
            align-self: flex-start;
        }

        /* Sent Message Styling */
        .message.sent {
            align-items: flex-end;
        }
        .message.sent .message-bubble {
            background-color: #dcf8c6; /* Light green for sent messages */
            border-bottom-right-radius: 3px;
        }
        .message.sent .message-time {
            align-self: flex-end;
        }

        /* --- Chat Footer --- */
        .chat-footer {
            padding: 1rem;
            background-color: #f0f2f5;
            border-top: 1px solid #e9ecef;
        }
        
        .chat-footer .form-control {
            border-radius: 20px;
            border: none;
        }

        .chat-footer .btn {
            border-radius: 50%;
            width: 45px;
            height: 45px;
        }

        .step-header {
            font-size: 1.25rem;
            font-weight: 600;
            margin-bottom: 1rem;
            color: #343a40;
        }
        .bulk-btn{
            float: inline-end;
        }
        .number-tag {
            display: inline-flex;
            align-items: center;
            background-color: #e9ecef;
            padding: 5px 10px;
            border-radius: 15px;
            margin-right: 5px;
            margin-bottom: 5px;
        }
        .number-tag .close-tag {
            margin-left: 8px;
            cursor: pointer;
            font-weight: bold;
        }
        #numbers-display {
            margin-top: 15px;
            padding: 10px;
            background-color: #f8f9fa;
            border-radius: 5px;
            min-height: 50px;
        }
  .dashboard-container {
            height: 100vh;
            display: flex;
            flex-direction: column;
        }

        .main-row {
            flex-grow: 1;
            overflow: hidden; /* Prevent scrolling on the main row */
        }

        .conversations-panel, .chat-panel {
            height: 100%;
            display: flex;
            flex-direction: column;
        }

        .panel-header {
            background-color: #e9eaeb;
            border-bottom: 1px solid #d1d7db;
            flex-shrink: 0; /* Prevent header from shrinking */
        }

        .conversation-list {
            overflow-y: auto; /* Allow scrolling for conversations */
            flex-grow: 1;
        }

        .list-group-item {
            cursor: pointer;
            border-left: 0;
            border-right: 0;
        }

        .list-group-item:first-child {
            border-top: 0;
        }

        .list-group-item:last-child {
            border-bottom: 0;
        }

        .list-group-item.active {
            background-color: #e8f3ff;
            color: #000;
            border-left: 4px solid #007bff;
        }

        .last-message {
            font-size: 0.9em;
            color: #667781;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .message-area {
            flex-grow: 1;
            overflow-y: auto;
            background-color: #e5ddd5; /* WhatsApp chat background color */
            padding: 20px;
        }

        .message {
            max-width: 70%;
            padding: 10px 15px;
            border-radius: 8px;
            margin-bottom: 10px;
            line-height: 1.4;
            position: relative;
        }

        .message .timestamp {
            font-size: 0.75em;
            color: #888;
            display: block;
            text-align: right;
            margin-top: 5px;
        }

        .message-incoming {
            background-color: #fff;
            align-self: flex-start;
        }

        .message-outgoing {
            background-color: #dcf8c6; /* WhatsApp outgoing message color */
            align-self: flex-end;
        }

@media (max-width: 576px) {
	.content-wrapper{
		padding: 1rem 1rem !important;
	}
    .card {
        margin: 5px !important;
        padding: 10px !important;
    }
    .card-header, .card-body, .card-dashboard {
        padding: 5px !important;
    }
    .form-group, .controls {
        margin-bottom: 10px !important;
    }
    .form-label, label {
        font-size: 1rem !important;
    }
    p, .card-title, .btn, input, select, .select2-selection__rendered {
        font-size: 0.95rem !important;
    }
    .btn {
        padding: 8px 12px !important;
    }
    .customnew {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    .table-responsive {
        overflow-x: auto;
    }
    table {
        font-size: 0.9rem !important;
    }
    .select2-container .select2-selection--multiple {
        min-height: 38px !important;
        font-size: 0.95rem !important;
    }
    #amount_display {
        font-size: 1.1rem !important;
        padding: 8px !important;
    }
    #discount_message, #fine_message {
        font-size: 0.95rem !important;
    }
	.col-12 {
    padding: 0;
}
}