/* Apple-style Minimal Theme */

:root {
  --primary: #e63946;
  --primary-hover: #d62839;
  --text: #1d1d1f;
  --text-light: #3c3c4399;
  --bg-page: #f2f2f2;
  --bg-white: #ffffff;
  --input-border: #d0d0d0;
  --radius: 8px;
  --radius-lg: 12px;
  --shadow: 0 1px 2px rgba(0,0,0,0.1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background: var(--bg-page);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  font-size: 17px;
  line-height: 1.47;
}

.container {
  max-width: 1200px;
  margin: 3rem auto;
  padding: 2rem;
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

/* Headings */
h1 {
  font-size: 28px;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text);
}

.section-title {
  font-size: 22px;
  font-weight: 600;
  margin: 2rem 0 1rem;
  border-bottom: 2px solid var(--primary);
  padding-bottom: 0.25rem;
  color: var(--text);
}

.item-card {
  background: var(--bg-white);
  border: 1px solid #e1e1e1;
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow);
}

.item-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text);
}

/* Labels */
.form-label {
  display: block;
  margin-bottom: 0.25rem;
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
}

/* Inputs & Selects */
.form-control,
.form-select,
input[type="file"] {
  width: 100%;
  padding: 0.6rem 0.75rem;
  font-size: 15px;
  color: var(--text);
  background: #fafafa;
  border: 1px solid var(--input-border);
  border-radius: var(--radius);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-control:focus,
.form-select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(230,57,70,0.2);
}

/* Buttons */
.btn-square-outline,
.btn-square-submit {
  font-family: inherit;
  border-radius: var(--radius);
  font-weight: 600;
  transition: background 0.2s, color 0.2s;
}

.btn-square-outline {
  display: inline-block;
  margin: 1rem auto;
  padding: 0.5rem 1rem;
  background: transparent;
  border: 1px solid var(--primary);
  color: var(--primary);
  cursor: pointer;
}

.btn-square-outline:hover {
  background: var(--primary-hover);
  color: #fff;
  border-color: var(--primary-hover);
}

.btn-square-submit {
  display: block;
  width: 100%;
  padding: 0.75rem;
  background: var(--primary);
  color: #fff;
  border: none;
}

.btn-square-submit:hover {
  background: var(--primary-hover);
}

/* Modal & Progress */
.modal-content {
  border-radius: var(--radius);
  overflow: hidden;
}

.modal-title {
  font-size: 17px;
  font-weight: 600;
  color: var(--text);
}

.progress-sm {
  height: 1rem;
  background: #e1e1e1;
  border-radius: var(--radius);
}

.progress-bar {
  transition: width 0.3s ease;
}

/* Utility */
.mb-3 { margin-bottom: 1rem !important; }
.mb-4 { margin-bottom: 1.25rem !important; }
.mb-5 { margin-bottom: 1.5rem !important; }
.g-3 { gap: 0.75rem !important; }

/* Logo styling */
.logo {
  text-align: center;
  margin-bottom: 1rem;
}
.logo img {
  max-width: 100%;
  height: auto;
}

/* Make all UI elements have square corners */
.card,
.btn,
.form-control,
.form-select,
.badge,
.container,
.modal-content,
.item-card,
.input-group-text {
  border-radius: 0 !important;
}

/* Mobile responsiveness for index.php form */
@media (max-width: 767.98px) {
  .container {
    padding: 1rem !important;
    margin: 1rem auto !important;
  }
  /* Stack all columns inside item cards on small screens */
  .item-card .row > [class*="col"] {
    flex: 0 0 100% !important;
    max-width: 100% !important;
  }
}
