/* RESET */
html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto;
  background: #f5f7fb;
}

/* DASHBOARD */
.rp-dashboard {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
}

/* TOPBAR */
.rp-topbar {
  height: 60px;
  background: #0f172a;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
}

.rp-left {
  display: flex;
  align-items: center;
  gap: 15px;
}

.rp-brand {
  font-size: 18px;
  font-weight: 600;
}

/* TOGGLE */
#rpToggle {
  background: none;
  border: none;
  color: #fff;
  font-size: 22px;
  cursor: pointer;
}

/* RIGHT */
.rp-right {
  display: flex;
  align-items: center;
  gap: 15px;
  position: relative;
}

/* TOP MENU */
.rp-top-menu {
  display: flex;
  gap: 25px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.rp-top-menu li {
  cursor: pointer;
  color: #fff;
}

.rp-top-menu a {
  color: #fff;
  text-decoration: none;
}

/* MOBILE MENU BTN */
#rpMobileMenu {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 22px;
  cursor: pointer;
}

/* DROPDOWN */
.rp-mobile-dropdown {
  position: absolute;
  top: 50px;
  right: 0;
  background: #0f172a;
  border-radius: 8px;
  padding: 10px 0;
  display: none;
  flex-direction: column;
  min-width: 150px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.25);
}

.rp-mobile-dropdown a {
  color: #fff;
  text-decoration: none;
  padding: 10px 15px;
  display: block;
}

.rp-mobile-dropdown a:hover {
  background: #1f2937;
}

.rp-mobile-dropdown.show {
  display: flex;
}

/* MAIN */
.rp-main {
  display: flex;
  flex: 1;
}

/* SIDEBAR */
.rp-sidebar {
  width: 240px;
  background: #0f172a;
  color: #fff;
  overflow-y: auto;
  transition: 0.3s;
}

.rp-sidebar.collapsed {
  width: 70px;
}

/* MENU */
.rp-menu {
  list-style: none;
  margin: 0;
  padding: 20px 10px;
}

.rp-menu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-radius: 6px;
  cursor: pointer;
}

.rp-menu-item:hover {
  background: #1f2937;
}

.rp-menu-item.active {
  background: #2563eb;
}

.rp-letter {
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #1e293b;
  border-radius: 6px;
}

.rp-text {
  white-space: nowrap;
}

.rp-sidebar.collapsed .rp-text {
  display: none;
}

/* CONTENT */
.rp-content {
  flex: 1;
  padding: 30px;
  overflow: auto;
}

/* PRODUCT GRID */
.rp-products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 25px;
}

/* PRODUCT CARD (LATEST) */
.rp-product-card {
  background: #fff;
  border-radius: 14px;
  padding: 16px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.06);
  transition: .25s;
  position: relative;
}

.rp-product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.12);
}

.rp-product-card img {
  width: 100%;
  height: 170px;
  object-fit: cover;
  border-radius: 10px;
  background: #f3f4f6;
}

.rp-product-card h3 {
  text-align: center;
  font-size: 16px;
  font-weight: 600;
  margin: 12px 0;
  color: #111827;
}

/* ACTIONS */
.rp-product-actions {
  display: flex;
  gap: 8px;
  justify-content: center;
  align-items: center;
}

/* BUTTON BASE */
.rp-btn {
  border: none;
  border-radius: 6px;
  padding: 8px 12px;
  font-size: 13px;
  cursor: pointer;
  transition: .2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* PRIMARY BUTTON */
.rp-btn-primary {
  background: #2563eb;
  color: #fff;
  flex: 1;
}

.rp-btn-primary:hover {
  background: #1d4ed8;
}

/* SECONDARY BUTTON */
.rp-btn-secondary {
  background: #256eff;
  color: #111;
  width: 36px;
}

.rp-btn-secondary:hover {
  background: #e5e7eb;
}

/* ACCESS BUTTON (LATEST) */
.rp-btn-access {
  flex: 1;
  background: #2563eb;
  color: #fff;
  border: none;
  padding: 10px;
  border-radius: 8px;
  font-weight: 500;
  cursor: pointer;
  transition: .2s;
}

.rp-btn-access:hover {
  background: #1d4ed8;
}

/* ICON BUTTON */
.rp-btn-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  border: none;
  background: #f3f4f6;
  cursor: pointer;
  font-size: 16px;
  transition: .2s;
}

.rp-btn-icon:hover {
  background: #e5e7eb;
}

/* RIBBON */
.rp-ribbon {
  position: absolute;
  top: 12px;
  left: -6px;
  background: #ef4444;
  color: #fff;
  font-size: 11px;
  padding: 4px 10px;
  font-weight: 600;
  border-radius: 4px;
  transform: rotate(-10deg);
  box-shadow: 0 3px 10px rgba(0,0,0,0.2);
}

/* PAGE VIEWER */
.rp-page-viewer {
  width: 100%;
  height: calc(100vh - 120px);
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.05);
}

