/* ===== BROKERS.HTML SPECIFIC STYLES ===== */
/* File: frontend/assets/css/brokers.css */

/* Sectional Layout */
.broker-layout {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

/* Left Side: Form Section */
.broker-form-section {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    height: fit-content;
    position: sticky;
    top: 2rem;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    color: #495057;
    font-size: 1.25rem;
    font-weight: 600;
}

.section-title i {
    color: var(--primary-color);
}

.section-subtitle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    color: #6c757d;
    font-size: 1rem;
    font-weight: 600;
}

.section-subtitle i {
    color: var(--primary-color);
}

/* Form Groups with Lucid Icons */
.form-group {
    margin-bottom: 1.25rem;
    position: relative;
}

.form-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #495057;
    font-size: 0.9rem;
}

.form-group label i {
    color: var(--primary-color);
}

.form-group label .required {
    color: #ef4444;
    margin-left: 0.25rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ced4da;
    border-radius: 6px;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.form-hint {
    font-size: 0.8rem;
    color: #6c757d;
    margin-top: 0.25rem;
    font-style: italic;
    display: block;
}

/* Checkbox with Lucid Icons */
.checkbox-label {
    display: flex !important;
    align-items: center;
    gap: 0.5rem;
    font-weight: normal !important;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: auto !important;
    margin: 0;
}

.checkbox-label i {
    color: var(--success-color);
}

.form-section {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e9ecef;
}

/* Form Actions with Lucid Icons */
.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.form-actions .btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.form-actions .btn i {
    width: 16px;
    height: 16px;
}

/* Right Side: Broker List */
.broker-list-section {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.list-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    gap: 1rem;
    flex-wrap: wrap;
}

.list-header h2 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.25rem;
    font-weight: 600;
    color: #495057;
    margin: 0;
}

.list-header h2 i {
    color: var(--primary-color);
}

/* Search Box with Lucid Icon */
.search-box {
    position: relative;
    display: flex;
    align-items: center;
    flex: 1;
    max-width: 400px;
}

.search-box i {
    position: absolute;
    left: 12px;
    color: #6c757d;
    pointer-events: none;
}

.search-box input {
    width: 100%;
    padding: 0.75rem 2.5rem 0.75rem 2.5rem;
    border: 1px solid #ced4da;
    border-radius: 6px;
    font-size: 0.9rem;
    transition: border-color 0.2s;
}

.search-box input:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.search-box .clear-btn {
    position: absolute;
    right: 8px;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #6c757d;
    cursor: pointer;
    padding: 0 0.5rem;
    line-height: 1;
}

.search-box .clear-btn:hover {
    color: #dc3545;
}

/* Broker Cards Container */
#brokers-container {
    display: grid;
    gap: 1rem;
}

/* Page Header with Lucid Icons */
.page-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 2rem 0 2.5rem;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
    position: relative;
    z-index: 1;
}

.header-info h1 {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.header-info h1 i {
    width: 32px;
    height: 32px;
}

.header-info p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin: 0;
}

/* Loading Spinner */
.loading-spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #007bff;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .broker-layout {
        grid-template-columns: 1fr;
    }

    .broker-form-section {
        position: relative;
        top: 0;
    }
}

@media (max-width: 768px) {
    .header-info h1 {
        font-size: 1.75rem;
    }

    .header-info h1 i {
        width: 24px;
        height: 24px;
    }

    .section-title {
        font-size: 1.1rem;
    }

    .list-header {
        flex-direction: column;
        align-items: stretch;
    }

    .search-box {
        max-width: 100%;
    }

    .form-actions {
        flex-direction: column;
    }
}

/* Password Requirements Styling */
.validation-requirements {
    margin-top: 0.75rem;
    padding: 0.75rem;
    background: #f8f9fa;
    border-radius: 6px;
    border: 1px solid #e9ecef;
}

#password-requirements {
    list-style: none;
    padding: 0;
    margin: 0;
}

#password-requirements li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0;
    font-size: 0.85rem;
    color: #6c757d;
    transition: color 0.2s;
}

#password-requirements li.requirement-met {
    color: #28a745;
}

#password-requirements li.requirement-met i {
    color: #28a745;
}

#password-requirements li.requirement-unmet {
    color: #dc3545;
}

#password-requirements li.requirement-unmet i {
    color: #dc3545;
}

/* Lucid Icon Utility Classes */
.w-3 {
    width: 12px;
    height: 12px;
}

.w-4 {
    width: 16px;
    height: 16px;
}

.w-5 {
    width: 20px;
    height: 20px;
}

.w-6 {
    width: 24px;
    height: 24px;
}

.w-8 {
    width: 32px;
    height: 32px;
}

.h-3 {
    height: 12px;
}

.h-4 {
    height: 16px;
}

.h-5 {
    height: 20px;
}

.h-6 {
    height: 24px;
}

.h-8 {
    height: 32px;
}