/* =====================
   RESET & GLOBAL
===================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Segoe UI", Arial, sans-serif;
}

body {
    background: #f4f6f8;
    color: #333;
}

/* =====================
   HEADER (TOP)
===================== */
header {
    position: fixed;
    top: 0;
    left: 250px;              /* <-- PENTING */
    height: 64px;
    width: calc(100% - 250px);
    background: #ffffff;
    border-bottom: 1px solid #ddd;
    display: flex;
    align-items: center;
    padding: 0 24px;
    z-index: 1000;
}

header .logo {
    font-size: 18px;
    font-weight: 700;
    color: #b11226;
}

header .user-info {
    margin-left: auto;
    font-size: 14px;
    color: #555;
}

/* =====================
   SIDEBAR (LEFT FIX)
===================== */
aside {
    position: fixed;
    top: 0;
    left: 0;
    width: 250px;
    height: 100vh;
    background: linear-gradient(180deg, #b11226, #7a0c1b);
    color: #fff;
    padding-top: 20px;
    z-index: 1100;
}

/* Sidebar Brand */
.sidebar-brand {
    font-size: 16px;
    font-weight: bold;
    padding: 16px 24px;
    letter-spacing: 1px;
    border-bottom: 1px solid rgba(255,255,255,0.3);
    margin-bottom: 20px;
}

/* Sidebar Menu */
aside a {
    display: flex;
    align-items: center;
    gap: 12px;
    color: rgba(255,255,255,0.9);
    text-decoration: none;
    padding: 12px 24px;
    margin: 6px 12px;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
}

/* Hover */
aside a:hover {
    background: rgba(255,255,255,0.15);
}

/* Active Menu */
aside a.active {
    background: #d61f3c;
    box-shadow: 0 6px 12px rgba(214,31,60,0.45);
}

/* =====================
   MAIN CONTENT
===================== */
main {
    margin-left: 250px;
    margin-top: 64px;
    padding: 24px;
    min-height: calc(100vh - 104px);
}

/* =====================
   CARD
===================== */
.card {
    background: #ffffff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
    margin-bottom: 20px;
}

.card h2 {
    color: #b11226;
    margin-bottom: 10px;
}

/* =====================
   FORM
===================== */
input, button {
    width: 100%;
    padding: 10px;
    margin-bottom: 12px;
    border-radius: 6px;
    border: 1px solid #ccc;
}

input:focus {
    outline: none;
    border-color: #b11226;
}

button {
    background: #b11226;
    color: #fff;
    border: none;
    font-weight: bold;
    cursor: pointer;
}

button:hover {
    opacity: 0.9;
}

/* =====================
   TABLE
===================== */
table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
}

th {
    background: #f1f1f1;
    padding: 10px;
    text-align: left;
}

td {
    padding: 10px;
    border-top: 1px solid #eee;
}

/* =====================
   FOOTER
===================== */
footer {
    position: fixed;
    bottom: 0;
    left: 250px;
    height: 40px;
    width: calc(100% - 250px);
    background: #ffffff;
    border-top: 1px solid #ddd;
    text-align: center;
    line-height: 40px;
    font-size: 13px;
    color: #777;
}

/* =====================
   BUTTON ACTION
===================== */
.btn {
    display: inline-block;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: 0.25s;
}

.btn-primary {
    background: linear-gradient(135deg, #b11226, #d61f3c);
    color: #fff;
}

.btn-primary:hover {
    opacity: 0.9;
    box-shadow: 0 6px 12px rgba(177,18,38,0.35);
}


/* =====================
   FILTER BAR - MODERN
===================== */
.filter-bar {
    display: flex;
    gap: 12px;
    margin: 16px 0 20px;
    flex-wrap: wrap;
}

.filter-bar input,
.filter-bar select {
    padding: 10px 14px;
    border-radius: 8px;
    border: 1px solid #ddd;
    font-size: 14px;
    min-width: 220px;
    transition: 0.25s;
}

.filter-bar input:focus,
.filter-bar select:focus {
    border-color: #b11226;
    box-shadow: 0 0 0 2px rgba(177,18,38,0.15);
    outline: none;
}

/* =====================
   TABLE RESPONSIVE
===================== */
.table-responsive {
    overflow-x: auto;
}

.table-responsive table {
    min-width: 900px;
}

/* =====================
   DROP DOWN >> ROLE
===================== */
.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    color: #333;
}
.form-action {
    margin-top: 20px;
}

/* Wrapper */
.select-wrapper {
    position: relative;
}

/* Select */
.select-wrapper select {
    width: 100%;
    padding: 12px 40px 12px 14px;
    border-radius: 10px;
    border: 1px solid #ddd;
    background: #fff;
    font-size: 14px;
    appearance: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

/* Hover */
.select-wrapper select:hover {
    border-color: #c62828;
}

/* Focus */
.select-wrapper select:focus {
    outline: none;
    border-color: #c62828;
    box-shadow: 0 0 0 3px rgba(198, 40, 40, 0.15);
}

/* Arrow */
.select-arrow {
    position: absolute;
    top: 50%;
    right: 14px;
    transform: translateY(-50%);
    pointer-events: none;
    font-size: 14px;
    color: #c62828;
}

/* Disabled option */
select option:disabled {
    color: #999;
}

/* =====================
   CENTER FORM PAGE
===================== */
.form-center {
    display: flex;
    justify-content: center;
}

.form-center .card {
    width: 100%;
    max-width: 900px;   /* ✅ lebih lega */
}

/* FORM WRAPPER */
.form-center form {
    max-width: 650px;
    margin: auto;
}

/* TEXTAREA STYLE */
textarea {
    width: 100%;
    min-height: 90px;
    resize: vertical;
    border-radius: 6px;
    padding: 10px;
    border: 1px solid #ccc;
}
textarea:focus {
    border-color: #b11226;
    outline: none;
    box-shadow: 0 0 0 2px rgba(177,18,38,0.12);
}

/* PIC GRID LAYOUT */
.pic-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 40px;
    gap: 10px;
    align-items: center;
    margin-bottom: 10px;
}

