/* Liquidity Partners Portal Styles - assets/portal.css */

/* Login Form Styles */
.lp-login-form {
    max-width: 400px;
    margin: 0 auto;
    padding: 30px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border: 1px solid #e1e1e1;
}

.lp-form-group {
    margin-bottom: 20px;
}

.lp-form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #333;
}

.lp-form-group input[type="text"],
.lp-form-group input[type="email"],
.lp-form-group input[type="password"],
.lp-form-group input[type="number"],
.lp-form-group input[type="file"],
.lp-form-group select,
.lp-form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #e1e1e1;
    border-radius: 5px;
    font-size: 16px;
    transition: border-color 0.3s;
    box-sizing: border-box;
}

.lp-form-group input:focus,
.lp-form-group select:focus,
.lp-form-group textarea:focus {
    outline: none;
    border-color: #007cba;
}

.lp-form-group input[type="checkbox"] {
    width: auto;
    margin-right: 8px;
}

/* Button Styles */
.lp-login-btn,
.lp-btn {
    background: #007cba;
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: background 0.3s;
    display: inline-block;
    text-decoration: none;
    text-align: center;
}

.lp-login-btn:hover,
.lp-btn:hover {
    background: #005a87;
    color: white;
    text-decoration: none;
}

.lp-btn-primary {
    background: #007cba;
}

.lp-btn-secondary {
    background: #666;
}

.lp-btn-small {
    padding: 6px 12px;
    font-size: 14px;
}

.lp-login-links {
    text-align: center;
    margin-top: 15px;
}

.lp-login-links a {
    color: #007cba;
    text-decoration: none;
}

/* Dashboard Styles */
.lp-client-dashboard,
.lp-legal-dashboard {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.lp-dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e1e1e1;
}

.lp-dashboard-header h2 {
    margin: 0;
    color: #333;
}

.lp-logout-btn {
    background: #dc3545;
    color: white;
    padding: 8px 16px;
    text-decoration: none;
    border-radius: 5px;
    font-size: 14px;
}

.lp-logout-btn:hover {
    background: #c82333;
    color: white;
}

/* Dashboard Stats */
.lp-dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.lp-stat-card {
    background: linear-gradient(135deg, #007cba, #005a87);
    color: white;
    padding: 25px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.lp-stat-card h3 {
    margin: 0 0 10px 0;
    font-size: 16px;
    opacity: 0.9;
}

.lp-stat-number {
    font-size: 2.5em;
    font-weight: bold;
    margin: 0;
}

/* Cases Section */
.lp-cases-section {
    margin-bottom: 30px;
}

.lp-cases-section h3 {
    color: #333;
    margin-bottom: 20px;
    font-size: 24px;
}

.lp-cases-list {
    display: grid;
    gap: 20px;
}

.lp-case-card {
    background: white;
    border: 1px solid #e1e1e1;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: box-shadow 0.3s;
}

.lp-case-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.lp-case-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.lp-case-header h4 {
    margin: 0;
    color: #333;
}

.lp-case-status {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.status-active {
    background: #d4edda;
    color: #155724;
}

.status-pending {
    background: #fff3cd;
    color: #856404;
}

.status-completed {
    background: #d1ecf1;
    color: #0c5460;
}

.lp-case-details {
    margin-bottom: 15px;
}

.lp-case-details p {
    margin: 8px 0;
    color: #666;
}

/* Milestones */
.lp-milestones {
    display: grid;
    gap: 10px;
}

.lp-milestone {
    padding: 15px;
    border-left: 4px solid #ccc;
    background: #f8f9fa;
    border-radius: 0 5px 5px 0;
}

.lp-milestone h5 {
    margin: 0 0 8px 0;
    color: #333;
}

.lp-milestone p {
    margin: 0 0 10px 0;
    color: #666;
    font-size: 14px;
}

.milestone-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.milestone-meta .amount {
    font-weight: bold;
    color: #007cba;
}

.milestone-meta .status {
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 12px;
    background: #e9ecef;
    color: #495057;
}

.milestone-pending {
    border-left-color: #ffc107;
}

.milestone-completed {
    border-left-color: #28a745;
}

.milestone-overdue {
    border-left-color: #dc3545;
}

/* Quick Actions */
.lp-quick-actions {
    margin-bottom: 30px;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

/* Modal Styles */
.lp-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.lp-modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 30px;
    border-radius: 10px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
}

.lp-close {
    position: absolute;
    right: 15px;
    top: 15px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    color: #999;
}

.lp-close:hover {
    color: #333;
}

/* Table Styles */
.lp-referrals-table {
    overflow-x: auto;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.lp-referrals-table table {
    width: 100%;
    border-collapse: collapse;
}

.lp-referrals-table th,
.lp-referrals-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #e1e1e1;
}

.lp-referrals-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #333;
}

.lp-referrals-table tr:hover {
    background: #f8f9fa;
}

/* Status Indicators */
.lp-status {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.status-submitted {
    background: #fff3cd;
    color: #856404;
}

.status-under_review {
    background: #d1ecf1;
    color: #0c5460;
}

.status-approved {
    background: #d4edda;
    color: #155724;
}

.status-rejected {
    background: #f8d7da;
    color: #721c24;
}

/* Message Styles */
#lp-login-message {
    margin-top: 15px;
    padding: 10px;
    border-radius: 5px;
    display: none;
}

.lp-message-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.lp-message-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Responsive Design */
@media (max-width: 768px) {
    .lp-dashboard-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .lp-dashboard-stats {
        grid-template-columns: 1fr;
    }
    
    .lp-quick-actions {
        flex-direction: column;
    }
    
    .lp-referrals-table {
        font-size: 14px;
    }
    
    .lp-modal-content {
        margin: 10% auto;
        width: 95%;
        padding: 20px;
    }
    
    .lp-case-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}

/* Loading States */
.lp-loading {
    opacity: 0.6;
    pointer-events: none;
}

.lp-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #007cba;
    border-radius: 50%;
    animation: lp-spin 1s linear infinite;
}

@keyframes lp-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}