/* 
Button = 059669
Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #1f2937;
    background-color: #f9fafb;
}

/* Login Styles */
.login-body {
    background: linear-gradient(135deg, #059669 0%, #c9c9c9 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    box-sizing: border-box;
}

.login-container {
    width: 100%;
    max-width: 400px;
}

.login-card {
    background: white;
    border-radius: 1.5rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    padding: 2.5rem;
    border: 1px solid #e5e7eb;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    width: 90%; /* Menggunakan persentase agar menyesuaikan lebar layar */
    max-width: 1000px;
}

.login-header {
    text-align: center;
    margin-bottom: 2rem;
}

.login-logo {
    width: 4rem;
    height: 4rem;
    background: linear-gradient(135deg, #059669, #0d9488);
    border-radius: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.login-logo i {
    font-size: 2rem;
    color: white;
}

.login-header h1 {
    font-size: 1.875rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.login-subtitle {
    color: #6b7280;
    font-size: 0.875rem;
}

.login-org {
    color: #9ca3af;
    font-size: 0.75rem;
}

.alert {
    padding: 1rem;
    border-radius: 0.75rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.alert-error {
    background-color: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 500;
    color: #374151;
    font-size: 0.875rem;
}

.input-wrapper {
    display: flex;
    align-items: center;
    gap: 0.5rem; /* jarak antara icon dan input */
}

.input-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #f3f4f6; /* warna latar icon */
    border-radius: 0.5rem;
    color: #6b7280;
    font-size: 1rem;
    flex-shrink: 0;
}

.input-wrapper input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 0.75rem;
    font-size: 0.875rem;
    transition: all 0.2s;
}

.input-wrapper input:focus {
    outline: none;
    border-color: #059669;
    box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.1);
}

.password-toggle {
    position: absolute;
    right: 1rem;
    background: none;
    border: none;
    color: #9ca3af;
    cursor: pointer;
    padding: 0.25rem;
    z-index: 1;
}

.login-btn {
    width: 100%;
    padding: 0.875rem 1.5rem;
    background: linear-gradient(135deg, #059669, #0d9488);
    color: white;
    border: none;
    border-radius: 0.75rem;
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.login-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.demo-info {
    margin-top: 1.5rem;
    padding: 1rem;
    background: #eff6ff;
    border: 1px solid #dbeafe;
    border-radius: 0.75rem;
    font-size: 0.75rem;
}

.demo-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #1d4ed8;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.demo-info p {
    color: #1e40af;
    margin: 0.25rem 0;
}


/* Main App Layout */
.app-container {
    display: flex;
    min-height: 100vh;
}
.parent-container {
    display: flex; /* Ini adalah kunci untuk Flexbox */
}

.image-section {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    /* Tambahkan order: -1; jika ingin memastikan ini selalu di kiri */
    order: -1;
}

.other-section {
    flex: 1;
    /* Properti lain untuk elemen di sebelah kanan */
}
/* Sidebar */
.sidebar {
    width: 16rem;
    background: white;
    border-right: 1px solid #e5e7eb;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    z-index: 50;
}

.sidebar-header {
    padding: 1.5rem;
    border-bottom: 1px solid #e5e7eb;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-icon {
    width: 3rem;
    height: 3rem;
    background: linear-gradient(135deg, #ffffff, #ffffff);
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-icon i {
    font-size: 1.5rem;
    color: white;
}
.logo-icon2{
  width:56px;height:56px;border-radius:50%;
  display:flex;align-items:center;justify-content:center;
  background:#2c3e50; /* boleh dihapus kalau mau transparan */
  box-shadow:0 4px 12px rgba(0,0,0,.15);
  overflow:hidden; /* supaya gambar tetap bulat */
}
.logo-img{
  width:70%;height:auto; /* atau 100% kalau mau full */
  display:block;
}

.logo-text h2 {
    font-size: 1.125rem;
    font-weight: 700;
    color: #1f2937;
}

.logo-text p {
    font-size: 0.75rem;
    color: #6b7280;
}

.sidebar-nav {
    flex: 1;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;

    max-height: 100vh;
    overflow-y: scroll;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: 0.75rem;
    color: #6b7280;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s;
}

.nav-item:hover {
    background: #f3f4f6;
    color: #1f2937;
}

.nav-item.active {
    background: #ecfdf5;
    color: #059669;
    border: 1px solid #d1fae5;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.nav-item i {
    width: 1.25rem;
    font-size: 1.125rem;
}

.sidebar-footer {
    padding: 1rem;
    border-top: 1px solid #e5e7eb;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.user-avatar {
    width: 2.5rem;
    height: 2.5rem;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.user-avatar i {
    color: white;
    font-size: 1rem;
}

.user-details {
    flex: 1;
}

.user-name {
    font-weight: 500;
    color: #1f2937;
    font-size: 0.875rem;
}

.user-email {
    color: #6b7280;
    font-size: 0.75rem;
}

.logout-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.875rem;
    transition: all 0.2s;
}

.logout-btn:hover {
    background: #fee2e2;
}

/* Main Content */
.main-content {
    flex: 1;
    margin-left: 16rem;
    padding: 2rem;
    background: #ffffff;
}

/* Page Header */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2rem;
}

.page-title h1 {
    font-size: 1.875rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.page-title p {
    color: #6b7280;
}

.page-meta {
    text-align: right;
}

.last-updated {
    font-size: 0.875rem;
    color: #9ca3af;
}

.update-time {
    font-weight: 600;
    color: #1f2937;
}

/* Statistics Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: white;
    border-radius: 1rem;
    padding: 1.5rem;
    border: 1px solid #e5e7eb;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.2s;
}

.stat-card:hover {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.stat-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-green .stat-icon {
    background: linear-gradient(135deg, #059669, #0d9488);
    color: white;
}

.stat-blue .stat-icon {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
}

.stat-orange .stat-icon {
    background: linear-gradient(135deg, #f97316, #ea580c);
    color: white;
}

.stat-purple .stat-icon {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    color: white;
}

.stat-content h3 {
    font-size: 0.875rem;
    font-weight: 500;
    color: #6b7280;
    margin-bottom: 0.25rem;
}

.stat-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1f2937;
}

/* Card */
.card {
    background: white;
    border-radius: 1rem;
    border: 1px solid #e5e7eb;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.card-header {
    padding: 1.5rem;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-header h2 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1f2937;
}

.view-all-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #3b82f6;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.875rem;
    transition: color 0.2s;
}

.view-all-btn:hover {
    color: #1d4ed8;
}

/* Table */
.table-container {
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th {
    background: #f9fafb;
    padding: 0.75rem 1.5rem;
    text-align: left;
    font-weight: 500;
    color: #6b7280;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.data-table td {
    padding: 1rem 1.5rem;
    border-top: 1px solid #e5e7eb;
}

.data-table tr:hover {
    background: #f9fafb;
}

/* Status Badges */
.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
    border: 1px solid;
}

.status-selesai {
    background: #ecfdf5;
    color: #059669;
    border-color: #d1fae5;
}

.status-dalam-proses {
    background: #eff6ff;
    color: #2563eb;
    border-color: #dbeafe;
}

.status-menunggu-sample {
    background: #fff7ed;
    color: #ea580c;
    border-color: #fed7aa;
}

.status-validasi {
    background: #faf5ff;
    color: #7c3aed;
    border-color: #e9d5ff;
}

/* Priority Badges */
.priority-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.125rem 0.5rem;
    border-radius: 0.375rem;
    font-size: 0.75rem;
    font-weight: 500;
}

.priority-high {
    background: #fef2f2;
    color: #dc2626;
}

.priority-normal {
    background: #fefce8;
    color: #ca8a04;
}

.priority-low {
    background: #ecfdf5;
    color: #059669;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 0.5rem;
}

.btn-action {
    padding: 0.25rem 0.75rem;
    border: none;
    border-radius: 0.375rem;
    font-size: 0.75rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-view {
    background: #eff6ff;
    color: #059669;
}

.btn-view:hover {
    background: #dbeafe;
}

.btn-edit {
    background: #ecfdf5;
    color: #059669;
}

.btn-edit:hover {
    background: #d1fae5;
}

/* Quick Actions */
.quick-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.action-card {
    background: white;
    border-radius: 1rem;
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid #e5e7eb;
}

.action-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.action-green {
    background: linear-gradient(135deg, #059669, #0d9488);
    color: white;
    border: none;
}

.action-blue {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    border: none;
}

.action-purple {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    color: white;
    border: none;
}

.action-content h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.action-content p {
    opacity: 0.9;
}

.action-icon {
    font-size: 2rem;
    opacity: 0.8;
}

/* Form Styles */
.progress-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    background: white;
    padding: 1.5rem;
    border-radius: 1rem;
    border: 1px solid #e5e7eb;
}

.step {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    opacity: 0.5;
    transition: all 0.3s;
}

.step.active {
    opacity: 1;
}

.step-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    border: 2px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
    transition: all 0.3s;
}

.step.active .step-icon {
    background: #059669;
    border-color: #059669;
    color: white;
}

.step-content {
    text-align: center;
}

.step-number {
    font-size: 0.875rem;
    font-weight: 500;
    color: #059669;
}

.step-title {
    font-size: 0.75rem;
    color: #6b7280;
}

.step-line {
    flex: 1;
    height: 2px;
    background: #e5e7eb;
    margin: 0 1rem;
}

.form-container {
    background: white;
    border-radius: 1rem;
    border: 1px solid #e5e7eb;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

.form-step {
    display: none;
    padding: 2rem;
}

.form-step.active {
    display: block;
}

.step-header {
    text-align: center;
    margin-bottom: 2rem;
}

.step-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.step-header p {
    color: #6b7280;
}

.form-section {
    margin-bottom: 2rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    overflow: hidden;
}

.section-header {
    background: #f9fafb;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.section-header i {
    color: #059669;
    font-size: 1.125rem;
}

.section-header h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1f2937;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    padding: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    font-weight: 500;
    color: #374151;
    font-size: 0.875rem;
}

.form-group input,
.form-group select {
    padding: 0.75rem;
    border: 2px solid #e5e7eb;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    transition: all 0.2s;
    background: white;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #059669;
    box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.1);
}

.samples-container {
    margin-bottom: 1.5rem;
}

.sample-card {
    margin-bottom: 1.5rem;
    border: 2px solid #e5e7eb;
    border-radius: 0.75rem;
    overflow: hidden;
    transition: all 0.2s;
}

.sample-card:hover {
    border-color: #059669;
    box-shadow: 0 4px 6px -1px rgba(5, 150, 105, 0.1);
}

.sample-header {
    background: linear-gradient(135deg, #059669, #0d9488);
    padding: 1rem 1.5rem;
    color: white;
}

.sample-header h4 {
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.add-sample-btn {
    width: 100%;
    border: 2px dashed #d1d5db;
    background: transparent;
    padding: 1.5rem;
    border-radius: 0.75rem;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.add-sample-btn:hover {
    border-color: #059669;
    color: #059669;
}

.summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    padding: 1.5rem;
}

.summary-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.summary-label {
    font-weight: 500;
    color: #6b7280;
    font-size: 0.875rem;
}

.summary-value {
    font-weight: 600;
    color: #1f2937;
}

.form-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1.5rem;
    border-top: 1px solid #e5e7eb;
    margin-top: 1.5rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, #059669, #0d9488);
    color: white;
    box-shadow: 0 4px 6px -1px rgba(5, 150, 105, 0.3);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 15px -3px rgba(5, 150, 105, 0.4);
}

.btn-secondary {
    background: #f3f4f6;
    color: #6b7280;
}

.btn-secondary:hover {
    background: #e5e7eb;
    color: #374151;
}

.btn-success {
    background: linear-gradient(135deg, #059669, #0d9488);
    color: white;
    box-shadow: 0 4px 6px -1px rgba(5, 150, 105, 0.3);
}

.btn-success:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 15px -3px rgba(5, 150, 105, 0.4);
}

.btn-outline {
    background: transparent;
    border: 2px solid #e5e7eb;
    color: #6b7280;
}

.btn-outline:hover {
    border-color: #059669;
    color: #059669;
}

.remove-btn {
    background-color: #e74c3c;   /* merah */
    color: #fff;                /* ikon warna putih */
    border: none;               /* hilangkan border */
    padding: 6px 10px;          /* ukuran tombol */
    border-radius: 6px;         /* sudut agak bundar */
    cursor: pointer;            /* pointer saat hover */
    transition: background-color 0.2s ease;
}

.remove-btn:hover {
    background-color: #c0392b;  /* merah lebih gelap saat hover */
}

/* Placeholder Content */
.placeholder-content {
    background: white;
    border-radius: 1rem;
    padding: 4rem 2rem;
    text-align: center;
    border: 1px solid #e5e7eb;
}

.placeholder-icon {
    width: 4rem;
    height: 4rem;
    background: #f3f4f6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.placeholder-icon i {
    font-size: 2rem;
    color: #9ca3af;
}

.placeholder-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.placeholder-content p {
    color: #6b7280;
}
/* Table Styles */
.data-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.data-table th {
    background: #f8fafc;
    padding: 15px;
    text-align: left;
    font-weight: 600;
    color: #374151;
    border-bottom: 1px solid #e5e7eb;
}

.data-table td {
    padding: 15px;
    border-bottom: 1px solid #e5e7eb;
    color: #6b7280;
}

.data-table tr:hover {
    background: #f9fafb;
}

.status {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.status.menunggu {
    background: #fef3c7;
    color: #92400e;
}

.status.proses {
    background: #dbeafe;
    color: #1e40af;
}

.status.selesai {
    background: #dcfce7;
    color: #166534;
}
/* Table Styles */
.data-table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.data-table th {
  background: #f8fafc;
  padding: 15px;
  text-align: left;
  font-weight: 600;
  color: #374151;
  border-bottom: 1px solid #e5e7eb;
}

.data-table td {
  padding: 15px;
  border-bottom: 1px solid #e5e7eb;
  color: #6b7280;
}

.data-table tr:hover {
  background: #f9fafb;
}

.status {
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
}

.status.menunggu {
  background: #fef3c7;
  color: #92400e;
}

.status.proses {
  background: #dbeafe;
  color: #1e40af;
}

.status.selesai {
  background: #dcfce7;
  color: #166534;
}

/* Button Styles */
.btn {
  padding: 10px 20px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 500;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s ease;
}

.btn-primary {
  background: #3b82f6;
  color: white;
}

.btn-primary:hover {
  background: #2563eb;
  transform: translateY(-2px);
}

.btn-success {
  background: #10b981;
  color: white;
}

.btn-success:hover {
  background: #059669;
}

.btn-edit {
  background: #059669;
  color: white;
  padding: 6px 12px;
  font-size: 12px;
}

.btn-edit:hover {
  background: #059669;
}

/* Form Styles */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: 500;
  color: #374151;
}

.form-control {
  width: 100%;
  padding: 10px 15px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 14px;
}

.form-control:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Lab Tabs */
.lab-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

.tab-btn {
  padding: 10px 25px;
  background: white;
  border: none;
  border-radius: 20px;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.3s ease;
}

.tab-btn.active {
  background: #059669;
  color: white;
}

.tab-btn:not(.active):hover {
  background: #f3f4f6;
}

/* Info Card */
.info-card {
  background: white;
  border-radius: 15px;
  padding: 25px;
  margin-bottom: 20px;
}

.info-card h3 {
  color: #1f2937;
  margin-bottom: 20px;
  text-align: center;
  font-size: 18px;
}

.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  margin-bottom: 20px;
}

.info-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
}

.info-item label {
  font-weight: 500;
  color: #374151;
}

.info-item span {
  color: #6b7280;
}
/* Button Styles */
.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
}

