/* Perbaikan layout aktivitas kerja agar jam kerja dan aktivitas tidak overlap */
.activity-row .row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
}
.activity-row .col-12.col-md-2 {
  flex: 0 0 180px;
  max-width: 180px;
  min-width: 120px;
}
.activity-row .col-12.col-md-7 {
  flex: 1 1 0%;
  min-width: 200px;
  max-width: 100%;
}
.activity-row .col-12.col-md-3 {
  flex: 0 0 220px;
  max-width: 220px;
  min-width: 160px;
}
.activity-row textarea.form-control {
  min-height: 80px;
  resize: vertical;
}
@media (max-width: 768px) {
  .activity-row .row {
    flex-direction: column;
  }
  .activity-row .col-12.col-md-2,
  .activity-row .col-12.col-md-7,
  .activity-row .col-12.col-md-3 {
    max-width: 100%;
    flex: 1 1 100%;
  }
}
/* Modern Minimalist CSS for Daily Work Report System - Light Mode Only */

/* CSS Variables for consistent theming */
:root {
  --primary-color: #2563eb;
  --primary-dark: #1d4ed8;
  --secondary-color: #64748b;
  --success-color: #059669;
  --danger-color: #dc2626;
  --warning-color: #d97706;
  --light-bg: #f8fafc;
  --white: #ffffff;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --border-radius: 0.75rem;
  --border-radius-sm: 0.5rem;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --transition: all 0.2s ease-in-out;
}

/* Reset and base styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  color: var(--gray-700);
  background-color: var(--light-bg);
  font-size: 16px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  color: var(--gray-900);
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 0.5rem;
}

h1 { font-size: 2.25rem; }
h2 { font-size: 1.875rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

p {
  margin-bottom: 1rem;
  color: var(--gray-600);
}

/* Links */
a {
  color: var(--primary-color);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Navigation */
.navbar {
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  box-shadow: var(--shadow-sm);
  padding: 1rem 0;
}

.navbar-brand {
  font-weight: 600;
  font-size: 1.25rem;
  color: var(--gray-900);
  text-decoration: none;
}

.navbar-brand:hover {
  color: var(--primary-color);
  text-decoration: none;
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.navbar-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
}

.nav-link {
  color: var(--gray-600);
  font-weight: 500;
  padding: 0.5rem 0;
  transition: var(--transition);
}

.nav-link:hover {
  color: var(--primary-color);
  text-decoration: none;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1;
  border: 1px solid transparent;
  border-radius: var(--border-radius-sm);
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  background: transparent;
}

.btn-primary {
  background: var(--primary-color);
  color: var(--white);
  border-color: var(--primary-color);
}

.btn-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  color: var(--white);
  text-decoration: none;
}

.btn-secondary {
  background: var(--gray-500);
  color: var(--white);
  border-color: var(--gray-500);
}

.btn-secondary:hover {
  background: var(--gray-600);
  border-color: var(--gray-600);
  color: var(--white);
  text-decoration: none;
}

.btn-success {
  background: var(--success-color);
  color: var(--white);
  border-color: var(--success-color);
}

.btn-success:hover {
  background: #047857;
  border-color: #047857;
  color: var(--white);
  text-decoration: none;
}

.btn-danger {
  background: var(--danger-color);
  color: var(--white);
  border-color: var(--danger-color);
}

.btn-danger:hover {
  background: #b91c1c;
  border-color: #b91c1c;
  color: var(--white);
  text-decoration: none;
}

.btn-outline-primary {
  color: var(--primary-color);
  border-color: var(--primary-color);
}

.btn-outline-primary:hover {
  background: var(--primary-color);
  color: var(--white);
  text-decoration: none;
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.75rem;
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1rem;
}

/* Cards */
.card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  margin-bottom: 1.5rem;
}

/* Solid card variant for prominent sections */
.card-solid {
  background: var(--white);
  border: 1px solid rgba(0,0,0,0.05);
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
}
.card-solid .card-header {
  background: transparent;
  border-bottom: 1px solid rgba(0,0,0,0.04);
}
.card-solid .form-control {
  background: var(--white);
  border: 1px solid var(--gray-200);
}

.card-header {
  background: var(--gray-50);
  border-bottom: 1px solid var(--gray-200);
  padding: 1.5rem;
}

.card-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 0.5rem;
  margin: 0;
}

/* Forms */
.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-weight: 500;
  color: var(--gray-700);
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
}

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  border: 1px solid var(--gray-300);
  border-radius: var(--border-radius-sm);
  background: var(--white);
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgb(37 99 235 / 0.1);
}

.form-select {
  /* Hapus panah bawaan browser supaya hanya ikon kustom yang tampil */
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
  background-position: right 0.5rem center;
  background-repeat: no-repeat;
  background-size: 1.5em 1.5em;
  padding-right: 2.5rem;
}

