/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

/* Clients & Properties Management Styles */

/* Global Font */
body {
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

.page-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.page-title {
    font-size: 1.875rem;
    font-weight: bold;
    color: #111827;
}

/* Forms */
.search-form {
    display: flex;
    gap: 0.5rem;
}

.form-input {
    border-radius: 0.375rem;
    border: 1px solid #d1d5db;
    padding: 0.5rem;
    width: 16rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
    margin-bottom: 0.25rem;
}

.form-control {
    display: block;
    width: 100%;
    border-radius: 0.375rem;
    border: 1px solid #d1d5db;
    padding: 0.5rem;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.form-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
}

/* Client List */
.client-list {
    background: white;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    border-radius: 0.5rem;
    list-style: none;
    padding: 0;
    margin: 0;
    overflow: hidden;
}

.client-card {
    padding: 1rem;
    border-bottom: 1px solid #e5e7eb;
    transition: background-color 0.15s ease-in-out;
}

.client-card:hover {
    background-color: #f9fafb;
}

.client-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.client-name {
    font-size: 1.125rem;
    font-weight: 500;
    color: #4f46e5;
    margin: 0;
}

.client-info {
    margin-top: 0.25rem;
    font-size: 0.875rem;
    color: #6b7280;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.client-actions {
    display: flex;
    gap: 0.5rem;
}

/* Property List (Nested) */
.property-list-container {
    margin-top: 1rem;
    border-top: 1px solid #f3f4f6;
    padding-top: 0.5rem;
}

.property-list-title {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #9ca3af;
    margin-bottom: 0.5rem;
}

.property-list {
    display: grid;
    gap: 0.5rem;
}

.property-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem;
    background-color: #f9fafb;
    border-radius: 0.25rem;
    border: 1px solid #e5e7eb;
    font-size: 0.875rem;
}

.property-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.property-address {
    color: #111827;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    font-weight: 500;
    font-size: 0.875rem;
    cursor: pointer;
    text-decoration: none;
    border: none;
}

.btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
}

.btn-primary {
    background-color: #4f46e5;
    color: white;
}

.btn-primary:hover {
    background-color: #4338ca;
}

.btn-secondary {
    background-color: #f3f4f6;
    color: #374151;
}

.btn-secondary:hover {
    background-color: #e5e7eb;
}

.btn-danger-soft {
    background-color: #fee2e2;
    color: #dc2626;
}

.btn-danger-soft:hover {
    background-color: #fecaca;
}

.btn-text {
    background: transparent;
    color: #4f46e5;
    padding: 0;
}

.btn-text:hover {
    color: #3730a3;
}

.btn-text-danger {
    background: transparent;
    color: #dc2626;
    padding: 0;
}

.btn-text-danger:hover {
    color: #991b1b;
}

.btn-cancel {
    color: #4b5563;
}

.btn-cancel:hover {
    color: #111827;
}

/* Badges */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.125rem 0.5rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
}

.badge-success {
    background-color: #d1fae5;
    color: #065f46;
}

.badge-warning {
    background-color: #fef3c7;
    color: #92400e;
}

/* Icons */
.icon {
    width: 1rem;
    height: 1rem;
}

/* Edit Form Container */
.edit-container {
    max-width: 42rem;
    margin: 0 auto;
    background: white;
    padding: 2rem;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.error-explanation {
    background-color: #fef2f2;
    color: #b91c1c;
    padding: 1rem;
    border-radius: 0.375rem;
    margin-bottom: 1.5rem;
}

.error-explanation h2 {
    font-weight: bold;
    font-size: 1rem;
}

.error-explanation ul {
    margin-left: 1.5rem;
    list-style-type: disc;
}