/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

/* ---------- LOGIN & REGISTER ---------- */
body.login-body, body.register-body {
    background-color: #f1f3f4;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

.login-container, .register-container {
    background-color: #fff;
    display: flex;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    width: 800px;
    overflow: hidden;
}

.login-form, .register-form {
    flex: 1;
    padding: 40px;
}

.login-form h2, .register-form h2 {
    margin-bottom: 20px;
}

.login-form form, .register-form form {
    display: flex;
    flex-direction: column;
}

.login-form label, .register-form label {
    margin-bottom: 5px;
    font-weight: bold;
}

.login-form input, .register-form input {
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.login-form button, .register-form button {
    padding: 10px;
    background-color: #1a73e8;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.login-form button:hover, .register-form button:hover {
    background-color: #155ab6;
}

.form-footer {
    margin-top: 10px;
    text-align: center;
}

.login-side-panel {
    background-color: #f1f3f4;
    flex: 0.7;
    padding: 40px;
    text-align: center;
}

.login-side-panel h3 {
    margin-bottom: 10px;
}

.register-button {
    display: inline-block;
    padding: 10px 15px;
    background-color: #1a73e8;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    margin-top: 15px;
}

/* ---------- DASHBOARD ---------- */
body.dashboard-body {
    background-color: #f8f9fa;
}

.top-bar {
    background-color: #1a73e8;
    color: white;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logout-btn {
    background: #fff;
    color: #1a73e8;
    padding: 5px 10px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
}

/* Layout container */
.main-container {
    display: flex;
    height: calc(100vh - 60px); /* Adjust for top bar */
}

/* Sidebar */
.sidebar {
    width: 200px;
    background-color: #ebedf0;
    box-shadow: 1px 0 5px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
}
.comman-btn{
margin:-2px 5px 0px 0px;  
}

/* Sidebar buttons */
.sidebar button {
    padding: 10px 15px;
    background-color: #ffffff;
    border: 1px solid #ddd;
    border-radius: 5px;
    cursor: pointer;
    text-align: left;
    font-size: 16px;
    transition: background-color 0.2s, color 0.2s;
}

#mail-view button{
    padding: 10px 15px;
    background-color: #ffffff;
    border: 1px solid #ddd;
    border-radius: 5px;
    cursor: pointer;
    text-align: left;
    font-size: 16px;
    transition: background-color 0.2s, color 0.2s;
}


.sidebar button:hover {
    background-color:#2c282812;
border-radius:0px 20px 20px 0px;
}

/* Content area */
.content {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    background-color: #fafafa;
}

.sidebar {
    background-color: #ebedf0;
    width: 200px;
    display: flex;
    flex-direction: column;
}

.sidebar button {
    background: none;
    border: none;
    padding: 10px;
    text-align: left;
    cursor: pointer;
    font-size: 16px;
    border-radius: 4px;
}

.content {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
}

/* ---------- COMPOSE MODAL ---------- */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
}

.modal-content {
    background-color: #fff;
    margin: auto;
    padding: 20px;
    width: 500px;
    border-radius: 8px;
    position: relative;
}

.modal-content h2 {
    margin-bottom: 15px;
}

.modal-content label {
    display: block;
    margin-top: 10px;
}

.modal-content input, .modal-content textarea {
    width: 100%;
    padding: 8px;
    margin-top: 5px;
    border-radius: 4px;
    border: 1px solid #ccc;
}

.modal-content button {
    margin-top: 15px;
    padding: 10px;
    background-color: #1a73e8;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 22px;
    cursor: pointer;
}

/* SMTP Form Container */
#smtpForm {
    max-width: 500px;
    margin-top: 20px;
    background-color: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    margin: auto;
}

/* Form Labels */
#smtpForm label {
    margin-bottom: 5px;
    font-weight: bold;
    color: #333;
}

/* Form Inputs */
#smtpForm input {
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 14px;
}

/* Submit Button */
#smtpForm button[type="submit"] {
    padding: 10px 15px;
    background-color: #1a73e8;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.2s ease;
}