textarea.form-control {
  resize: vertical;
  min-height: 100px;
}

/* Tables */
.table-responsive {
  overflow-x: auto;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
}

.table {
  width: 100%;
  background: var(--white);
  border-collapse: collapse;
  margin: 0;
}

.table th,
.table td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid var(--gray-200);
  vertical-align: middle;
}

.table th {
  background: var(--gray-50);
  font-weight: 600;
  color: var(--gray-700);
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.table tr:hover {
  background: var(--gray-50);
}

/* Alerts */
.alert {
  padding: 1rem;
  border-radius: var(--border-radius-sm);
  margin-bottom: 1rem;
  border: 1px solid transparent;
}

.alert-success {
  background: #ecfdf5;
  color: #065f46;
  border-color: #a7f3d0;
}

.alert-danger {
  background: #fef2f2;
  color: #991b1b;
  border-color: #fecaca;
}

.alert-info {
  background: #eff6ff;
  color: #1e40af;
  border-color: #bfdbfe;
}

.alert-warning {
  background: #fffbeb;
  color: #92400e;
  border-color: #fed7aa;
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 500;
  border-radius: 9999px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge-success {
  background: #d1fae5;
  color: #065f46;
}

.badge-secondary {
  background: var(--gray-100);
  color: var(--gray-600);
}

/* Hero Section */
.hero-section {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
  color: var(--white);
  padding: 4rem 0;
  text-align: center;
}

.hero-section h1 {
  color: var(--white);
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.hero-section .lead {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  opacity: 0.9;
  color: white;
}

/* Login Form */
.login-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--light-bg) 0%, var(--gray-100) 100%);
}

.login-card {
  width: 100%;
  max-width: 400px;
  background: var(--white);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-lg);
  padding: 2rem;
}

.login-logo {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  display: block;
}

/* Activity Rows */
.activity-row {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--border-radius-sm);
  padding: 1rem;
  margin-bottom: 1rem;
}

.activity-row .row {
  align-items: flex-start;
}

.remove-row {
  background: var(--danger-color);
  color: var(--white);
  border: none;
  padding: 0.5rem;
  border-radius: var(--border-radius-sm);
  cursor: pointer;
  font-size: 1.25rem;
  line-height: 1;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.remove-row:hover {
  background: #b91c1c;
}

/* Accordion */
.accordion-item {
  border: 1px solid var(--gray-200);
  border-radius: var(--border-radius-sm);
  margin-bottom: 0.5rem;
  overflow: hidden;
}

.accordion-button {
  background: var(--white);
  border: none;
  padding: 1rem 1.5rem;
  width: 100%;
  text-align: left;
  font-weight: 500;
  color: var(--gray-700);
  cursor: pointer;
  transition: var(--transition);
}

.accordion-button:hover {
  background: var(--gray-50);
}

.accordion-button.collapsed::after {
  content: '+';
  float: right;
  font-size: 1.25rem;
  font-weight: bold;
}

.accordion-button:not(.collapsed)::after {
  content: '−';
  float: right;
  font-size: 1.25rem;
  font-weight: bold;
}

.accordion-body {
  padding: 1.5rem;
  border-top: 1px solid var(--gray-200);
  background: var(--gray-50);
}

/* Stats Cards */
.stats-card {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
  color: var(--white);
  text-align: center;
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-md);
}

.stats-number {
  font-size: 3rem;
  font-weight: 700;
  margin: 0.5rem 0;
}

/* Footer */
.footer {
  background: var(--white);
  border-top: 1px solid var(--gray-200);
  padding: 2rem 0;
  margin-top: 3rem;
  color: var(--gray-500);
  text-align: center;
}

/* Utilities */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }
.mb-5 { margin-bottom: 3rem; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }
.mt-5 { margin-top: 3rem; }

.d-none { display: none; }
.d-block { display: block; }
.d-flex { display: flex; }
.d-grid { display: grid; }

.justify-content-center { justify-content: center; }
.justify-content-between { justify-content: space-between; }
.align-items-center { align-items: center; }
.align-items-start { align-items: flex-start; }

.w-100 { width: 100%; }

/* Grid System */
.row {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -0.5rem;
}

.col, .col-12, .col-md-2, .col-md-3, .col-md-5, .col-md-7, .col-md-12 {
  padding: 0 0.5rem;
  flex: 1;
}

.col-12 { flex: 0 0 100%; max-width: 100%; }

