/**
 * Professional Black/Gray/Yellow Theme
 * Photo Awards by Domiri
 * Color Psychology: Black (elegance, sophistication), Gray (balance, neutrality), Yellow (energy, optimism)
 */

/* Color Palette - Psychologically Harmonious */
:root {
  /* Primary Colors */
  --theme-black: #1a1a1a;
  --theme-dark-gray: #2d2d2d;
  --theme-medium-gray: #6b6b6b;
  --theme-light-gray: #d4d4d4;
  --theme-lighter-gray: #e8e8e8;
  --theme-yellow: #f4c430;
  --theme-yellow-dark: #d4a017;
  --theme-yellow-light: #ffd966;
  --theme-background: #f9f9f9;
  --theme-white: #ffffff;
  
  /* Status Colors */
  --status-draft: #6b6b6b;
  --status-pending: #f4c430;
  --status-approved: #1a1a1a;
}

/* Global Background */
body.gla-submission-page,
body.gla-dashboard-page {
  background-color: var(--theme-background);
}

/* Form Container */
.gla-form-container {
  max-width: 900px;
  margin: 40px auto;
  padding: 40px;
  background-color: var(--theme-white);
  border: 1px solid var(--theme-light-gray);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.gla-form-container h2 {
  color: var(--theme-black);
  font-size: 32px;
  font-weight: 600;
  margin-bottom: 8px;
}

.gla-form-container h3 {
  color: var(--theme-black);
  font-size: 20px;
  font-weight: 600;
  margin-top: 32px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--theme-yellow);
}

/* Progress indicator */
.gla-progress {
  color: var(--theme-medium-gray);
  font-size: 14px;
  margin-bottom: 32px;
}

/* Form Inputs */
.gla-form input[type="text"],
.gla-form input[type="email"],
.gla-form input[type="number"],
.gla-form textarea,
.gla-form select {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--theme-light-gray);
  background-color: var(--theme-white);
  color: var(--theme-black);
  font-size: 15px;
  transition: all 0.2s ease;
}

.gla-form input[type="text"]:focus,
.gla-form input[type="email"]:focus,
.gla-form input[type="number"]:focus,
.gla-form textarea:focus,
.gla-form select:focus {
  outline: none;
  border-color: var(--theme-yellow);
  box-shadow: 0 0 0 3px rgba(244, 196, 48, 0.1);
}

.gla-form label {
  display: block;
  margin-bottom: 8px;
  color: var(--theme-black);
  font-size: 14px;
  font-weight: 500;
}

/* CONSISTENT BUTTON SIZING - All buttons same height and padding */
.gla-button,
button.gla-button,
input[type="submit"].gla-button,
a.gla-button {
  padding: 12px 24px !important;
  background-color: var(--theme-black) !important;
  color: var(--theme-white) !important;
  border: none !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none !important;
  display: inline-block !important;
  line-height: 1.4 !important;
  height: auto !important;
  min-height: 44px !important;
  box-sizing: border-box !important;
}

.gla-button:hover,
button.gla-button:hover,
input[type="submit"].gla-button:hover,
a.gla-button:hover {
  background-color: var(--theme-dark-gray);
  color: var(--theme-white);
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* Primary Yellow Button */
.gla-button-primary,
.gla-button.gla-button-primary {
  background-color: var(--theme-yellow) !important;
  color: var(--theme-black) !important;
}

.gla-button-primary:hover,
.gla-button.gla-button-primary:hover {
  background-color: var(--theme-yellow-dark);
  color: var(--theme-white);
}

/* Secondary Button */
.gla-button-secondary {
  background-color: var(--theme-white);
  color: var(--theme-black);
  border: 2px solid var(--theme-black);
}

.gla-button-secondary:hover {
  background-color: var(--theme-black);
  color: var(--theme-white);
}

/* Small buttons - CONSISTENT SIZE */
.gla-button-small,
a.gla-button-small {
  padding: 10px 20px;
  font-size: 13px;
  min-height: 38px;
}

/* Action Buttons - Consistent theme colors */
.gla-button-edit {
  background-color: var(--theme-yellow);
  color: var(--theme-black);
}

.gla-button-edit:hover {
  background-color: var(--theme-yellow-dark);
  color: var(--theme-white);
}

.gla-button-delete {
  background-color: var(--theme-medium-gray);
  color: var(--theme-white);
}

.gla-button-delete:hover {
  background-color: var(--theme-dark-gray);
}

.gla-button-pay {
  background-color: var(--theme-black);
  color: var(--theme-white);
}

.gla-button-pay:hover {
  background-color: var(--theme-yellow);
  color: var(--theme-black);
}

/* Category Groups */
.gla-category-groups {
  margin: 20px 0;
}

.gla-category-group {
  margin-bottom: 30px;
}

.gla-category-header {
  font-size: 16px;
  font-weight: 700;
  color: var(--theme-black);
  text-transform: uppercase;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--theme-yellow);
  letter-spacing: 0.5px;
}

