/* General resets */
* {
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: #f7f9fc;
  margin: 0;
  padding: 2rem 1rem;
  color: #2c3e50;
}

.container {
  max-width: 900px;
  margin: 0 auto;
  background: white;
  border-radius: 8px;
  padding: 0.5rem 2rem 2rem;
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}

.small-note {
  font-size: 12px;
  font-weight: normal;
  color: #666;
  margin-left: 4px;
}

h3 {
  font-weight: 700;
  font-size: 1.8rem;
  margin-bottom: 1rem;
  color: #34495e;
  text-align: center;
  letter-spacing: 0.04em;
}

h5 {
  font-weight: 600;
  font-size: 1.1rem;
  color: #34495e;
  margin-bottom: 0.75rem;
  border-bottom: 2px solid #2980b9;
  padding-bottom: 4px;
}

/* Form Boxes */
.box {
  background: #fff;
  border-radius: 6px;
  padding: 1rem 1rem 1rem;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  margin-bottom: 2rem;
}

/* Form Fields */
.form-row, .field {
  margin-bottom: 1.3rem;
  display: flex;
  flex-direction: column;
}

.field.full {
  width: 100%;
}

label {
  font-weight: 600;
  margin-bottom: 0.35rem;
  color: #34495e;
  user-select: none;
}

input[type="text"],
input[type="date"],
input[type="number"],
select,
textarea {
  padding: 0.55rem 0.75rem;
  border: 1.8px solid #bdc3c7;
  border-radius: 6px;
  font-size: 1rem;
  transition: border-color 0.3s ease;
  font-family: inherit;
  resize: vertical;
  min-height: 36px;
}

textarea {
  min-height: 80px;
  padding-top: 0.7rem;
  line-height: 1.4;
}

input[type="text"]:focus,
input[type="date"]:focus,
input[type="number"]:focus,
select:focus,
textarea:focus {
  border-color: #2980b9;
  outline: none;
  box-shadow: 0 0 5px rgba(41, 128, 185, 0.3);
}

/* Selects: better styling */
select {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg fill='%2334445E' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 16px 16px;
  padding-right: 2rem;
  cursor: pointer;
}

select:disabled {
  background-color: #ecf0f1;
  color: #7f8c8d;
  cursor: not-allowed;
}

/* Currency inputs with currency symbol span */
.field.cost-field {
  display: flex;
  align-items: center;
}

.currency {
  font-weight: 700;
  padding: 0 0.5rem;
  font-size: 1rem;
  color: #2980b9;
  user-select: none;
}

/* Divider style */
.divider {
  font-size: 1.2rem;
  font-weight: 700;
  color: #2c3e50;
  margin: 2.5rem 0 1.5rem 0;
  border-bottom: 3px solid #2980b9;
  padding-bottom: 2px;
}

/* === General Buttons === */
.btn {
    display: inline-block;
    font-size: 13px;
    font-weight: 500;
    padding: 6px 12px;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: nowrap;
    text-align: center;
}

/* Primary Button */
.btn-primary {
    background-color: #007bff;
    color: #fff;
    border: 1px solid #007bff;
}
.btn-primary:hover {
    background-color: #0069d9;
    border-color: #0062cc;
}

/* Secondary / Ghost Button */
.btn-secondary {
    background-color: #f8f9fa;
    color: #333;
    border: 1px solid #ccc;
}
.btn-secondary:hover {
    background-color: #e2e6ea;
    border-color: #adb5bd;
}

/* Optional small button variant */
.btn-small {
    padding: 4px 10px;
    font-size: 12px;
    border-radius: 4px;
}

/* Custom Lihat Semua Projek Button */
.lihat-btn {
  background-color: #2980b9;
  color: #fff;
  border: none;
  padding: 8px 18px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 30px;
  box-shadow: 0 3px 8px rgba(0,0,0,0.1);
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.lihat-btn:hover {
  background-color: #1f6391;
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

.lihat-btn:active {
  transform: scale(0.98);
}

/* Default tab */
.tabs .tab {
    background: #f1f3f5;   /* normal background */
    color: #333;           /* text color */
    border-color: #ccc;    /* border */
}

/* Hover effect */
.tabs .tab:hover {
    background: #e2e6ea;  /* lighter/darker shade on hover */
    color: #000;
}

/* Active tab */
.tabs .tab.active {
    background: #ff0000;  /* blue active tab */
    color: #fff;          /* white text */
    border-color: #ff0000;
}


/* Image preview */
.preview {
  margin-top: 0.75rem;
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.preview img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 6px;
  border: 1.5px solid #bdc3c7;
  box-shadow: 0 1px 4px rgba(0,0,0,0.1);
  transition: border-color 0.3s ease;
}

.preview img:hover {
  border-color: #2980b9;
  box-shadow: 0 0 8px rgba(41,128,185,0.6);
}

/* Responsive tweaks */
@media (max-width: 600px) {
  .container {
    padding: 1.2rem 1.5rem 2rem;
  }

  .box {
    padding: 1rem 1.2rem 1.5rem;
  }

  .actions {
    flex-direction: column;
  }

  .btn {
    min-width: 100%;
  }
}

.grid-3cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem 2rem; /* vertical and horizontal gap */
}

.grid-3cols .field {
  margin-bottom: 0; /* Remove bottom margin so grid spacing controls spacing */
}