/* Responsive Design */
@media (min-width: 768px) {
  .container {
    padding: 0 2rem;
  }
  
  .d-md-none { display: none; }
  .d-md-block { display: block; }
  .d-md-flex { display: flex; }
  
  .col-md-2 { flex: 0 0 16.666667%; max-width: 16.666667%; }
  .col-md-3 { flex: 0 0 25%; max-width: 25%; }
  .col-md-5 { flex: 0 0 41.666667%; max-width: 41.666667%; }
  .col-md-7 { flex: 0 0 58.333333%; max-width: 58.333333%; }
  .col-md-12 { flex: 0 0 100%; max-width: 100%; }
  
  .hero-section h1 {
    font-size: 4rem;
  }
  
  .navbar-nav {
    flex-direction: row;
  }
}

@media (max-width: 767px) {
  .hero-section {
    padding: 2rem 0;
  }
  
  .hero-section h1 {
    font-size: 2rem;
  }
  
  .navbar .container {
    flex-direction: column;
    gap: 1rem;
  }
  
  .navbar-nav {
    flex-direction: column;
    width: 100%;
    text-align: center;
  }
  
  .activity-row .row {
    flex-direction: column;
  }
  
  .activity-row .col-12 {
    margin-bottom: 1rem;
  }
  
  .card-body {
    padding: 1rem;
  }
  
  .table th,
  .table td {
    padding: 0.5rem;
    font-size: 0.875rem;
  }
  
  .btn {
    width: 100%;
    justify-content: center;
  }
  
  .btn + .btn {
    margin-top: 0.5rem;
  }
}

/* Print styles */
@media print {
  .navbar, .btn, .footer {
    display: none !important;
  }
  
  .card {
    box-shadow: none;
    border: 1px solid var(--gray-300);
  }
  
  body {
    background: white;
    color: black;
  }
}

/* Animation for smooth interactions */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.card, .alert, .activity-row {
  animation: fadeIn 0.3s ease-out;
}

/* Focus styles for accessibility */
.btn:focus,
.form-control:focus,
.form-select:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

/* Modal styles (used by dashboard_user.php) */
.modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center; /* center vertically */
  justify-content: center; /* center horizontally */
  z-index: 2000;
}
.modal[aria-hidden="false"] {
  display: flex;
}
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(2px);
  z-index: 2001;
}
.modal-dialog {
  position: relative;
  z-index: 2002;
  background: var(--white);
  border-radius: var(--border-radius-sm);
  width: 100%;
  max-width: 760px;
  margin: auto; /* center dialog inside modal */
  box-shadow: var(--shadow-lg);
  animation: fadeIn 0.18s ease-out;
  display: flex;
  flex-direction: column;
  max-height: 90vh;
  overflow: hidden;
}
.modal-header, .modal-footer {
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.modal-header { border-bottom: 1px solid var(--gray-200); }
.modal-body {
  padding: 1rem 1.25rem;
  overflow-y: auto;
}
.modal-footer { border-top: 1px solid var(--gray-200); border-bottom: none; }
.btn-close {
  background: transparent;
  border: none;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  position: absolute; /* float above header on right */
  right: 1rem;
  top: 0.75rem;
  padding: 0.25rem 0.5rem;
}

@media (max-width: 480px) {
  .modal-dialog { max-width: 95%; margin: 0.5rem; }
  .modal-header h4 { font-size: 1rem; }
}

/* Style for the small plus button used to open modal */
.btn-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--gray-200);
  background: var(--white);
  color: var(--gray-700);
  font-size: 1.25rem;
  cursor: pointer;
}
.btn-link:hover { background: var(--gray-50); }

/* Modal body scrollbar styling */
.modal-body::-webkit-scrollbar { width: 10px; }
.modal-body::-webkit-scrollbar-thumb { background: rgba(15,23,42,0.12); border-radius: 10px; }
.modal-body::-webkit-scrollbar-track { background: transparent; }

/* Ensure modal not hidden behind other elements */
.modal, .modal-backdrop, .modal-dialog { z-index: 9999; }

/* User menu styling */
.user-btn {
  background: transparent;
  border: none; /* removed border for cleaner look */
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
  cursor: pointer;
  font-weight: 700;
  color: var(--gray-800);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.05rem; /* slightly larger text */
}
.user-btn::after {
  content: '\25BE'; /* small caret */
  font-size: 0.7rem;
  color: var(--gray-500);
  margin-left: 0.25rem;
}
.user-btn:hover {
  background: rgba(0,0,0,0.02);
}
.user-dropdown {
  min-width: 160px;
  overflow: hidden;
}
.user-dropdown .dropdown-item {
  display: block;
  padding: 0.5rem 1rem;
  color: var(--gray-700);
  text-decoration: none;
}
.user-dropdown .dropdown-item:hover {
  background: var(--gray-50);
}
.user-dropdown .dropdown-item:active {
  background: var(--gray-100);
}

/* small visual tweak: rounded dropdown arrow alignment */
.user-menu { line-height: 1; }