.gla-category-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px 20px;
  list-style: none;
  padding: 0;
  margin: 12px 0;
}

.gla-category-list li {
  margin: 0;
}

.gla-category-list label {
  display: flex;
  align-items: center;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  transition: none;
  font-size: 13px;
  color: #333;
}

.gla-category-list label:hover {
  color: #000;
}

.gla-category-list input[type="checkbox"] {
  margin-right: 8px;
  width: 16px;
  height: 16px;
  cursor: pointer;
}

.gla-category-list input[type="checkbox"]:checked + label,
.gla-category-list label:has(input[type="checkbox"]:checked) {
  font-weight: 600;
  color: #000;
}

/* Entry Type Selector */
.gla-entry-type-selector {
  display: flex;
  gap: 16px;
  margin-top: 8px;
}

.gla-entry-type-option {
  flex: 1;
  padding: 16px;
  border: 2px solid var(--theme-light-gray);
  background-color: var(--theme-white);
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
}

.gla-entry-type-option:hover {
  border-color: var(--theme-yellow);
  background-color: var(--theme-lighter-gray);
}

.gla-entry-type-option.selected {
  border-color: var(--theme-yellow);
  background-color: var(--theme-yellow);
  color: var(--theme-black);
}

.gla-entry-type-option.selected .gla-entry-type-label {
  color: var(--theme-black);
  font-weight: 600;
}

.gla-entry-type-option.selected .gla-entry-type-icon svg {
  fill: var(--theme-black);
}

/* Category List - Removed duplicate, using styles from line 214 */

/* Total Fee Display */
.gla-total-fee {
  font-size: 20px;
  font-weight: 600;
  color: var(--theme-black) !important;
  margin: 24px 0;
  padding: 16px 20px;
  background-color: var(--theme-yellow-light);
  border-left: 4px solid var(--theme-yellow);
}

.gla-total-fee #total_fee {
  color: var(--theme-black) !important;
  font-weight: 700;
}

/* Dashboard Container */
.gla-dashboard-container {
  max-width: 1200px;
  margin: 40px auto;
  padding: 40px;
  background-color: var(--theme-background);
}

/* Dashboard Header */
.gla-dashboard-header {
  background-color: var(--theme-white);
  padding: 32px;
  margin-bottom: 32px;
  border: 1px solid var(--theme-light-gray);
}

.gla-dashboard-header h1 {
  color: var(--theme-black);
  font-size: 32px;
  font-weight: 600;
  margin-bottom: 8px;
}

.gla-dashboard-header h2 {
  color: var(--theme-medium-gray);
  font-size: 18px;
  font-weight: 400;
  margin-bottom: 24px;
}

/* Submit Button in Dashboard */
.gla-submit-button {
  background-color: var(--theme-yellow);
  color: var(--theme-black);
  padding: 14px 32px;
  font-size: 16px;
  font-weight: 600;
}

.gla-submit-button:hover {
  background-color: var(--theme-yellow-dark);
  color: var(--theme-white);
}

/* Tabs - My Entries / My Profile */
.gla-dashboard-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 0;
  border-bottom: 2px solid var(--theme-light-gray);
  background-color: var(--theme-white);
  padding: 0 32px;
  align-items: center;
  justify-content: space-between;
}

.gla-dashboard-tab {
  padding: 16px 24px;
  background: none;
  border: none;
  color: var(--theme-medium-gray);
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  border-bottom: 3px solid transparent;
  transition: all 0.2s ease;
  text-decoration: none;
}

.gla-dashboard-tab:hover {
  color: var(--theme-black);
  background-color: var(--theme-lighter-gray);
}

.gla-dashboard-tab.active {
  color: var(--theme-black);
  border-bottom-color: var(--theme-yellow);
  font-weight: 600;
}

