.heading{
    margin-left: 2.5%;
    margin-right: 2.5%;
    font-size: 23px;
}

.img_edt_tools{
    display: flex;
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
    gap: 5px;
}
.ie_tl{
    margin: 2px;
    padding: 6px 10px;
    border: 1px solid #000;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    background: #fff;
}
.ie_tl:hover{
  background: #000;
  color:#fff;    
}

/* --- FIXED: Sub Tool Panel Layout & Visibility --- */
.ie_sub_tool_panel {
    background: #f9f9f9;
    border: 1px solid #000;
    border-radius: 4px;
    margin: 10px 2.5%;
    padding: 15px;
    display: block; /* Managed dynamically via JS */
}

.ie_sub_tool_panel:empty {
    display: none;
}

.ie_upld_bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0 2.5%;
    flex-wrap: wrap;
}

.ie_upld{
    display: flex;
    justify-content: flex-end;
    font-size: 16px;
    cursor: pointer;
    padding: 6px 12px;
    border: 1px dashed #000;
    border-radius: 4px;
    margin-bottom: 6px;
}
.ie_upld:hover {
    background: #000;
    color: #fff;
}

.ie_quick_actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.ie_q_btn {
    padding: 6px 10px;
    border: 1px solid #000;
    background: #fff;
    border-radius: 4px;
    cursor: pointer;
}
.ie_q_btn:hover {
    background: #000;
    color: #fff;
}

.ie_q_btn_crp {
    padding: 6px 10px;
    border: 1px solid #000;
    background:#000; 
    color:#fff;
    border-radius: 4px;
    cursor: pointer;
}
.ie_q_btn_crp:hover {
    background: #32CD32;
    border: 1px solid #32CD32;
    color: #fff;
}

.ie_q_btn_crp_cnc {
    padding: 6px 10px;
    border: 1px solid #000;
    background:#fff; 
    color:#ff4d4d; 
    border-color:#ff4d4d;
    border-radius: 4px;
    cursor: pointer;
}
.ie_q_btn_crp_cnc:hover {
    background: #ff4d4d;
    color: #fff;
}

.ie_q_btn_fnt {
    padding: 6px 10px;
    border: 1px solid #000;
    background:#000; 
    color:#fff;
    border-radius: 4px;
    cursor: pointer;
}
.ie_q_btn_fnt:hover {
    background: #32CD32;
    border: 1px solid #32CD32;
    color: #fff;
}

.ie_q_btn_fnt_rst {
    padding: 6px 10px;
    border: 1px solid #000;
    background:#fff; 
    color:#ff4d4d; 
    border-color:#ff4d4d;
    border-radius: 4px;
    cursor: pointer;
}
.ie_q_btn_fnt_rst:hover {
    background: #ff4d4d;
    color: #fff;
}

.ie_q_btn_fltrst {
    padding: 6px 10px;
    border: 1px solid #000;
    background:#fff; 
    color:#ff4d4d; 
    border-color:#ff4d4d;
    border-radius: 4px;
    cursor: pointer;
}
.ie_q_btn_fltrst:hover {
    background: #ff4d4d;
    color: #fff;
}

.ie_q_btn_aptxt {
    padding: 6px 10px;
    border: 1px solid #000;
    background:#000; 
    color:#fff;
    border-radius: 4px;
    cursor: pointer;
}
.ie_q_btn_aptxt:hover {
    background: #32CD32;
    border: 1px solid #32CD32;
    color: #fff;
}


.ie_dd_zs{
     padding: 6px 10px;
    border: 1px solid #000;
    background: #fff;
    border-radius: 4px;
    cursor: pointer;
}
.ie_dd_zs:hover {
    background: #000;
    color: #fff;
}

.image_editor{
    display: flex;
    justify-content: center;
    position: relative;
    overflow: auto;
    max-height: 70vh;
    border: 1px solid #ccc;
    background: #e5e5e5;
    margin: 1.5% 2.5%;
    padding: 10px;
}

#img_canvas {
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    background: #fff;
    touch-action: none;
    -webkit-touch-callout: none;
    user-select: none;
}

.img_edt_hr{
    margin:1%;
    border-top: 1px solid #000;
}

.tool-controls-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 10px;
}

.tool-control-group {
    display: flex;
    flex-direction: column;
    font-size: 13px;
}

.tool-control-group label {
    font-weight: bold;
    margin-bottom: 3px;
}

.tool-control-group input, .tool-control-group select {
    padding: 4px;
    border: 1px solid #ccc;
    border-radius: 3px;
}

a{
    cursor: pointer;
}
a:link {
    text-decoration:none;
}
a:visited {
    color: #000;
}
a:hover {
    text-decoration: underline;
}