/* Custom Theme CSS - Extracted from client onboarding */
/* This stylesheet provides the beautiful design used across all application pages */

.client-container,
.page-container {
    padding: 0;
    background-color: transparent;
    min-height: 100vh;
    width: 100%;
    max-width: 100%;
}

.page-header {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

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

.page-title {
    font-size: 2rem;
    font-weight: 700;
    color: #1a202c;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.page-title i {
    color: #667eea;
}

.page-subtitle {
    color: #718096;
    margin: 0.5rem 0 0 0;
    font-size: 1.1rem;
}

.header-stats {
    display: flex;
    gap: 2rem;
}

.stat-item {
    text-align: center;
}

.stat-value {
    display: block;
    font-size: 1.875rem;
    font-weight: 700;
    color: #667eea;
}

.stat-label {
    display: block;
    font-size: 0.875rem;
    color: #718096;
    margin-top: 0.25rem;
}

.content-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
}

.form-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 100%;
}

.form-header {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e2e8f0;
}

.form-header h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1a202c;
    margin: 0;
}

.form-header p {
    color: #718096;
    margin: 0.5rem 0 0 0;
}

.alert {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.alert-success {
    background: #f0fff4;
    border: 1px solid #9ae6b4;
    color: #22543d;
}

.alert-danger {
    background: #fed7d7;
    border: 1px solid #feb2b2;
    color: #742a2a;
}

.error-list {
    margin: 0;
    padding-left: 1rem;
}

.client-type-section {
    margin-bottom: 2rem;
}

.client-type-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.client-type-option {
    cursor: pointer;
}

.client-type-option input[type="radio"] {
    display: none;
}

.option-card {
    background: #f7fafc;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.2s;
}

.option-card i {
    font-size: 2rem;
    color: #718096;
    margin-bottom: 0.5rem;
    display: block;
}

.option-card span {
    font-weight: 600;
    color: #1a202c;
    display: block;
    margin-bottom: 0.25rem;
}

.option-card small {
    color: #718096;
}

.client-type-option input[type="radio"]:checked + .option-card {
    background: white;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.client-type-option input[type="radio"]:checked + .option-card i {
    color: #667eea;
}

.form-section {
    margin-bottom: 2rem;
}

.section-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1a202c;
    margin: 0 0 1.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.section-title i {
    color: #667eea;
}

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

.form-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    color: #374151;
    margin-bottom: 0.5rem;
}

.form-label i {
    color: #667eea;
    width: 16px;
}

.form-control {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.2s;
    background: white;
}

.form-control:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-control.is-invalid {
    border-color: #f56565;
    box-shadow: 0 0 0 3px rgba(245, 101, 101, 0.1);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.agreement-section {
    background: #f7fafc;
    padding: 1.5rem;
    border-radius: 8px;
    margin: 1.5rem 0;
}

.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.custom-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem;
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.custom-checkbox:hover {
    border-color: #667eea;
}

.custom-checkbox input[type="checkbox"] {
    margin-top: 0.25rem;
    width: 16px;
    height: 16px;
    accent-color: #667eea;
}

.checkbox-content {
    flex: 1;
}

.checkbox-title {
    display: block;
    font-weight: 500;
    color: #1a202c;
    margin-bottom: 0.25rem;
}

.checkbox-content small {
    color: #718096;
}

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid #e2e8f0;
}

.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s;
    text-decoration: none;
}

.btn-primary {
    background: #667eea;
    color: white;
}

.btn-primary:hover {
    background: #5a67d8;
    transform: translateY(-1px);
}

.btn-secondary {
    background: #e2e8f0;
    color: #718096;
}

.btn-secondary:hover {
    background: #cbd5e0;
}

.btn-success {
    background: #48bb78;
    color: white;
}

.btn-success:hover {
    background: #38a169;
}

.sidebar-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.sidebar-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1a202c;
    margin: 0 0 1rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sidebar-title i {
    color: #667eea;
}

.quick-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.quick-action-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: #f7fafc;
    border-radius: 8px;
    text-decoration: none;
    color: #4a5568;
    transition: all 0.2s;
}

.quick-action-btn:hover {
    background: #edf2f7;
    color: #667eea;
    transform: translateX(4px);
}

.recent-client-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid #e2e8f0;
}

.recent-client-item:last-child {
    border-bottom: none;
}

.client-name {
    font-weight: 600;
    color: #1a202c;
    font-size: 0.875rem;
}

.client-details {
    color: #718096;
    font-size: 0.75rem;
}

.client-type-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
}

.type-individual {
    background: #f0fff4;
    color: #22543d;
}

.type-corporate {
    background: #fef5e7;
    color: #744210;
}

.no-data {
    color: #718096;
    font-style: italic;
    text-align: center;
    margin: 1rem 0;
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

.modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1001;
}

.modal-content {
    background: white;
    border-radius: 12px;
    width: 500px;
    max-width: 90vw;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.modal-header {
    padding: 2rem 2rem 1rem;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    color: #1a202c;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.modal-header h3 i {
    color: #48bb78;
}

.modal-close {
    font-size: 1.5rem;
    cursor: pointer;
    color: #718096;
    line-height: 1;
}

.modal-close:hover {
    color: #1a202c;
}

.modal-body {
    padding: 1.5rem 2rem;
}

.modal-body p {
    color: #4a5568;
    margin-bottom: 1.5rem;
}

.invoice-details {
    background: #f7fafc;
    border-radius: 8px;
    padding: 1.5rem;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.detail-item:last-child {
    margin-bottom: 0;
}

.detail-label {
    font-weight: 500;
    color: #718096;
}

.detail-value {
    font-weight: 600;
    color: #1a202c;
}

.modal-actions {
    padding: 1rem 2rem 2rem;
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

@media (max-width: 768px) {
    .client-container {
        padding: 1rem;
    }

    .content-grid {
        grid-template-columns: 1fr;
    }

    .header-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .header-stats {
        width: 100%;
        justify-content: space-between;
    }

    .form-row, .client-type-options {
        grid-template-columns: 1fr;
    }

    .modal-content {
        width: 95vw;
    }

    .modal-actions {
        flex-direction: column;
    }
}
