/* Fresh Chop Lawn Care - Frontend Styles */

:root {
    --fclc-primary: #2d5a27;
    --fclc-primary-dark: #1e3d1a;
    --fclc-secondary: #6b8e23;
    --fclc-accent: #8fbc8f;
    --fclc-text: #333333;
    --fclc-text-light: #666666;
    --fclc-border: #dddddd;
    --fclc-background: #f9f9f9;
    --fclc-white: #ffffff;
    --fclc-success: #28a745;
    --fclc-warning: #ffc107;
    --fclc-danger: #dc3545;
    --fclc-info: #17a2b8;
}

/* Forms */
.fclc-form { max-width: 600px; margin: 0 auto; padding: 30px; background: var(--fclc-white); border-radius: 8px; box-shadow: 0 2px 10px rgba(0,0,0,0.1); }
.fclc-form-header { text-align: center; margin-bottom: 30px; }
.fclc-form-header h2 { color: var(--fclc-primary); margin-bottom: 10px; }
.fclc-form-header p { color: var(--fclc-text-light); }
.fclc-form-group { margin-bottom: 20px; }
.fclc-form-group label { display: block; margin-bottom: 5px; font-weight: 600; color: var(--fclc-text); }
.fclc-form-group input, .fclc-form-group select, .fclc-form-group textarea { width: 100%; padding: 12px; border: 1px solid var(--fclc-border); border-radius: 4px; font-size: 16px; transition: border-color 0.3s; }
.fclc-form-group input:focus, .fclc-form-group select:focus, .fclc-form-group textarea:focus { outline: none; border-color: var(--fclc-primary); }
.fclc-form-row { display: flex; gap: 20px; }
.fclc-form-row .fclc-form-group { flex: 1; }
.fclc-form-group-small { max-width: 100px; }
.fclc-form-footer { text-align: center; margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--fclc-border); }
.fclc-form-footer a { color: var(--fclc-primary); }
.fclc-form-section { margin-bottom: 30px; padding-bottom: 20px; border-bottom: 1px solid var(--fclc-border); }
.fclc-form-section h3 { color: var(--fclc-primary); margin-bottom: 20px; }
.fclc-form-info { background: var(--fclc-background); padding: 15px; border-radius: 4px; margin-bottom: 20px; }
.fclc-form-info p { margin: 0; color: var(--fclc-text-light); font-size: 14px; }
.fclc-form-error { color: var(--fclc-danger); font-size: 14px; margin-top: 5px; }

/* Messages */
.fclc-form-messages { margin-bottom: 20px; }
.fclc-message { padding: 12px 15px; border-radius: 4px; margin-bottom: 10px; }
.fclc-message-success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.fclc-message-error { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }

/* Buttons */
.fclc-btn { display: inline-block; padding: 12px 24px; font-size: 16px; font-weight: 600; text-decoration: none; border: none; border-radius: 4px; cursor: pointer; transition: all 0.3s; text-align: center; }
.fclc-btn-primary { background: var(--fclc-primary); color: var(--fclc-white); }
.fclc-btn-primary:hover { background: var(--fclc-primary-dark); color: var(--fclc-white); }
.fclc-btn-secondary { background: var(--fclc-background); color: var(--fclc-text); border: 1px solid var(--fclc-border); }
.fclc-btn-secondary:hover { background: var(--fclc-border); }
.fclc-btn-danger { background: var(--fclc-danger); color: var(--fclc-white); }
.fclc-btn-danger:hover { background: #c82333; color: var(--fclc-white); }
.fclc-btn-small { padding: 6px 12px; font-size: 13px; }
.fclc-btn:disabled { opacity: 0.6; cursor: not-allowed; }

/* Dashboard */
.fclc-dashboard { max-width: 900px; margin: 0 auto; }
.fclc-dashboard-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; padding-bottom: 20px; border-bottom: 1px solid var(--fclc-border); }
.fclc-dashboard-header h2 { color: var(--fclc-primary); margin: 0; }
.fclc-dashboard-nav { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; margin-bottom: 30px; }
.fclc-nav-item { display: flex; flex-direction: column; align-items: center; padding: 20px; background: var(--fclc-white); border: 1px solid var(--fclc-border); border-radius: 8px; text-decoration: none; color: var(--fclc-text); transition: all 0.3s; }
.fclc-nav-item:hover { border-color: var(--fclc-primary); transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.1); }
.fclc-nav-item-highlight { background: var(--fclc-primary); color: var(--fclc-white); border-color: var(--fclc-primary); }
.fclc-nav-item-highlight:hover { background: var(--fclc-primary-dark); color: var(--fclc-white); }
.fclc-nav-icon { font-size: 24px; margin-bottom: 8px; }
.fclc-dashboard-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.fclc-dashboard-section { background: var(--fclc-white); padding: 20px; border-radius: 8px; border: 1px solid var(--fclc-border); }
.fclc-dashboard-section h3 { color: var(--fclc-primary); margin-top: 0; margin-bottom: 15px; }

