/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

/* Body */
body {
  background-color: #f5f6fa;
}

/* Header */
.header {
  height: 45px;
  font-size: 11px;
  background-color: #2d3e50;
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
  position: fixed;
  top: 0;
  left: 240px;
  right: 0;
  z-index: 1000;
}

.header h1 {
  font-size: 14px;
}

.header .user-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header .logout-btn {
  font-size: 10px;
  background-color: #ff5f5f;
  border: none;
  padding: 6px 12px;
  color: white;
  border-radius: 4px;
  cursor: pointer;
  font-weight: bold;
}

.header .logout-btn:hover {
  background-color: #e04646;
}

/* Sidebar */
.sidebar {
  font-size: 12px;
  position: fixed;
  top: 0;
  left: 0;
  width: 240px;
  height: 100vh;
  background-color: #34495e;
  padding-top: 55px;
  color: white;
  z-index: 999;
}

.sidebar h2 {
  text-align: center;
  font-size: 14px;
  margin-bottom: 40px;
}

.sidebar .menu {
  list-style: none;
  line-height: 5px;
  padding: 0;
  margin: 0;
}

.sidebar .menu li {
  position: relative;
}

.sidebar .menu li a {
  display: block;
  padding: 12px 20px;
  color: white;
  text-decoration: none;
  transition: background 0.3s;
}

.sidebar .menu li a:hover {
  background-color: #2c3e50;
}

.sidebar .menu li.has-submenu > a::after {
  content: " ▼";
  float: right;
  font-size: 12px;
}

/* Submenu (Dropdown-style) */
.sidebar .submenu {
  display: none;
  background-color: #3d556e;
}

.sidebar .has-submenu:hover .submenu {
  display: block;
}

.sidebar .submenu li a {
  padding-left: 40px;
   line-height: 0px;
    font-size: 12px;
  
  background-color: #3d556e;
}

.sidebar .submenu li a:hover {
  background-color: #2f4359;
}

/* Logout Button */
.sidebar .logout-btn {
  width: 82%;
  margin: 34px auto;
  background-color: #ff5f5f;
  border: none;
  padding: 8px;
  color: white;
  font-size: 11px;
  border-radius: 5px;
  display: block;
  cursor: pointer;
  text-align: center;
}

.sidebar .logout-btn:hover {
  background-color: #e04646;
}


/* Main Content Area */
.main-content {
   background-color: #f9f9f9;  /* subtle background */
  transition: all 0.3s ease-in-out;
  overflow-x: hidden;
  box-shadow: inset 0 0 8px rgba(0, 0, 0, 0.05);
  border-radius: 8px;
  margin-left: 240px;
    margin-top: 60px;                /* header की height */
      margin-bottom: 40px;             /* footer की height */
  padding: 20px; 
min-height: calc(100vh - 100px); /* header (60px) + footer (40px) */
  background-color: #fff;
  display: flex;
  justify-content: center;
  align-items: center; /* or center */
}
 
@media (max-width: 768px) {
  .sidebar {
    width: 200px;
  }
  .header {
    left: 200px;
  }
  .footer {
    left: 200px;
  }
  .main-content {
    margin-left: 200px;
  }
}

@media (max-width: 600px) {
  .sidebar {
    left: -240px; /* hide sidebar */
  }
  .header, .footer {
    left: 0;
  }
  .main-content {
    margin-left: 0;
  }
}

/* Responsive (optional) */
@media (max-width: 768px) {
  .main-content {
    margin-left: 0;
    padding: 70px 15px 20px 15px;
  }
}

/* Footer */
.footer {
  text-align: center;
  padding: 10px;
  background-color: #ecf0f1;
  font-size: 13px;
  color: #555;
  position: fixed;
  bottom: 0;
  left: 240px;
  right: 0;
  height: 40px;
  line-height: 20px;
  border-top: 1px solid #ccc;
}


.content-wrapper {
  background: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0,0,0,0.05);
}



.form-container {
  max-width: 600px;
  background: #fff;
  padding: 25px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
  border-radius: 8px;
}

.form-group {
  margin-bottom: 15px;
}

.form-group label {
  display: block;
  font-weight: bold;
  margin-bottom: 6px;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="file"],
.form-group select {
  width: 100%;
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 5px;
}

button[type="submit"] {
  background-color: #2d3e50;
  color: #fff;
  padding: 10px 18px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: bold;
}

button[type="submit"]:hover {
  background-color: #1f2d3a;
}





/* .form-wrapper {
  width: 100%;
  max-width: 500px;
  padding: 20px 25px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  font-size: 13px;
}

.form-wrapper h2 {
  margin-bottom: 20px;
  font-size: 18px;
  font-weight: 600;
  color: #1a1a1a;
}

.form-wrapper label {
  display: block;
  margin-bottom: 4px;
  font-size: 13px;
  color: #444;
}

.form-wrapper input[type="text"],
.form-wrapper input[type="email"],
.form-wrapper input[type="file"],
.form-wrapper select {
  width: 100%;
  padding: 6px 10px;
  font-size: 13px;
  margin-bottom: 12px;
  border: 1px solid #ccc;
  border-radius: 4px;
  outline: none;
}

.form-wrapper input:focus,
.form-wrapper select:focus {
  border-color: #888;
}

.form-wrapper button {
  padding: 6px 14px;
  background-color: #2c3e50;
  color: #fff;
  font-size: 13px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  margin-top: 6px;
}

.form-wrapper button:hover {
  background-color: #1f2f3d;
}
 */