/* PIC REMOVE BUTTON */
.pic-row button {
    background: #b11226;
    color: #fff;
    border: none;
    padding: 8px 0;
    cursor: pointer;
    border-radius: 6px;
}
.pic-row button:hover {
    opacity: 0.85;
}

/* MOBILE RESPONSIVE */
@media (max-width: 768px) {
    .pic-row {
        grid-template-columns: 1fr 1fr;
    }
    .pic-row input:nth-child(3) {
        grid-column: span 2;
    }
    .pic-row button {
        grid-column: span 2;
    }
}


/* ===== PROJECT FORM LAYOUT ===== */
.form-center {
    max-width: 650px;
    margin: 0 auto;
}

.card h2 {
    margin-bottom: 18px;
}

/* Group field layout */
.form-group {
    margin-bottom: 14px;
}

.form-group label {
    font-weight: 600;
    margin-bottom: 6px;
    display: inline-block;
}

textarea {
    min-height: 80px;
}

/* Multi Client Row */
.client-row {
    display: flex;
    gap: 10px;
    margin-bottom: 8px;
    align-items: center;
}

.client-row select {
    width: 100%;
}

.client-row .btn {
    width: auto;
    padding: 8px 10px;
    background: #555;
    color: #fff;
}

/* File Upload Display */
.file-info {
    font-size: 13px;
    background: #f6f6f6;
    border: 1px solid #ddd;
    padding: 10px;
    margin-bottom: 15px;
    border-radius: 6px;
}

/* Form Action Buttons */
.form-action {
    margin-top: 15px;
    display: flex;
    justify-content: space-between;
}

/* =====================
   SELECT SERAGAM
===================== */
.select-wrapper {
    position: relative;
}

.select-wrapper select {
    width: 100%;
    padding: 12px 42px 12px 14px;
    border-radius: 10px;
    border: 1px solid #ddd;
    background: #fff;
    font-size: 14px;
    appearance: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.select-wrapper select:focus {
    outline: none;
    border-color: #b11226;
    box-shadow: 0 0 0 3px rgba(177, 18, 38, 0.15);
}

.select-arrow {
    position: absolute;
    top: 50%;
    right: 14px;
    transform: translateY(-50%);
    font-size: 12px;
    color: #b11226;
    pointer-events: none;
}

.badge {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    color: #ff0000;
}

.badge-draft { background: #9e9e9e; }
.badge-released { background: #2196f3; }
.badge-ap1 { background: #ff9800; }
.badge-ap2 { background: #4caf50; }

.dropdown{
 display:none;
 border:1px solid #ddd;
 border-radius:8px;
 background:#fff;
 max-height:200px;
 overflow:auto;
 z-index:10;
}
.dropdown div{
 padding:10px;
 cursor:pointer;
 border-bottom:1px solid #eee;
}
.dropdown div:hover{
 background:#f5f5f5;
}

.emp-item{
  padding:8px 10px;
  cursor:pointer;
}
.emp-item:hover{
  background:#f2f2f2;
}
.filter-group{
  position:relative;
}

/* ===== TOOLBAR ===== */
.toolbar{
display:flex;
flex-wrap:wrap;
gap:12px;
margin-bottom:15px;
align-items:flex-end;
}
.toolbar-item label{
font-size:12px;
color:#666;
display:block;
margin-bottom:4px;
}
.toolbar-item select{
padding:6px 10px;
border-radius:6px;
border:1px solid #ccc;
}

/* ===== BULK BAR ===== */
.bulk-bar{
display:flex;
gap:10px;
margin-bottom:10px;
flex-wrap:wrap;
}

/* ===== TABLE ===== */
.table-responsive table{
width:100%;
border-collapse:collapse;
}
.table-responsive th{
background:#f8f9fa;
text-align:left;
padding:10px;
font-size:13px;
}
.table-responsive td{
padding:10px;
border-bottom:1px solid #eee;
vertical-align:top;
}

/* ===== BUTTON ===== */
.btn-sm{
padding:4px 10px;
font-size:12px;
border-radius:6px;
}

/* ===== PAGINATION ===== */
.pagination{
display:flex;
gap:6px;
margin-top:15px;
flex-wrap:wrap;
}

.search-select{
  position:relative;
  min-width:220px;
}

.search-input{
  width:100%;
  padding:6px 10px;
  border:1px solid #ccc;
  border-radius:6px;
}

.search-dropdown{
  position:absolute;
  top:110%;
  left:0;
  right:0;
  max-height:220px;
  overflow-y:auto;
  background:#fff;
  border:1px solid #ddd;
  border-radius:6px;
  display:none;
  z-index:999;
}

.search-item{
  padding:8px 10px;
  cursor:pointer;
  font-size:14px;
}

.search-item:hover{
  background:#f1f5f9;
}