#smtpForm button[type="submit"]:hover {
    background-color: #1669c1;
}

.mail-item {
    border-bottom: 1px solid #e0e0e0;
    padding: 12px 16px;
    cursor: pointer;
    transition: background 0.2s ease;
}
.mail-item:hover {
    background-color: #f5f5f5;
}

#mail-view {
    padding: 20px;
    background: #fff;
    border: 1px solid #ddd;
    margin-top: 10px;
    border-radius: 8px;
}

#mail-view button {
    margin-bottom: 10px;
}

.mail-summary strong {
    color: #1a73e8;
}


.email-body img {
    max-width: 100%;
    height: auto;
    display: block;
}
.email-body a {
    color: #1a73e8;
    text-decoration: underline;
}

.compose-modal input,
.compose-modal textarea {
  width: 100%;
  margin-bottom: 10px;
  padding: 5px;
}

#htmlPreview {
  background-color: #f9f9f9;
  max-height: 200px;
  overflow: auto;
}

button{
    display:flex;
}

button:hover{
    background:gray;
}

.compose{
    box-shadow: 0 1px 2px 0 #a8c8ed, 0 1px 3px 1px #cce2fa;
    -moz-osx-font-smoothing: grayscale;
    -webkit-font-smoothing: antialiased;
    font-family: "Google Sans",Roboto,RobotoDraft,Helvetica,Arial,sans-serif;
    letter-spacing: normal;
    -webkit-box-align: center;
    -webkit-align-items: center;
    align-items: center;
    background-color: #c2e7ff;
    background-image: none;
    border-radius: 16px;
    color: #001d35;
    display: -webkit-inline-box;
    display: -webkit-inline-flex;
    display: inline-flex;
    font-weight: 500;
    height: 56px;
    min-width: 56px;
    overflow: hidden;
    padding: 0 24px 0 0;
    text-transform: none;
    cursor:pointer;
    margin-bottom:20px;
    margin-top:20px;
    justify-content:center;
    gap: 16px;
    transition: ease-in-out 0.5s;
}

.compose:hover{
box-shadow: 0 1px 2px 0 #d9d9d9, 0 1px 3px 1px #79818b;
font-size:20px;
}


.compose-modal {
  position: absolute;
  top: 100px;
  left: 700px;
  width: 608px;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
  border: 1px solid #ccc;
  padding: 0;
  z-index: 9999;
  font-family: Arial, sans-serif;
  overflow: hidden;
  cursor: default;
}

.compose-header {
  background-color: #f2f3f5;
  padding: 12px 16px;
  font-weight: bold;
  font-size: 16px;
  cursor: move;
  border-bottom: 1px solid #ddd;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.close-btn {
  font-size: 18px;
  cursor: pointer;
  color: #666;
}

.compose-form {
  padding: 16px;
}

.compose-form label {
  display: block;
  margin-top: 12px;
  font-weight: 500;
}

.compose-form input[type="email"],
.compose-form input[type="text"],
.compose-form textarea {
  width: 100%;
  padding: 8px 10px;
  margin-top: 4px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 14px;
  box-sizing: border-box;
}

.advanced-toggle {
  margin-top: 10px;
  color: #1a73e8;
  cursor: pointer;
  font-size: 14px;
}

.advanced-fields {
  display: none;
}

.preview-toggle {
  margin: 10px 0;
  font-size: 14px;
}

.html-preview {
  border: 1px solid #ddd;
  padding: 10px;
  margin-bottom: 10px;
  max-height: 200px;
  overflow-y: auto;
  background: #f9f9f9;
}

.send-btn {
  background-color: #1a73e8;
  color: white;
  border: none;
  padding: 10px 20px;
  font-weight: bold;
  border-radius: 4px;
  cursor: pointer;
  margin-top: 12px;
}

.send-btn:hover {
  background-color: #1669c1;
}

.tox :not(svg):not(rect){
    width:500px;
}