
body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    background: #f7f8fa;
    color: #333;
    display: flex;
}

/* ===== LEFT SIDEBAR ===== */
.sidebar {
    width: 60px;
    background: #007bff;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px 0;
    min-height: 100vh;
    box-shadow: 2px 0 5px rgba(0,0,0,0.05);
}

.sidebar-icon {
    font-size: 22px;
    color: #fff;
    cursor: pointer;
    margin: 15px 0;
    transition: all 0.2s;
}

.sidebar-icon:hover {
    transform: scale(1.2);
    color: #ffe600;
}
 
/* ===== MAIN CONTENT ===== */
.main {
    flex: 1;
    padding: 20px 30px;
}

/* ===== HEADER ===== */
.header {
    display: flex;
    flex-direction: column;   /* 🔥 vertical layout */
    align-items: center;
    padding-bottom: 15px;
    border-bottom: 1px solid #ddd;
}

/* Doctor Center */
.doctor-info {
    text-align: center;
    margin-bottom: 15px;
}

.doctor-info h2 {
    margin: 0;
    font-size: 22px;
    color: #007bff;
}

.doctor-info p {
    margin: 2px 0 0 0;
    font-size: 14px;
    color: #555;
}

/* Patient Info */
.patient-full-row {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.patient-line {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}


.field-group {
    display: flex;
    flex-direction: column;
    min-width: 120px;
}

.field-group label {
    font-size: 13px;
    margin-bottom: 3px;
    color: #555;
}

.field-group input, .field-group select {
    padding: 5px 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 13px;
}

/* ===== CONTAINER GRID ===== */
.content {
    display: flex;
    gap: 20px;
    margin-top: 20px;
}

/* LEFT & RIGHT SECTIONS */
.left, .right {
    background: #fff;
    padding: 15px;
    border-radius: 8px;
    flex: 1;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.section-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 40px;
}

.section-title h3 {
    margin: 0;
    font-size: 16px;
    color: #000;
}

.add-btn {
    
    color: #fff;
     border: none;
    padding: 3px 8px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
}

.add-btn:hover {
    /* background: #0056b3; */
}

/* LEFT PANEL ITEMS */
.left-item {
     padding: 5px 8px;
    margin-bottom: 6px;
    border-left: 3px solid #007bff;
     background: #f1f7ff;
    border-radius: 4px;
    font-size: 13px;
}

/* ===== MODAL ===== */
.modal {
    display: none;
    position: fixed;
    z-index: 999;
    top:0; left:0; width:100%; height:100%;
    background: rgba(0,0,0,0.4);
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    width: 450px;
    max-height: 80%;
    overflow-y: auto;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.search-box {
    width: 100%;
    padding: 6px 8px;
    margin: 10px 0;
    border-radius: 4px;
    border: 1px solid #ccc;
}

/* COMPLAINT ITEMS GRID */
.complaint-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px,1fr));
    gap: 8px;
}

.complaint-item {
    padding: 6px 5px;
    border: 1px solid #ccc;
    border-radius: 6px;
    text-align: center;
    cursor: pointer;
    font-size: 12px;
}

.complaint-item.selected {
    background: #e6f2ff;
    border-color: #3399ff;
}

/* NOTES AREA */
.notes-area {
    margin-top: 10px;
    border-top: 1px dashed #ccc;
    padding-top: 10px;
}

.note-row {
    margin-bottom: 8px;
}

.note-row b {
    font-size: 13px;
}

.note-row textarea {
    width: 100%;
    margin-top: 4px;
    padding: 5px;
    font-size: 12px;
    border-radius: 4px;
    border: 1px solid #ccc;
}

.save-btn {
    background: #007bff;
    color: #fff;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 10px;
}

.save-btn:hover {
    background: #0056b3;
}
.patient-type-btn{
  background:#f1f1f1;
  border:1px solid #ccc;
  padding:5px 10px;
  border-radius:4px;
  cursor:pointer;
}
.patient-type-btn.active{
  background:#007bff;
  color:#fff;
  border-color:#007bff;
}

.note-suggestions{
  border:1px solid #ccc;
  border-radius:4px;
  background:#fff;
  max-height:100px;
  overflow-y:auto;
  position:relative;
  z-index:10;
  margin-top:2px;
}
.note-suggestions div{
  padding:4px;
  cursor:pointer;
}
.note-suggestions div:hover{background:#e0f2ff;}


