/* === GLOBAL === */
body {
    margin: 0;
    font-family: "Segoe UI", "Roboto", Arial, sans-serif;
    background: #f7f9fc;
    color: #333;
    overflow: hidden;
  }
  
  a {
    text-decoration: none;
  }
  
  /* === CHAT & DASHBOARD CONTAINER === */
  .chat-container, .dashboard-container {
    display: flex;
    height: 100vh;
    width: 100%;
    box-sizing: border-box;
  }
  
  /* === SIDEBAR === */
  .sidebar {
    width: 30%;
    background: #075e54;
    color: white;
    display: flex;
    flex-direction: column;
    padding: 30px 20px;
    box-shadow: 2px 0 10px rgba(0,0,0,0.1);
  }
  
  .sidebar h2 {
    margin: 0 0 15px;
    font-size: 1.5em;
    font-weight: 600;
  }
  
  .sidebar p {
    font-size: 0.95em;
    margin-bottom: 15px;
    color: #dcdcdc;
  }
  
  .sidebar form {
    display: flex;
    flex-direction: column;
    gap: 15px;
  }
  
  .sidebar input[type="file"],
  .sidebar textarea {
    padding: 12px;
    border-radius: 8px;
    border: none;
    font-size: 0.95em;
    outline: none;
    resize: none;
  }
  
  .sidebar textarea {
    height: 120px;
  }
  
  .sidebar button {
    background: #25d366;
    border: none;
    color: white;
    font-weight: bold;
    padding: 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
  }
  
  .sidebar button:hover {
    background: #1ebe57;
  }
  
  .dashboard-btn {
    display: block;
    margin-top: 20px;
    background: #128c7e;
    padding: 12px;
    text-align: center;
    color: white;
    border-radius: 8px;
    font-weight: bold;
    transition: all 0.3s ease;
  }
  
  .dashboard-btn:hover {
    background: #0f786c;
  }
  
  /* === SENT LIST === */
  .sent-list {
    flex: 1;
    margin-top: 20px;
    overflow-y: auto;
    padding-right: 5px;
  }
  
  .contact {
    background: rgba(255,255,255,0.1);
    border-radius: 12px;
    padding: 12px 15px;
    margin-bottom: 12px;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
  }
  
  .contact:hover {
    background: rgba(255,255,255,0.2);
  }
  
  .contact p {
    margin: 0;
    font-weight: 600;
  }
  
  .contact small {
    font-size: 0.8em;
    color: #dcdcdc;
    margin-top: 4px;
  }
  
  .status {
    display: inline-block;
    margin-top: 6px;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.75em;
    font-weight: 600;
    color: #fff;
  }
  
  .status.sent { background: #25d366; }
  .status.failed { background: #e53935; }
  .status.pending { background: #ffb300; }
  
  /* === MAIN CHAT === */
  .main-chat {
    width: 70%;
    background: #ece5dd;
    display: flex;
    flex-direction: column;
    padding: 30px 25px;
  }
  
  .main-chat h2 {
    margin: 0 0 15px;
    font-size: 1.4em;
    font-weight: 600;
  }
  
  /* === REPLY LIST === */
  .reply-list {
    flex: 1;
    overflow-y: auto;
    padding-right: 10px;
    display: flex;
    flex-direction: column;
    gap: 12px;
  }
  
  /* === MESSAGE BUBBLES === */
  .message-bubble {
    padding: 14px 18px;
    border-radius: 20px;
    max-width: 65%;
    font-size: 0.95em;
    line-height: 1.5em;
    box-shadow: 0 4px 8px rgba(0,0,0,0.08);
    word-wrap: break-word;
  }
  
  .message-bubble.left {
    background: #fff;
    align-self: flex-start;
  }
  
  .message-bubble.right {
    background: #dcf8c6;
    align-self: flex-end;
  }
  
  .message-bubble small {
    display: block;
    font-size: 0.75em;
    color: #777;
    margin-top: 6px;
    text-align: right;
  }
  
  /* === SCROLLBAR MODERN STYLE === */
  .sent-list::-webkit-scrollbar,
  .reply-list::-webkit-scrollbar {
    width: 8px;
  }
  
  .sent-list::-webkit-scrollbar-thumb,
  .reply-list::-webkit-scrollbar-thumb {
    background: rgba(0,0,0,0.2);
    border-radius: 6px;
  }
  
  /* === RESPONSIVE === */
  @media (max-width: 1024px) {
    .sidebar { width: 35%; }
    .main-chat { width: 65%; }
  }
  
  @media (max-width: 768px) {
    .chat-container, .dashboard-container { flex-direction: column; }
    .sidebar, .main-chat { width: 100%; height: 50vh; }
  }

  
  /* === APP LAYOUT === */
.app-container {
    display: flex;
    height: 100vh;
    width: 100%;
    font-family: "Segoe UI", "Roboto", Arial, sans-serif;
  }
  
  /* === FIXED VERTICAL NAVBAR === */
  .vertical-nav {
    width: 50px; /* fixed width */
    background: linear-gradient(180deg, #25d366, #075e54); /* attractive WhatsApp-style gradient */
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 20px;
    box-shadow: 2px 0 10px rgba(0,0,0,0.1);
  }
  
  .vertical-nav .logo img {
    width: 30px;
    height: 30px;
    margin-bottom: 30px;
    border-radius: 50%;
  }
  
  .nav-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
  }
  
  .nav-link {
    color: white;
    font-size: 1.5em;
    text-align: center;
    padding: 10px;
    transition: all 0.3s;
    display: block;
  }
  
  .nav-link:hover {
    background: rgba(255,255,255,0.2);
    border-radius: 12px;
  }
  
  /* === CHAT CONTAINER === */
  .chat-container {
    display: flex;
    flex: 1;
    box-shadow: inset 0 0 10px rgba(0,0,0,0.05);
  }
  