/* Year Filter in Tabs */
.gla-tabs-filter {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.gla-tabs-filter label {
  font-size: 13px;
  color: var(--theme-medium-gray);
  font-weight: 500;
  margin: 0;
}

.gla-tabs-filter select {
  padding: 6px 12px;
  border: 1px solid var(--theme-light-gray);
  background-color: var(--theme-white);
  color: var(--theme-black);
  font-size: 13px;
  min-width: 120px;
}

.gla-tabs-filter select:focus {
  outline: none;
  border-color: var(--theme-yellow);
}

/* Entry Card Actions - Buttons in one line */
.gla-entry-actions {
  display: flex;
  gap: 8px;
  margin-top: 16px;
  flex-wrap: nowrap;
}

.gla-entry-actions .gla-button-small {
  flex: 0 0 auto;
  white-space: nowrap;
}

/* Entry Cards */
.gla-entry-card {
  background-color: var(--theme-white);
  border: 1px solid var(--theme-light-gray);
  padding: 24px;
  margin-bottom: 20px;
  transition: all 0.2s ease;
}

.gla-entry-card:hover {
  border-color: var(--theme-yellow);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.gla-entry-card h3 {
  color: var(--theme-black);
  font-size: 20px;
  font-weight: 600;
  margin: 0 0 12px 0;
  border: none;
  padding: 0;
}

.gla-entry-meta {
  color: var(--theme-medium-gray);
  font-size: 14px;
  margin-bottom: 16px;
}

/* Status Badges */
.gla-status-badge {
  display: inline-block;
  padding: 6px 12px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.gla-status-draft {
  background-color: var(--status-draft);
  color: var(--theme-white);
}

.gla-status-pending {
  background-color: var(--status-pending);
  color: var(--theme-black);
}

.gla-status-approved {
  background-color: var(--status-approved);
  color: var(--theme-white);
}

/* Upload Area */
.gla-upload-area,
#gla-upload-form input[type="file"] {
  border: 2px dashed var(--theme-light-gray);
  background-color: var(--theme-lighter-gray);
  padding: 40px;
  text-align: center;
  margin: 24px 0;
  transition: all 0.2s ease;
}

.gla-upload-area:hover,
#gla-upload-form input[type="file"]:hover {
  border-color: var(--theme-yellow);
  background-color: var(--theme-yellow-light);
}

/* Upload Button */
#gla-upload-form button[type="submit"],
#gla-upload-form .gla-button {
  background-color: var(--theme-yellow);
  color: var(--theme-black);
}

#gla-upload-form button[type="submit"]:hover,
#gla-upload-form .gla-button:hover {
  background-color: var(--theme-yellow-dark);
  color: var(--theme-white);
}

/* Image Grid */
.gla-image-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
  margin: 24px 0;
}

.gla-image-item {
  position: relative;
  background-color: var(--theme-white);
  border: 1px solid var(--theme-light-gray);
  padding: 8px;
  transition: all 0.2s ease;
}

.gla-image-item:hover {
  border-color: var(--theme-yellow);
}

.gla-image-item img {
  width: 100%;
  height: auto;
  display: block;
}

/* Messages */
.gla-error,
.gla-success,
.gla-info {
  padding: 16px 20px;
  margin: 16px 0;
  font-size: 14px;
}

.gla-error {
  background-color: var(--theme-medium-gray);
  color: var(--theme-white);
  border-left: 4px solid var(--theme-dark-gray);
}

.gla-success {
  background-color: var(--theme-yellow-light);
  color: var(--theme-black);
  border-left: 4px solid var(--theme-yellow);
}

.gla-info {
  background-color: var(--theme-lighter-gray);
  color: var(--theme-black);
  border-left: 4px solid var(--theme-medium-gray);
}

/* Form Actions - Consistent button alignment */
.gla-form-actions {
  margin-top: 32px;
  display: flex;
  gap: 12px;
  align-items: center;
}

.gla-form-actions .gla-button {
  margin: 0;
}

/* Entry Summary Box */
.gla-entry-summary {
  background-color: var(--theme-lighter-gray);
  padding: 24px;
  margin: 24px 0;
  border-left: 4px solid var(--theme-yellow);
}

.gla-entry-summary h3 {
  margin-top: 0;
  border: none;
  padding: 0;
  margin-bottom: 16px;
}

/* Payment Buttons - Step 4 */
.gla-payment-buttons {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

.gla-payment-buttons .gla-button {
  flex: 1;
  text-align: center;
}

/* Proceed to Checkout - Primary */
.gla-payment-buttons .gla-button:first-child {
  background-color: var(--theme-yellow);
  color: var(--theme-black);
}

.gla-payment-buttons .gla-button:first-child:hover {
  background-color: var(--theme-yellow-dark);
  color: var(--theme-white);
}

/* Pay Later - Secondary */
.gla-payment-buttons .gla-button:nth-child(2) {
  background-color: var(--theme-black);
  color: var(--theme-white);
}

/* Start Over - Tertiary */
.gla-payment-buttons .gla-button:last-child {
  background-color: var(--theme-white);
  color: var(--theme-black);
  border: 2px solid var(--theme-light-gray);
}

.gla-payment-buttons .gla-button:last-child:hover {
  border-color: var(--theme-black);
}

/* Responsive Design */
@media (max-width: 768px) {
  .gla-form-container,
  .gla-dashboard-container {
    padding: 24px;
    margin: 20px auto;
  }
  
  .gla-entry-type-selector {
    flex-direction: column;
  }
  
  .gla-category-list {
    grid-template-columns: 1fr;
  }
  
  .gla-image-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  }
  
  .gla-filters-container {
    flex-direction: column;
    align-items: stretch;
  }
  
  .gla-filter-group {
    width: 100%;
  }
  
  .gla-filter-group select {
    width: 100%;
  }
  
  .gla-payment-buttons {
    flex-direction: column;
  }
  
  .gla-form-actions {
    flex-direction: column;
  }
  
  .gla-form-actions .gla-button {
    width: 100%;
  }
}