.btn-primary {
    background: #059669;
    color: white;
}

.btn-primary:hover {
    background: #059669;
    transform: translateY(-2px);
}

.btn-success {
    background: #059669;
    color: white;
}

.btn-success:hover {
    background: #059669;
}

.btn-edit {
    background: #059669;
    color: white;
    padding: 6px 12px;
    font-size: 12px;
}

.btn-edit:hover {
    background: #d97706;
}

/* Lab Tabs - lebih dekat ke kiri & hilangkan outline biru */
.lab-tabs {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 12px 0;
  padding-left: 0;
}

/* Tombol kembali di kiri */
.tab-btn.back {
  padding: 10px 20px;
  background: #059669;
  border: none;
  border-radius: 20px;
  cursor: pointer;
  font-weight: 500;
  color: #fff;
  transition: all 0.3s ease;
  outline: none;
}

/* Container untuk tombol biasa di tengah */
.tab-center {
  flex: 1; /* isi ruang di antara back button dan sisi kanan */
  display: flex;
  justify-content: center; /* posisikan tombol tengah */
  gap: 5px; /* jarak antar tombol */
}

/* Tombol biasa */
.tab-btn {
  padding: 10px 20px;
  background-color: #ffffff;
  border: 2px solid #000000; /* Stroke hitam */
  border-radius: 10px;
  cursor: pointer;
  font-weight: 500;
  color: #000000;
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
  outline: none; /* Hilangkan outline default */
}
.tab-btn:hover {
  background-color: #000000;
  color: #ffffff;
  transform: translateY(-2px); /* Efek sedikit terangkat */
}

