 /* ================= GLOBAL RESET ================= */
* {
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    margin: 0;
    background: #f2f5ff;
}
.form-box,
.table-box {
    box-shadow: 0 3px 8px rgba(0,0,0,0.08);
}
/* ================= FIXED TOPBAR ================= */
.topbar {
    height: 55px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

/* ================= FIXED SIDEBAR ================= */
.sidebar {
    width: 240px;
    position: fixed;
    top: 55px;
    left: 0;
    bottom: 0;
    overflow-y: auto;
    z-index: 900;
    transition: left 0.3s ease;
}

/* ================= PAGE CONTENT ================= */
.page-container {
    margin-left: 240px;
    margin-top: 55px;
    padding: 20px;
    width: calc(100% - 240px);
    min-height: calc(100vh - 55px);
    background: #f2f5ff;
    transition: margin-left 0.3s ease;
}

/* ================= MAIN TITLE ================= */
.main h2 {
    margin: 0 0 15px;
    font-size: 20px;
    font-weight: bold;
}

/* ================= FORM BOX ================= */
.form-box {
    background: #fff;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 15px;
}

/* ================= DEFAULT GRID (4 COLUMN) ================= */
.grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

/* ================= TWO COLUMN GRID (FOR FIRM CREATION) ================= */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px 18px;
}

/* Full width field (Address etc.) */
.grid-2 .full {
    grid-column: span 2;
}

/* ================= FORM HEAD ================= */
.form-box h4 {
    margin: 0 0 12px;
    font-size: 13px;
    font-weight: bold;
    color: #fff;
    background: #e74c3c;
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
}

/* ================= INPUT ================= */
label {
    font-size: 13px;
    font-weight: bold;
    display: block;
    margin-bottom: 4px;
}

input,
select,
textarea {
    width: 100%;
    padding: 7px;
    font-size: 12px;
    border: 1px solid #cfd6e4;
    border-radius: 3px;
}

/* ================= TEXTBOX CURSOR (CARET) ================= */
input,
select,
textarea {
    caret-color: #2563eb;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

/* ================= ON FOCUS ================= */
input:focus,
select:focus,
textarea:focus {
    outline: 2px solid #22c55e;
    border-color: #22c55e;
    background-color: #f0fdf4;
    caret-color: #16a34a;
}


/* ================= LOST FOCUS ================= */
input:not(:focus),
select:not(:focus),
textarea:not(:focus) {
    border-color: #cfd6e4;
    background-color: #ffffff;
    caret-color: #2563eb;
}

/* ================= SEARCH ================= */
.search-row {
    margin-bottom: 10px;
}

.search-inline {
    display: flex;
    gap: 8px;
    align-items: center;
}

.search-inline input {
    width: 250px;
    max-width: 250px;
    padding: 8px;
}

/* ================= BUTTONS ================= */
button {
    padding: 9px 16px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.15);
    transition: background-color 0.2s ease, transform 0.1s ease, box-shadow 0.1s ease;
}

button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

button:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0,0,0,0.15);
}

/* Action Buttons */
.page-actions,
.action-buttons {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-bottom: 12px;
}

.btn-new     { background:#2563eb; } /* Blue */
.btn-edit    { background:#8cda8c; }  /* comment says Orange */
.btn-delete  { background:#cab4ec; }  /* comment says Red */
.btn-show    { background:#0f766e; } /* Dark Teal */
.btn-print   { background:#15803d; } /* Green */
.btn-mail    { background:#facc15; color:#000; } /* Yellow */
.btn-search  { background:#1d4ed8; } /* Dark Blue */
.btn-save    { background:#16a34a; } /* Green */
.btn-update  { background:#7c3aed; } /* Purple */
.btn-verify  { background:#2563eb; } /* Blue */
/* ================= STRONG ACTION BUTTONS ================= */
.btn-save,
.btn-update,
.btn-new,
.btn-delete,
.btn-edit {
    opacity: 1 !important;
    filter: none !important;
    box-shadow: 0 4px 10px rgba(0,0,0,0.25);
}

/* ================= TABLE ================= */


.table-box {
    background: #fff;
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th {
    background: #eee;
    padding: 8px;
    font-size: 12px;
    white-space: nowrap;
}

td {
    padding: 7px;
    font-size: 12px;
    border-bottom: 1px solid #ddd;
    white-space: nowrap;
}

/* Table inside form */
.form-box table th,
.form-box table td {
    border: 1px solid #ddd;
    padding: 6px;
    font-size: 11px;
}

.form-box table input,
.form-box table select {
    font-size: 11px;
    padding: 4px;
}

/* ================= FOOTER ================= */
.footer {
    margin-top: 15px;
    font-size: 11px;
    color: #666;
    text-align: center;
}

/* ================= RESPONSIVE ================= */
@media (max-width: 1200px) {
    .grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .grid,
    .grid-2 {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 992px) {
    .sidebar {
        left: -240px;
    }
    .page-container {
        margin-left: 0;
        width: 100%;
    }
}
@media (max-width: 480px) {
    .search-inline {
        flex-direction: column;
        align-items: stretch;
    }
    .search-inline input {
        width: 100%;
        max-width: 100%;
    }
}        