.rp-page-viewer iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* MOBILE */
@media (max-width: 768px) {
  .rp-sidebar {
    position: fixed;
    top: 60px;
    left: -240px;
    height: 100%;
    z-index: 1000;
  }

  .rp-sidebar.open {
    left: 0;
  }

  .rp-products-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .rp-top-menu {
    display: none;
  }

  #rpMobileMenu {
    display: block;
  }
}

@media (max-width: 480px) {
  .rp-products-grid {
    grid-template-columns: 1fr;
  }
}
.rp-disabled{
opacity:0.6;
cursor:not-allowed;
pointer-events:none;
}

.rp-dashboard-home{
display:grid;
gap:20px;
}

.rp-dashboard-frame{
height:240px;
border-radius:10px;
overflow:hidden;
border:1px solid rgba(255,255,255,0.08);
}

.rp-dashboard-frame iframe{
width:100%;
height:100%;
border:0;
}



/* USER WELCOME CARD */

.rp-user-card{
display:flex;
justify-content:space-between;
align-items:center;
background:linear-gradient(120deg,#0f2b46,#061a2d);
padding:28px;
border-radius:14px;
margin-bottom:25px;
color:#fff;
box-shadow:0 10px 25px rgba(0,0,0,0.4);
}

.rp-user-card h2{
font-size:24px;
font-weight:600;
margin:0;
color:white;
}

.rp-user-email{
opacity:0.85;
font-size:14px;
margin-top:6px;
}

.rp-live-time-label{
font-size:12px;
opacity:0.7;
}

.rp-live-time{
font-size:26px;
font-weight:600;
color:#66d1ff;
}


/* GRID LAYOUT */

.rp-dashboard-grid{
display:grid;
grid-template-columns:1fr 1fr;
gap:25px;
}

@media(max-width:900px){
.rp-dashboard-grid{
grid-template-columns:1fr;
}
}


/* DASHBOARD CARDS */

.rp-card{
background:linear-gradient(160deg,#0c1f34,#081423);
padding:20px;
border-radius:14px;
border:1px solid rgba(255,255,255,0.05);
box-shadow:0 8px 20px rgba(0,0,0,0.35);
position:relative;
}


/* CARD TITLES */

.rp-card-title{
font-size:15px;
font-weight:600;
margin-bottom:15px;
color:#9edbff;
letter-spacing:0.5px;
}


/* IFRAME CONTAINER */

.rp-dashboard-frame{
height:260px;
border-radius:12px;
overflow:hidden;
border:1px solid rgba(255,255,255,0.08);
background:#081423;
}

.rp-dashboard-frame iframe{
width:100%;
height:100%;
border:0;
}


/* NOTICE LIST (INSIDE IFRAME PAGE) */

.rp-list{
max-height:260px;
overflow:auto;
}


/* NOTICE ITEM */

.rp-item{
position:relative;
padding:14px 16px;
margin-bottom:12px;
border-radius:10px;
background:#11263f;
border:1px solid rgba(255,255,255,0.06);
transition:0.25s;
}

.rp-item:hover{
background:#153153;
}


/* TITLE */

.rp-item strong{
display:block;
font-size:14px;
margin-bottom:4px;
color:#ffffff;
}


/* CONTENT */

.rp-item p{
font-size:13px;
color:#cfd9e6;
margin:0;
}


/* DATE */

.rp-date{
position:absolute;
top:10px;
right:12px;
font-size:11px;
color:#8bbce6;
}


/* STATUS DOT */

.rp-status-dot{
width:8px;
height:8px;
background:#00e676;
border-radius:50%;
display:inline-block;
margin-right:8px;
}


/* SCROLLBAR */

.rp-list::-webkit-scrollbar{
width:6px;
}

.rp-list::-webkit-scrollbar-track{
background:transparent;
}

.rp-list::-webkit-scrollbar-thumb{
background:#2f5b88;
border-radius:10px;
}

.rp-list::-webkit-scrollbar-thumb:hover{
background:#3e78b0;
}

/* MAIN DASHBOARD */

.rp-dashboard{
height:100vh;
display:flex;
flex-direction:column;
overflow:hidden;
}


/* TOPBAR */

.rp-topbar{
flex:0 0 auto;
}


/* MAIN AREA */

.rp-main{
flex:1;
display:flex;
overflow:hidden;
}


/* SIDEBAR */

.rp-sidebar{
width:240px;
background:#0c1f34;
height:100%;
display:flex;
flex-direction:column;
overflow:hidden;
}


/* SIDEBAR MENU SCROLL */

.rp-menu{
flex:1;
overflow-y:auto;
padding:10px 0;
}

.rp-bottom-menu{
flex:0 0 auto;
border-top:1px solid rgba(255,255,255,0.05);
padding:10px 0;
}


/* CONTENT AREA */

.rp-content{
flex:1;
overflow-y:auto;
padding:25px;

}


/* CONTENT AREA SCROLL */

#rp-content-area{
min-height:100%;
}


/* SCROLLBAR STYLE */

.rp-sidebar::-webkit-scrollbar,
.rp-content::-webkit-scrollbar,
.rp-menu::-webkit-scrollbar{
width:6px;
}

.rp-sidebar::-webkit-scrollbar-thumb,
.rp-content::-webkit-scrollbar-thumb,
.rp-menu::-webkit-scrollbar-thumb{
background:#2f5b88;
border-radius:10px;
}


/* MOBILE */

@media (max-width:768px){

.rp-sidebar{
position:fixed;
left:-260px;
top:60px;
height:calc(100vh - 60px);
z-index:999;
transition:0.3s;
}

.rp-sidebar.open{
left:0;
}

.rp-content{
padding:18px;
}

}

.rp-popup-overlay{
position:fixed;
top:0;
left:0;
width:100%;
height:100%;
background:rgba(0,0,0,0.6);
display:flex;
align-items:center;
justify-content:center;
z-index:9999;
opacity:0;
visibility:hidden;
transition:0.3s;
}

.rp-popup-overlay.show{
opacity:1;
visibility:visible;
}

.rp-popup-box{
width:420px;
max-width:90%;
background:#0c1f34;
border-radius:14px;
padding:20px;
color:#fff;
box-shadow:0 20px 40px rgba(0,0,0,0.5);
}

.rp-popup-header{
display:flex;
justify-content:space-between;
margin-bottom:15px;
}

.rp-popup-close{
background:none;
border:none;
color:#fff;
font-size:20px;
cursor:pointer;
}

.rp-loading{
display:flex;
flex-direction:column;
align-items:center;
justify-content:center;
min-height:220px;
gap:12px;
font-size:14px;
color:#777;
}

.rp-spinner{
width:36px;
height:36px;
border:3px solid #e5e7eb;
border-top:3px solid #2563eb;
border-radius:50%;
animation:rpSpin 0.8s linear infinite;
}

.rp-loading-text{
font-weight:500;
letter-spacing:.3px;
}

@keyframes rpSpin{
0%{transform:rotate(0deg);}
100%{transform:rotate(360deg);}
}
.rp-skeleton-grid{
display:grid;
grid-template-columns:repeat(auto-fill,minmax(220px,1fr));
gap:16px;
padding:10px;
}

.rp-skeleton-grid{
display:grid;
grid-template-columns:repeat(auto-fill,minmax(240px,1fr));
gap:18px;
padding:15px;
width:100%;
min-height:70vh;
transition:opacity .35s ease, transform .35s ease;
}

.rp-skeleton-hide{
opacity:0;
transform:translateY(8px);
}

.rp-skeleton-card{
height:150px;
border-radius:10px;
background:linear-gradient(
90deg,
#f3f4f6 25%,
#e5e7eb 37%,
#f3f4f6 63%
);
background-size:400% 100%;
animation:rpSkeleton 1.4s ease infinite;
}

@keyframes rpSkeleton{
0%{background-position:100% 0}
100%{background-position:-100% 0}
}

.rp-order-skeleton{
display:flex;
flex-direction:column;
gap:14px;
padding:10px;
}

.rp-order-skeleton-row{
display:flex;
justify-content:space-between;
align-items:center;
padding:14px;
border-radius:8px;
background:#fff;
box-shadow:0 1px 3px rgba(0,0,0,0.05);
}

.rp-order-skeleton-left{
flex:1;
}

.rp-sk-line{
height:12px;
border-radius:6px;
background:linear-gradient(
90deg,
#f3f4f6 25%,
#e5e7eb 37%,
#f3f4f6 63%
);
background-size:400% 100%;
animation:rpSkeleton 1.4s ease infinite;
margin-bottom:8px;
}

.rp-sk-title{
width:60%;
height:14px;
}

.rp-sk-small{
width:40%;
height:10px;
}

.rp-sk-btn{
width:70px;
height:28px;
border-radius:6px;
}

@keyframes rpSkeleton{
0%{background-position:100% 0}
100%{background-position:-100% 0}
}

.rp-skeleton-product{
pointer-events:none;
}

.rp-sk-image{
width:100%;
height:150px;
border-radius:8px;
margin-bottom:10px;
background:linear-gradient(
90deg,
#f3f4f6 25%,
#e5e7eb 37%,
#f3f4f6 63%
);
background-size:400% 100%;
animation:rpSkeleton 1.4s ease infinite;
}

.rp-sk-line{
height:10px;
border-radius:6px;
margin:8px auto;
background:linear-gradient(
90deg,
#f3f4f6 25%,
#e5e7eb 37%,
#f3f4f6 63%
);
background-size:400% 100%;
animation:rpSkeleton 1.4s ease infinite;
}

.rp-sk-cat{width:40%;}
.rp-sk-title{width:70%;height:12px;}

.rp-sk-price-row{
display:flex;
justify-content:center;
gap:6px;
margin-top:6px;
}

.rp-sk-price{width:50px;height:14px;}
.rp-sk-price-small{width:35px;height:12px;}

.rp-sk-btn{
height:34px;
border-radius:6px;
margin-top:10px;
background:linear-gradient(
90deg,
#f3f4f6 25%,
#e5e7eb 37%,
#f3f4f6 63%
);
background-size:400% 100%;
animation:rpSkeleton 1.4s ease infinite;
}

@keyframes rpSkeleton{
0%{background-position:100% 0}
100%{background-position:-100% 0}
}