.tab-btn:focus {
  outline: none;            /* hilangkan outline saat fokus */
  box-shadow: none;         /* hilangkan efek shadow biru di beberapa browser */
}

.tab-btn.active {
  background: #059669;
  color: #fff;
}

.tab-btn:not(.active):hover {
  background: #f3f4f6;
}


/* Info Card */
.info-card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 20px;
}

.info-card h3 {
    color: #1f2937;
    margin-bottom: 20px;
    text-align: center;
    font-size: 18px;
}

.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 20px;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
}

.info-item label {
    font-weight: 500;
    color: #374151;
}

.info-item span {
    color: #6b7280;
}

/* Info Card */
.info-card {
  background: white;
  border-radius: 15px;
  padding: 25px;
  margin-bottom: 20px;
}

.info-card h3 {
  color: #1f2937;
  margin-bottom: 20px;
  text-align: center;
  font-size: 18px;
}

.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  margin-bottom: 20px;
}

.info-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
}

.info-item label {
  font-weight: 500;
  color: #374151;
}

.info-item span {
  color: #6b7280;
}

/* Parameter Table */
.parameter-table {
  margin-top: 20px;
}

.parameter-grid {
  display: grid;
  grid-template-columns: 1fr 80px 80px 100px 1fr;
  gap: 10px;
  align-items: start;
}

