/* Dashboard Layout */
.loan-officer-dashboard {
    padding: 20px;
    max-width: 1200px !important;
    margin: 0 auto;
}

/* Dashboard Header */
.dashboard-header {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-bottom: 30px;
    padding: 30px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.profile-image {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid #2271b1;
}

.profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-placeholder {
    width: 100%;
    height: 100%;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    color: #666;
}

.profile-info h1 {
    margin: 0 0 5px;
    font-size: 28px;
    color: #1d2327;
}

.profile-title {
    margin: 0 0 15px;
    color: #666;
    font-size: 16px;
}

.profile-meta {
    display: flex;
    gap: 20px;
    color: #666;
}

.profile-meta span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.profile-meta i {
    color: #2271b1;
}

/* Dashboard Grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
}

/* Dashboard Cards */
.dashboard-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 25px;
    margin-bottom: 20px;
}

.dashboard-card h2 {
    margin: 0 0 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
    color: #1d2327;
    font-size: 20px;
}

/* Profile Form */
.profile-form {
    margin-top: 20px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 37px;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #1d2327;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    background: #f8f9fa;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #2271b1;
    box-shadow: 0 0 0 1px #2271b1;
    outline: none;
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

/* Profile Image Upload */
.image-preview {
    margin-top: 10px;
    max-width: 200px;
}

.image-preview img {
    width: 100%;
    height: auto;
    border-radius: 6px;
}

/* Status Info */
.status-info p {
    margin: 10px 0;
    color: #666;
}

.status-info strong {
    color: #1d2327;
}

/* Quick Links */
.quick-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.quick-links li {
    margin-bottom: 10px;
}

.quick-links a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    color: #2271b1;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.quick-links a:hover {
    background: #f0f0f0;
    color: #135e96;
}

.quick-links i {
    width: 20px;
    text-align: center;
}

/* Form Actions */
.form-actions {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
}

.button-primary {
    background: #2271b1;
    border: none;
    color: #fff;
    padding: 12px 24px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.button-primary:hover {
    background: #135e96;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(34, 113, 177, 0.2);
}

/* Status Section */
.status-section {
    grid-column: 2;
    grid-row: 1;
}

.status-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.status-badge.pending {
    background: #f0f0f0;
    color: #666;
}

.status-badge.approved {
    background: #d4edda;
    color: #155724;
}

.status-badge.rejected {
    background: #f8d7da;
    color: #721c24;
}

/* Stats Section */
.stats-section {
    grid-column: 2;
    grid-row: 2;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.stat-item {
    text-align: center;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 6px;
}

.stat-value {
    display: block;
    font-size: 24px;
    font-weight: 600;
    color: #2271b1;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 12px;
    color: #666;
}

/* Frontend Specific Styles */
.loan-officer-dashboard .notice {
    padding: 12px;
    margin: 20px 0;
    border-radius: 4px;
    border-left: 4px solid;
}

.loan-officer-dashboard .notice-error {
    background: #fff5f5;
    border-left-color: #e53e3e;
    color: #c53030;
}

.loan-officer-dashboard .notice-success {
    background: #f0fff4;
    border-left-color: #48bb78;
    color: #2f855a;
}

/* Error Messages */
.error-message {
    color: #e53e3e;
    font-size: 12px;
    margin-top: 5px;
    display: block;
}

.form-group input.error {
    border-color: #e53e3e;
}

/* Loading State */
.loading {
    opacity: 0.7;
    pointer-events: none;
}

.loading::after {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #2271b1;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 10px;
    vertical-align: middle;
}

.recent_profile_views_tabel {
    height: 710px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive Design */
@media screen and (max-width: 782px) {
    .recent_profile_views_tabel {
        height: 318px;
    }
    .dashboard-grid {
        grid-template-columns: 1fr;
        display: block !important;
    }

    .status-section,
    .stats-section {
        grid-column: 1;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-header {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }

    .profile-meta {
        justify-content: center;
    }

    .loan-officer-dashboard {
        padding: 10px;
    }

    .dashboard-card {
        padding: 20px;
    }
} 