/* =========================================================
   LAYOUT.CSS — Header, footer, menyular
   ========================================================= */

/* ---------- JOHN CMS STANDART HEADER / FOOTER ---------- */
.hdr {
    background-color: #f1f1f1;
    border-bottom: 1px solid #595959;
    font-weight: bold;
    padding-left: 2px;
}

/* Diqqat! Bu .header JohnCMS ning o'z klassi. O'zgartirmang! */
.header {
    background: #000 url(images/bg.gif);
    border: 1px solid silver;
    border-top: 1px solid red;
    color: #d0d7dd;
    margin: 0;
    padding: 5px 0 6px 4px;
}

.footer {
    background: #000 url(images/bg.gif);
    border-bottom: 2px solid #993333;
    color: #d0d7dd;
    margin: 0;
    padding: 3px 0 4px 4px;
}
.footer a:link, .footer a:visited { color: #d2d2d2; text-decoration: none; }

.tmn {
    background-color: #586776;
    border-top: 3px solid #45515d;
    color: #fff;
    margin: 0;
    padding: 5px 0 4px 4px;
}
.tmn a:link, .tmn a:visited { color: #fff; text-decoration: none; }

.topmenu {
    background-color: #dadde0;
    font-size: x-small;
    padding: 2px 4px 3px 4px;
    margin-bottom: 1px;
    border-bottom: 1px solid #a8b1bb;
    border-right: 1px solid #e1e4e8;
    border-left: 1px solid #e1e4e8;
}
.topmenu input { font-size: x-small; }

/* ---------- USER HEADER (Salomlashish) ---------- */
.user-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #2e7d32;
    color: #fff;
    padding: 8px 10px;
    font-size: 14px;
    font-weight: bold;
}
.user-header .time { font-size: 13px; opacity: .9; }
.user-header a,
.user-header a:link,
.user-header a:visited,
.user-header a:hover,
.user-header a:active {
    color: #fff !important;
    text-decoration: none !important;
}

/* ---------- TOPBAR (Asosiy menyu) ---------- */
.topbar {
    display: flex;
    justify-content: space-around;
    align-items: center;
    background: linear-gradient(#5fbf5f, #3f9f3f);
    padding: 8px 0;
}
.topbar a,
.topbar a:link,
.topbar a:visited {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #eaffea !important;
    text-decoration: none !important;
    font-size: 14px;
    font-weight: bold;
}
.topbar a:hover { color: #fff !important; text-decoration: underline !important; }
.topbar img     { width: 18px; height: 18px; }
.topbar .notif  { color: #f00 !important; font-weight: bold; }
.topbar .zero   { opacity: .6; }

/* ---------- PANEL HEADERS ---------- */
.phdr {
    background: linear-gradient(to bottom, #66bb6a, #43a047);
    color: #fff;
    border: 1px solid #388e3c;
    padding: 10px;
    font-weight: bold;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.2);
}
.phdr a { color: #fff; text-decoration: none; }

.gmenu {
    background: #efe38a;
    border: 1px solid #d9a400;
    border-radius: 4px;
    padding: 6px;
    box-shadow: inset 0 1px 0 #fff5b5;
}
.gmenu a { color: #5e8f1d !important; font-weight: 700; text-decoration: none; }

.fmenu {
    background: linear-gradient(to bottom, #79d400 0%, #58ad00 100%);
    border: 1px solid #4a9200;
    border-bottom: 2px solid #3f7e00;
    color: #fff;
    margin: 1px 0;
    padding: 6px 5px;
    font-weight: bold;
    text-shadow: 0 1px 1px rgba(0,0,0,.35);
    border-radius: 2px;
}
.fmenu div { padding: 2px 0; }
.fmenu a, .fmenu a:visited, .fmenu a:hover, .fmenu a:active {
    color: #fff !important;
    text-decoration: none;
}
.fmenu a:hover { text-decoration: underline; }

.bmenu {
    background-color: #ccd4dd;
    border: 1px solid white;
    margin: 0;
    padding: 4px;
}

.rmenu {
    background: #ffe9e9;
    border: 1px solid #f0b5b5;
    border-radius: 4px;
    padding: 8px 10px;
    margin-top: 6px;
}
.rmenu a, .rmenu a:link, .rmenu a:visited {
    color: #c62828 !important;
    font-weight: bold;
    text-decoration: none;
}
.rmenu img { vertical-align: middle; margin-right: 4px; }

/* ---------- ACTION MENU ---------- */
.menu {
    background: #f9fcf9;
    border: 1px solid #c5d9c5;
    border-radius: 4px;
    margin: 1px;
    padding: 0;
    box-shadow: inset 0 1px 0 #fff;
}
.menu div { padding: 9px 10px; }
.menu div + div { border-top: 1px solid #d7e6d7; }
.menu a, .menu a:link, .menu a:visited {
    color: #2e2e2e !important;
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 10px;
    line-height: 1.2;
}
.menu a:hover { color: #2e7d32 !important; }
.menu img { width: 18px; height: 18px; opacity: .95; flex-shrink: 0; }

/* ---------- PAGINATION ---------- */
.currentpage {
    background-color: #edebeb;
    border: 1px solid #ccc;
    padding: 0 5px;
}
a.pagenav {
    border: 1px solid #ccc;
    padding: 0 3px;
    text-decoration: none;
}
a.pagenav:hover { background-color: #f7f7f7; border: 1px solid #dedede; }

.status-icon { width: 16px; height: 16px; vertical-align: -3px; margin-right: 4px; }