.parameter-header {
  background: #f8fafc;
  padding: 10px;
  font-weight: 600;
  border-radius: 8px;
  text-align: center;
}

.parameter-cell {
  background: white;
  padding: 10px;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  text-align: center;
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.parameter-cell input {
  border: none;
  outline: none;
  text-align: center;
  width: 100%;
}

.parameter-name {
  text-align: left;
  justify-content: flex-start;
  font-size: 13px;
}

/* Spasi konten supaya tidak "ketabrak" top bar saat non-sticky header lain dipakai */
body{ scroll-margin-top:64px; }

/* login */
/* ===== Layout shell: beri ruang & rounded besar ===== */
body{ scroll-margin-top:64px; background:#f6f8fb; }

.auth-split{
  display:grid;
  grid-template-columns:1fr 1fr;
  min-height:100vh;
  padding:32px;                 /* ruang luar */
  box-sizing:border-box;
}

.auth-left,
.auth-right{
  display:grid; 
  place-items:center; 
  padding:24px;
  background:transparent;   /* 🔥 hapus putih belakang */
  box-shadow:none;          /* 🔥 hilangkan bayangan luar */
}

/* ===== LEFT: gradasi lembut + logo ===== */
.auth-left{
  background: radial-gradient(1200px 600px at -20% 10%, #2ac38b00 0%, rgba(42, 195, 139, 0) 60%),
              linear-gradient(135deg, #1aa27000 0%, #a8e3cf00 100%);
  position:relative;
  box-shadow: 0 12px 30px rgba(28, 148, 104, 0);
}
.auth-left::after{ display:none; }  /* tak perlu garis pemisah lagi */

.auth-left-inner{
  height:100%; display:grid; place-items:center; padding:48px 24px;
}

/* Logo: gunakan file PNG/SVG transparan. 
   Jika masih pakai gambar berlatar putih, tambahkan class .bgless (lihat di bawah) sebagai trik sementara */
.auth-seal{
  width:min(60%, 420px); height:auto; display:block;
  filter: drop-shadow(0 14px 28px rgba(0,0,0,.20));
}
.auth-seal.bgless{                 /* trik bikin latar putih “menghilang” sementara */
  mix-blend-mode:multiply;         /* jalan bagus di bg terang/gradient */
  background:transparent;
}

/* ===== RIGHT: kartu konten ===== */
.auth-right{
  display:grid; place-items:center; padding:24px;
  background:linear-gradient(180deg, #ffffff00 0%, #fbfcff00 100%);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0);
}

.auth-inner{
    
  width:min(560px, 88vw);
  background:#fff;
  border:1px solid #eef1f7;
  border-radius:20px;
  padding:28px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, .04);
}

/* ===== Branding ===== */
.brand-sub{ font-size:13px; color:#6b7280; margin-bottom:4px; }
.brand-title{ font-size:clamp(32px, 4vw, 44px); margin:0; font-weight:800; letter-spacing:.02em; color:#0f172a; }
.brand-org{ font-size:13px; color:#94a3b8; margin-top:6px; }

/* ===== Form ===== */
.login-form .form-group{ margin-top:14px; }

.login-form .input-wrapper{ position:relative; display:block; width:100%; }

.login-form .input-wrapper > i.fas.fa-envelope,
.login-form .input-wrapper > i.fas.fa-lock{
  position:absolute; left:14px; top:50%; transform:translateY(-50%);
  pointer-events:none; opacity:.7; font-size:14px;
}

/* Input lebih lembut & rounded */
.login-form input[type="text"],
.login-form input[type="password"]{
  width:100%; height:48px;
  padding:10px 48px 10px 42px;
  border-radius:14px;
  border:1px solid #e7ebf3;
  background:#f6f9ff;             /* nuansa biru lembut */
  transition: box-shadow .15s, border-color .15s, background .15s;
  box-sizing:border-box;
}
.login-form input:focus{
  outline:none;
  border-color:#27ae60;
  background:#fff;
  box-shadow:0 0 0 4px rgba(39,174,96,.14);
}

/* Eye button rapih menempel di kanan input */
.login-form .password-toggle{
  position:absolute; right:10px; top:50%; transform:translateY(-50%);
  width:34px; height:34px; display:grid; place-items:center;
  border:0; background:#ffffff; border-radius:10px;
  box-shadow: inset 0 0 0 1px #e7ebf3;
  cursor:pointer; color:#64748b;
}
.login-form .password-toggle:hover{ color:#111827; box-shadow: inset 0 0 0 1px #cfd6e3; }

/* reCAPTCHA beri penyangga */
.g-recaptcha{ margin-top:8px; }

/* Tombol submit */
.login-btn{
  margin-top:18px; width:100%;
  display:inline-flex; gap:8px; align-items:center; justify-content:center;
  height:50px; border:0; border-radius:14px;
  background:#27ae60; color:#fff; font-weight:800;
  box-shadow:0 12px 20px rgba(39,174,96,.25);
  cursor:pointer; transition:filter .15s, transform .05s;
}
.login-btn:hover{ filter:brightness(.96); }
.login-btn:active{ transform:translateY(1px); }

/* Demo card */
.demo-info{
  background:#f7f9ff; border:1px solid #e7ebf3; border-radius:14px; padding:12px 14px;
}
.demo-header{ display:flex; align-items:center; gap:8px; font-weight:600; color:#1f2937; margin-bottom:6px; }

/* ===== Responsive ===== */
@media (max-width: 900px){
  .auth-split{ grid-template-columns:1fr; padding:16px; }
  .auth-left{ height:36vh; border-bottom-left-radius:0; border-bottom-right-radius:0; }
  .auth-right{ border-top-left-radius:0; border-top-right-radius:0; }
  .auth-left-inner{ padding:28px 18px; }
  .auth-seal{ width:min(44%, 260px); }
  .auth-inner{ width:min(640px, 92vw); padding:22px; }
}

/* Responsive Design */
@media (max-width: 768px) {
  .container {
    flex-direction: column;
  }
  
  .sidebar {
    width: 100%;
    height: auto;
  }
  
  .nav-menu {
    flex-direction: row;
    overflow-x: auto;
    padding: 10px 0;
  }
  
  .nav-item {
    white-space: nowrap;
    margin: 0 5px;
    min-width: auto;
  }
  
  .content {
    padding: 15px;
  }
  
  .header {
    padding: 15px;
  }
  
  .parameter-grid {
    grid-template-columns: 1fr;
    gap: 5px;
  }
  
  .parameter-header,
  .parameter-cell {
    grid-column: 1;
  }
  
  .stats-grid {
    grid-template-columns: 1fr;
  }
  
  .info-grid {
    grid-template-columns: 1fr;
  }
}

/* Animation Effects */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.card, .info-card {
  animation: fadeIn 0.5s ease-out;
}

.data-table tr {
  transition: all 0.3s ease;
}

.btn {
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  transition: width 0.6s, height 0.6s, top 0.6s, left 0.6s;
  transform: translate(-50%, -50%);
}

.btn:hover::before {
  width: 200px;
  height: 200px;
}
/* Input sample check box */
.parameter-checkboxes {
    max-height: 180px;   /* batas tinggi box */
    overflow-y: auto;    /* bikin scroll vertikal */
    border: 1px solid #ccc;
    padding: 5px 10px;
    border-radius: 5px;
    background: #fff;
}

.parameter-checkboxes label {
    display: block;
    margin-bottom: 5px;
    font-size: 14px;
    cursor: pointer;
}

.parameter-checkboxes input[type="checkbox"] {
    margin-right: 6px;
}
/* Responsive Design */
@media (max-width: 1024px) {
    .sidebar {
        width: 14rem;
    }
    
    .main-content {
        margin-left: 14rem;
    }
}

@media (max-width: 768px) {
    .sidebar {
        width: 100%;
        height: auto;
        position: relative;
    }
    
    .main-content {
        margin-left: 0;
        padding: 1rem;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 1rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .quick-actions {
        grid-template-columns: 1fr;
    }
    
    .progress-steps {
        flex-direction: column;
        gap: 1rem;
    }
    
    .step-line {
        width: 2px;
        height: 2rem;
        margin: 0;
    }
    
    .form-navigation {
        flex-direction: column;
        gap: 1rem;
    }
    
    .form-navigation .btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .login-card {
        padding: 1.5rem;
    }
    
    .page-header {
        flex-direction: column;
        gap: 1rem;
    }
    
    .card-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    
    .action-card {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 1.25rem;
    height: 1.25rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ------------------------------------------------------------------- */
/* 
Digital Signature Platform Styles
Based on existing design system
*/

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #1f2937;
    background-color: #f9fafb;
}

/* Main App Layout */
.app-container {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
/* .sidebar {
    width: 16rem;
    background: white;
    border-right: 1px solid #e5e7eb;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    z-index: 50;
} */

.sidebar-header {
    padding: 1.5rem;
    border-bottom: 1px solid #e5e7eb;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-icon {
    width: 3rem;
    height: 3rem;
    background: linear-gradient(135deg, #ffffff, #ffffff);
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-icon i {
    font-size: 1.5rem;
    color: white;
}

.logo-text h2 {
    font-size: 1.125rem;
    font-weight: 700;
    color: #1f2937;
}

.logo-text p {
    font-size: 0.75rem;
    color: #6b7280;
}

.sidebar-nav {
    flex: 1;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-height: 100vh;
    overflow-y: scroll;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: 0.75rem;
    color: #6b7280;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s;
}

.nav-item:hover {
    background: #f3f4f6;
    color: #1f2937;
}

.nav-item.active {
    background: #ecfdf5;
    color: #059669;
    border: 1px solid #d1fae5;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.nav-item i {
    width: 1.25rem;
    font-size: 1.125rem;
}

.sidebar-footer {
    padding: 1rem;
    border-top: 1px solid #e5e7eb;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.user-avatar {
    width: 2.5rem;
    height: 2.5rem;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.user-avatar i {
    color: white;
    font-size: 1rem;
}

.user-details {
    flex: 1;
}

.user-name {
    font-weight: 500;
    color: #1f2937;
    font-size: 0.875rem;
}

.user-email {
    color: #6b7280;
    font-size: 0.75rem;
}

/* Main Content */
.main-content2 {
    flex: 1;
    margin-left: 1rem;
    padding: 2rem;
    background: #f9fafb;
}

/* Page Header */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2rem;
}

.page-title h1 {
    font-size: 1.875rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.page-title p {
    color: #6b7280;
}

.page-meta {
    text-align: right;
}

.last-updated {
    font-size: 0.875rem;
    color: #9ca3af;
}

.update-time {
    font-weight: 600;
    color: #1f2937;
}

/* Statistics Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: white;
    border-radius: 1rem;
    padding: 1.5rem;
    border: 1px solid #e5e7eb;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.2s;
}

.stat-card:hover {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.stat-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-green .stat-icon {
    background: linear-gradient(135deg, #059669, #0d9488);
    color: white;
}

.stat-blue .stat-icon {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
}

.stat-orange .stat-icon {
    background: linear-gradient(135deg, #f97316, #ea580c);
    color: white;
}

.stat-purple .stat-icon {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    color: white;
}

.stat-content h3 {
    font-size: 0.875rem;
    font-weight: 500;
    color: #6b7280;
    margin-bottom: 0.25rem;
}

.stat-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1f2937;
}

/* Card */
.card {
    background: white;
    border-radius: 1rem;
    border: 1px solid #e5e7eb;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.card-header {
    padding: 1.5rem;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-header h2 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1f2937;
}

.view-all-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #3b82f6;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.875rem;
    transition: color 0.2s;
}

.view-all-btn:hover {
    color: #1d4ed8;
}

/* Signature Creation Styles */
.signature-creation-content {
    padding: 1.5rem;
}

.form-section {
    margin-bottom: 2rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    overflow: hidden;
}

.section-header {
    background: #f9fafb;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.section-header i {
    color: #059669;
    font-size: 1.125rem;
}

.section-header h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1f2937;
}

.signature-canvas-container {
    padding: 1.5rem;
    text-align: center;
}

.canvas-wrapper {
    border: 2px dashed #d1d5db;
    border-radius: 0.75rem;
    padding: 1rem;
    margin-bottom: 1rem;
    background: #f9fafb;
}

.signature-canvas {
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    cursor: crosshair;
    background: white;
    max-width: 100%;
    display: block;
    margin: 0 auto;
}

.canvas-instruction {
    margin-top: 0.5rem;
    color: #6b7280;
    font-size: 0.875rem;
}

.signature-controls {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Table */
.table-container {
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th {
    background: #f9fafb;
    padding: 0.75rem 1.5rem;
    text-align: left;
    font-weight: 500;
    color: #6b7280;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.data-table td {
    padding: 1rem 1.5rem;
    border-top: 1px solid #e5e7eb;
}

.data-table tr:hover {
    background: #f9fafb;
}

/* Signer Info */
.signer-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.signer-avatar {
    width: 2rem;
    height: 2rem;
    background: linear-gradient(135deg, #059669, #0d9488);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Status Badges */
.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
    border: 1px solid;
}

.status-selesai {
    background: #ecfdf5;
    color: #059669;
    border-color: #d1fae5;
}

.status-dalam-proses {
    background: #eff6ff;
    color: #2563eb;
    border-color: #dbeafe;
}

.status-menunggu-sample {
    background: #fff7ed;
    color: #ea580c;
    border-color: #fed7aa;
}

.status-validasi {
    background: #faf5ff;
    color: #7c3aed;
    border-color: #e9d5ff;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 0.5rem;
}

.btn-action {
    padding: 0.25rem 0.75rem;
    border: none;
    border-radius: 0.375rem;
    font-size: 0.75rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-view {
    background: #eff6ff;
    color: #059669;
}

.btn-view:hover {
    background: #dbeafe;
}

.btn-edit {
    background: #ecfdf5;
    color: #059669;
}

.btn-edit:hover {
    background: #d1fae5;
}

/* Quick Actions */
.quick-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.action-card {
    background: white;
    border-radius: 1rem;
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid #e5e7eb;
}

.action-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.action-green {
    background: linear-gradient(135deg, #059669, #0d9488);
    color: white;
    border: none;
}

.action-blue {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    border: none;
}

.action-purple {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    color: white;
    border: none;
}

.action-content h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.action-content p {
    opacity: 0.9;
}

.action-icon {
    font-size: 2rem;
    opacity: 0.8;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, #059669, #0d9488);
    color: white;
    box-shadow: 0 4px 6px -1px rgba(5, 150, 105, 0.3);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 15px -3px rgba(5, 150, 105, 0.4);
}

.btn-secondary {
    background: #f3f4f6;
    color: #6b7280;
}

.btn-secondary:hover {
    background: #e5e7eb;
    color: #374151;
}

.btn-outline {
    background: transparent;
    border: 2px solid #e5e7eb;
    color: #6b7280;
}

.btn-outline:hover {
    border-color: #059669;
    color: #059669;
}

@media print {
  .sidebar { display:none !important; }
  #docnav.docnav { display: none !important; }
  .app-container { display:block !important; }
  .main-content {
    margin:0 !important;
    padding:0 !important;
    width:100% !important;
    max-width:100% !important;
  }
  #printBtn { display:none !important; }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .sidebar {
        width: 14rem;
    }
    
    .main-content {
        margin-left: 14rem;
    }
}

@media (max-width: 768px) {
    .sidebar {
        width: 100%;
        height: auto;
        position: relative;
    }
    
    .main-content {
        margin-left: 0;
        padding: 1rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .quick-actions {
        grid-template-columns: 1fr;
    }
    
    .signature-controls {
        flex-direction: column;
        align-items: center;
    }
    
    .signature-controls .btn {
        width: 100%;
        max-width: 200px;
        justify-content: center;
    }
    
    .page-header {
        flex-direction: column;
        gap: 1rem;
    }
    
    .card-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    
    .action-card {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .signature-canvas {
        width: 100%;
        max-width: 300px;
        height: 150px;
    }
    
    .canvas-wrapper {
        padding: 0.5rem;
    }
}

/* Animation Effects */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card {
    animation: fadeIn 0.5s ease-out;
}

.data-table tr {
    transition: all 0.3s ease;
}

.btn {
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transition: width 0.6s, height 0.6s, top 0.6s, left 0.6s;
    transform: translate(-50%, -50%);
}

.btn:hover::before {
    width: 200px;
    height: 200px;
}

/* ---------------------- */
.alert-success {
  background-color: rgba(0, 0, 0, 0.8);
  border: 1px solid #ffffff;
  color: #e6e6e6;
  padding: 1rem;
  border-radius: 0.5rem;
  margin-bottom: 1rem;
}

.header-cell {
  background-color: #ffffff;
  border: 1px solid #000000;
  padding: 0.5rem 1rem;
  border-radius: 10px;
  text-align: center;
  font-weight: 500;
  color: #000000;
}

.select-input {
  width: 100%;
  background-color: white;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  padding: 0.75rem 2.5rem 0.75rem 1rem;
  appearance: none;
  outline: none;
}

.select-input:focus {
  border-color: transparent;
  box-shadow: 0 0 0 2px #ffffff;
}

.select-icon {
  pointer-events: none;
  position: absolute;
  right: 0.75rem;
  top: 50%;
  width: 1rem;
  height: 1rem;
  color: #9ca3af;
  transform: translateY(-50%);
}

.text-input, .textarea {
  width: 100%;
  background-color: white;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  padding: 0.75rem 1rem;
  outline: none;
}

.text-input:focus, .textarea:focus {
  border-color: transparent;
  box-shadow: 0 0 0 2px #ffffff;
}

.textarea {
  height: 8rem;
  resize: none;
}

.btn-next {
  background-color: white;
  color: #059669;
  padding: 0.75rem 2rem;
  border-radius: 0.5rem;
  font-weight: 500;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  transition: background-color 0.2s;
}

.btn-next:hover {
  background-color: #f9fafb;
}
/* =---------------------------= */
/* Reset ringan */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
button, input, select, textarea { font: inherit; }

/* Layout umum */
.page {
  background: #f3f4f6; /* abu muda */
  color: #111827;      /* gray-900 */
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, "Helvetica Neue", Arial, "Apple Color Emoji", "Segoe UI Emoji";
  line-height: 1.5;
}

.container {
  max-width: 960px;
  margin: 24px auto;
  padding: 0 16px;
}

/* Alert */
.alert {
  border-radius: 10px;
  padding: 12px 16px;
  margin-bottom: 16px;
  border: 1px solid transparent;
}
.alert-success {
  background: #ecfdf5;           /* green-50 */
  border-color: #a7f3d0;         /* green-200 */
  color: #065f46;                /* green-800 */
}

/* Card */
.card {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 1px 2px rgba(16,24,40,.06), 0 1px 3px rgba(16,24,40,.1);
  overflow: hidden;
}

/* Table */
.table-wrap {
  overflow-x: auto;
}
.table {
  width: 100%;
  border-collapse: collapse;
  min-width: 520px;
}

.thead-row {
  background: #f9fafb;           /* gray-50 */
  border-bottom: 1px solid #e5e7eb; /* gray-200 */
}

.th, .td {
  padding: 14px 24px;
  text-align: left;
  font-size: 14px;
}

.th {
  font-weight: 600;
  color: #111827; /* gray-900 */
}

.th--no { width: 80px; }
.th--aksi { width: 110px; text-align: center; }

.td--no { font-weight: 600; color: #111827; }

tbody .tr + .tr { border-top: 1px solid #e5e7eb; }

tbody .tr:hover {
  background: #f9fafb;
  transition: background-color .15s ease;
}

/* Actions */
.actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.inline { display: inline; }

/* Icon buttons */
.btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  border-radius: 10px;
  border: none;
  background: transparent;
  color: #1f2937; /* gray-800 default */
  cursor: pointer;
  transition: transform .2s ease, color .2s ease, background-color .2s ease, box-shadow .2s ease;
}

/* Edit button style (biru) */
.btn-icon--edit {
  color: #2563eb; /* blue-600 */
}
.btn-icon--edit:hover {
  color: #1e40af;            /* blue-800 */
  background: #eff6ff;       /* blue-50 */
  transform: scale(1.1);
}

/* Delete button style (merah) */
.btn-icon--delete {
  color: #dc2626; /* red-600 */
}
.btn-icon--delete:hover {
  color: #991b1b;            /* red-800 */
  background: #fef2f2;       /* red-50 */
  transform: scale(1.1);
}

/* Table cells alignment */
.th--aksi, .td:last-child { text-align: center; }

/* Focus states (aksesibilitas) */
.btn-icon:focus-visible,
a.btn-icon:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.5);
  outline-offset: 2px;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}
/* ----------------=---------------------- */
/* ——— Top Nav ——— */
.top-nav{
  position: sticky; top:0; z-index:50;
  display:flex; align-items:center; justify-content:space-between;
  gap:.75rem; padding:.6rem .9rem;
  background:#ffffff; color:#000000; border-bottom:1px solid #0b1220;
}
.top-nav__left{ display:flex; gap:.5rem; flex-wrap:wrap; }
.top-btn{
  display:inline-flex; align-items:center; gap:.4rem;
  padding:.45rem .7rem; border:1px solid rgba(255,255,255,.16);
  background:transparent; color:#000000; border-radius:.6rem;
  font-size:.85rem; cursor:pointer;
}
.top-btn:hover{ background:rgba(255,255,255,.06); }
.top-btn.is-active{
  background:#059669; border-color:#059669; color:#fff;
}
.top-btn i,[data-lucide]{ width:16px; height:16px; }
.top-nav__right .user-name{
  display:inline-flex; align-items:center; gap:.4rem;
  font-weight:600; color:#e5e7eb; white-space:nowrap;
}

/* Spasi konten supaya tidak "ketabrak" top bar saat non-sticky header lain dipakai */
body{ scroll-margin-top:64px; }