.form-wrapper {
  max-width: 600px;
  margin: 20px auto;
  background: #fff;
  padding: 20px 25px;
  border-radius: 12px;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.06);
}

.form-wrapper h2 {
  font-size: 13px;
  margin-bottom: 18px;
  color: #222;
  margin-top: -16px;
}

.form-row {
  display: flex;
  align-items: center;
  margin-bottom: 6px;
}

.form-row label {
  width: 130px;
  font-size: 13px;
  color: #444;
  margin-right: 10px;
  text-align: right;
}

.form-row input[type="text"],
.form-row input[type="email"],
.form-row input[type="file"],
.form-row select {
  flex: 1;
  padding: 0px 4px;
  font-size: 13px;
  border: 1px solid #ccc;
  border-radius: 4px;
  height: 22px;
}

.form-row input[type="file"] {
  padding: 0px;
  height: auto;
}

button[type="submit"] {
  background-color: #223c60;
  color: #fff;
  border: none;
  padding: 5px 16px;
  border-radius: 4px;
  font-size: 10px;
  cursor: pointer;
  transition: background 0.3s ease;
}

button[type="submit"]:hover {
  background-color: #1b2f4e;
}

/* Responsive: Mobile screens */
@media (max-width: 600px) {
  .form-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .form-row label {
    width: 100%;
    margin-bottom: 4px;
    text-align: left;
  }

  .form-row input,
  .form-row select {
    width: 100%;
  }

  .form-row button {
    align-self: flex-end;
  }
}

.phone-ext-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.phone-ext-row label {
  width: 140px;
}

.phone-ext-row input[type="text"] {
flex: 1;
  padding: 0px 4px;
  font-size: 13px;
  border: 1px solid #ccc;
  border-radius: 4px;
  height: 22px;
}

.ext-input {
  width: 60px;
  padding: 4px 6px;
  font-size: 13px;
}


.form-row select {
  padding: 4px 8px;
  font-size: 10px;
  width: 250px;
}

.clear-btn {
 
  background-color: #f44336;
  color: white;
  padding: 5px 16px;
  font-size: 10px;
  border: none;
    border-radius: 4px;
 cursor: pointer;
    transition: background 0.3s
}


.clear-btn:hover {
  background-color: #d32f2f;
}


    .container {
      max-width: 800px;
      margin: 0 auto;
      padding: 1px 20px;
    }

    .edit-company-wrapper,
    .add-company-wrapper {
      background: #fff;
      /* padding: 20px 25px; */
      margin-bottom: 25px;
      border-radius: 10px;
      box-shadow: 0 0 10px rgba(0,0,0,0.08);
    }
    .add-company-wrapper {
      background: #fff;
      /* padding: 20px 25px; */
      margin-bottom: 25px;
      border-radius: 10px;
      box-shadow: 0 0 10px rgba(0,0,0,0.08);
    }

    .edit-company-wrapper form,
    .add-company-wrapper form {
      
      flex-wrap: wrap;
      align-items: center;
      justify-content: center;
      gap: 10px;
    }


    .form-wrapper12 {
    max-width: 950px;
    margin: 20px auto;
    background: #fff;
    padding: 20px 25px;
    border-radius: 12px;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.06);
}

   


.drag-container {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    margin-top: 20px;
}

.drag-box {
    flex: 1;
    border: 1px solid #ccc;
    border-radius: 12px;
    padding: 16px;
    background-color: #f9f9f9;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    min-height: 300px;
    transition: all 0.3s ease;
}

.drag-box h4 {
    font-size: 16px;
    margin-bottom: 10px;
    color: #444;
    border-bottom: 1px solid #ddd;
    padding-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.drag-list {
    list-style: none;
    padding: 0;
    margin: 0;
    min-height: 240px;
}

.drag-list li {
    background-color: #fff;
    padding: 8px 12px;
    margin-bottom: 8px;
    border: 1px solid #ddd;
    border-radius: 6px;
    cursor: grab;
    transition: background 0.2s ease;
    font-size: 14px;
    color: #333;
}

.drag-list li:hover {
    background-color: #eef;
}

.drag-list li:active {
    cursor: grabbing;
}

.button-container {
    margin-top: 20px;
    text-align: center;
}

.button-container button {
    background-color: #007BFF;
    color: white;
    padding: 10px 18px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.3s ease;
}

.button-container button:hover {
    background-color: #0056b3;
}

.btn-primary {
    padding: 6px 12px;
    background-color: #007BFF;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}
#previewModal {
    display: none;
    position: fixed;
    top: 10%;
    left: 10%;
    width: 80%;
    height: 80%;
    background: #fff;
    box-shadow: 0 0 15px rgba(0,0,0,0.4);
    overflow: auto;
    padding: 20px;
    z-index: 9999;
    border-radius: 8px;
}

#previewModal h3 {
    margin: 0;
}

#previewModal .modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#previewModal .close-btn {
    background: red;
    color: white;
    border: none;
    padding: 6px 10px;
    border-radius: 4px;
    cursor: pointer;
}
.center-buttons {
    text-align: center;
    margin-top: 15px;
}