/* Alerts */
.fclc-alert { padding: 15px; border-radius: 4px; margin-bottom: 20px; }
.fclc-alert-warning { background: #fff3cd; color: #856404; border: 1px solid #ffeeba; }
.fclc-alert a { color: inherit; font-weight: 600; margin-left: 10px; }

/* Lists */
.fclc-list { list-style: none; padding: 0; margin: 0; }
.fclc-list-item { padding: 12px 0; border-bottom: 1px solid var(--fclc-border); }
.fclc-list-item:last-child { border-bottom: none; }
.fclc-list-item-main { display: flex; justify-content: space-between; align-items: center; margin-bottom: 5px; }
.fclc-list-item-meta { font-size: 13px; color: var(--fclc-text-light); }
.fclc-link { color: var(--fclc-primary); text-decoration: none; font-weight: 600; }
.fclc-link:hover { text-decoration: underline; }
.fclc-empty { color: var(--fclc-text-light); font-style: italic; }

/* Badges */
.fclc-badge { display: inline-block; padding: 3px 8px; font-size: 12px; font-weight: 600; border-radius: 3px; text-transform: uppercase; }
.fclc-badge-pending { background: #fff3cd; color: #856404; }
.fclc-badge-confirmed { background: #cce5ff; color: #004085; }
.fclc-badge-in_progress { background: #d4edda; color: #155724; }
.fclc-badge-completed { background: #d1ecf1; color: #0c5460; }
.fclc-badge-cancelled { background: #f8d7da; color: #721c24; }
.fclc-badge-unpaid { background: #fff3cd; color: #856404; }
.fclc-badge-paid { background: #d4edda; color: #155724; }
.fclc-badge-overdue { background: #f8d7da; color: #721c24; }
.fclc-badge-draft { background: #e2e3e5; color: #383d41; }

/* Page Layout */
.fclc-page { max-width: 900px; margin: 0 auto; }
.fclc-page-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; }
.fclc-page-header h2 { color: var(--fclc-primary); margin: 0; }
.fclc-page-footer { margin-top: 30px; padding-top: 20px; border-top: 1px solid var(--fclc-border); }
.fclc-empty-state { text-align: center; padding: 40px 20px; background: var(--fclc-background); border-radius: 8px; }
.fclc-empty-state p { margin-bottom: 20px; color: var(--fclc-text-light); }

/* Tables */
.fclc-table-wrapper { overflow-x: auto; }
.fclc-table { width: 100%; border-collapse: collapse; background: var(--fclc-white); }
.fclc-table th, .fclc-table td { padding: 12px 15px; text-align: left; border-bottom: 1px solid var(--fclc-border); }
.fclc-table th { background: var(--fclc-background); font-weight: 600; color: var(--fclc-text); }
.fclc-table tr:hover td { background: var(--fclc-background); }

/* Modals */
.fclc-modal { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); z-index: 9999; align-items: center; justify-content: center; }
.fclc-modal.active { display: flex; }
.fclc-modal-content { background: var(--fclc-white); padding: 30px; border-radius: 8px; max-width: 600px; width: 90%; max-height: 90vh; overflow-y: auto; position: relative; }
.fclc-modal-close { position: absolute; top: 15px; right: 20px; font-size: 24px; cursor: pointer; color: var(--fclc-text-light); }
.fclc-modal-close:hover { color: var(--fclc-text); }

/* Invoice View */
.fclc-invoice-view { }
.fclc-invoice-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; padding-bottom: 15px; border-bottom: 1px solid var(--fclc-border); }
.fclc-invoice-header h3 { margin: 0; color: var(--fclc-primary); }
.fclc-invoice-meta { margin-bottom: 20px; }
.fclc-invoice-meta p { margin: 5px 0; }
.fclc-invoice-items { width: 100%; margin-bottom: 20px; }
.fclc-invoice-items th, .fclc-invoice-items td { padding: 10px; border: 1px solid var(--fclc-border); }
.fclc-invoice-items th { background: var(--fclc-background); }
.fclc-invoice-items tfoot td { background: var(--fclc-background); }
.fclc-invoice-total td { font-weight: 600; }
.fclc-invoice-notes { background: var(--fclc-background); padding: 15px; border-radius: 4px; }

/* Booking Form Extras */
.fclc-address-toggle { display: flex; gap: 20px; margin-top: 10px; }
.fclc-address-toggle label { display: flex; align-items: center; gap: 5px; cursor: pointer; }
.fclc-info-box { background: var(--fclc-background); padding: 15px; border-radius: 4px; margin-bottom: 20px; white-space: pre-line; }
.fclc-card-info { background: var(--fclc-background); padding: 15px; border-radius: 4px; display: flex; align-items: center; gap: 10px; margin-bottom: 15px; }
.fclc-card-brand { text-transform: capitalize; }

/* Login Required */
.fclc-login-required { text-align: center; padding: 40px; background: var(--fclc-background); border-radius: 8px; }
.fclc-login-required p { margin-bottom: 20px; }

/* Stripe Element */
#fclc-card-element, #fclc-new-card-element { padding: 15px; border: 1px solid var(--fclc-border); border-radius: 4px; background: var(--fclc-white); margin-bottom: 20px; }

/* Responsive */
@media (max-width: 768px) {
    .fclc-form-row { flex-direction: column; gap: 0; }
    .fclc-form-group-small { max-width: 100%; }
    .fclc-dashboard-nav { grid-template-columns: repeat(2, 1fr); }
    .fclc-dashboard-grid { grid-template-columns: 1fr; }
    .fclc-page-header { flex-direction: column; gap: 15px; text-align: center; }
    .fclc-table { font-size: 14px; }
    .fclc-table th, .fclc-table td { padding: 8px 10px; }
}
