/* Public styles for Mask PAN Go Pro */

/* Form container */
.mpgp-form-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.mpgp-form-container h2 {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 24px;
    color: #333;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

/* Forms */
.mpgp-form {
    margin-bottom: 20px;
}

.mpgp-form-row {
    margin-bottom: 20px;
}

.mpgp-form-row label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.mpgp-form-row .required {
    color: #e32;
    margin-left: 5px;
}

.mpgp-form-row input[type="text"],
.mpgp-form-row input[type="email"],
.mpgp-form-row input[type="number"],
.mpgp-form-row input[type="password"],
.mpgp-form-row select,
.mpgp-form-row textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.mpgp-form-row input:focus,
.mpgp-form-row select:focus,
.mpgp-form-row textarea:focus {
    border-color: #3498db;
    outline: none;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

.mpgp-form-row .description {
    margin-top: 5px;
    color: #666;
    font-size: 14px;
}

/* Buttons */
.mpgp-button {
    background-color: #3498db;
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 12px 20px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
}

.mpgp-button:hover {
    background-color: #2980b9;
}

.mpgp-button-secondary {
    background-color: #e0e0e0;
    color: #333;
}

.mpgp-button-secondary:hover {
    background-color: #ccc;
}

/* Links */
.mpgp-link {
    color: #3498db;
    text-decoration: none;
    transition: color 0.3s;
}

.mpgp-link:hover {
    color: #2980b9;
    text-decoration: underline;
}

/* Result container */
.mpgp-result {
    margin-top: 30px;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
    border: 1px solid #eee;
}

.mpgp-result h3 {
    margin-top: 0;
    font-size: 20px;
    color: #333;
    margin-bottom: 15px;
}

.mpgp-result-container {
    display: flex;
    align-items: flex-start;
}

.mpgp-result-icon {
    width: 50px;
    height: 50px;
    margin-right: 20px;
    color: #3498db;
}

.mpgp-result-icon svg {
    width: 100%;
    height: 100%;
}

.mpgp-result-content {
    flex: 1;
}

.mpgp-result-row {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.mpgp-result-label {
    font-weight: 600;
    width: 100px;
    color: #555;
}

.mpgp-result-value {
    flex: 1;
}

/* Status indicators */
.mpgp-status {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
}

.mpgp-status-success {
    background-color: #e7f9ed;
    color: #218838;
}

.mpgp-status-error {
    background-color: #fbecec;
    color: #c82333;
}

.mpgp-status-pending {
    background-color: #f0f0f0;
    color: #666;
}

.mpgp-status-approved {
    background-color: #e7f9ed;
    color: #218838;
}

.mpgp-status-rejected {
    background-color: #fbecec;
    color: #c82333;
}

/* Spinner */
.mpgp-spinner {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 20px 0;
}

.mpgp-spinner-icon {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    animation: mpgp-spin 1s linear infinite;
    margin-bottom: 10px;
}

.mpgp-spinner-text {
    color: #666;
    font-size: 16px;
}

@keyframes mpgp-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Error message */
.mpgp-error {
    padding: 15px;
    background-color: #fbecec;
    color: #c82333;
    border-radius: 4px;
    margin: 20px 0;
}

/* Success message */
.mpgp-message {
    padding: 15px;
    border-radius: 4px;
    margin: 20px 0;
}

.mpgp-message-success {
    background-color: #e7f9ed;
    color: #218838;
}

.mpgp-message-error {
    background-color: #fbecec;
    color: #c82333;
}

/* User container */
.mpgp-user-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.mpgp-user-container h2 {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 24px;
    color: #333;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

/* Agent stats */
.mpgp-agent-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 25px;
}

.mpgp-stat-item {
    background-color: #f9f9f9;
    border-radius: 6px;
    padding: 15px;
    flex: 1;
    min-width: 140px;
    border: 1px solid #eee;
}

.mpgp-stat-label {
    color: #666;
    font-size: 14px;
    margin-bottom: 5px;
}

.mpgp-stat-value {
    font-size: 24px;
    font-weight: 600;
    color: #333;
}

/* Agent actions */
.mpgp-agent-actions {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
}

/* Transactions table */
.mpgp-transactions h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: #333;
}

.mpgp-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.mpgp-table th {
    background-color: #f5f5f5;
    color: #333;
    font-weight: 600;
    text-align: left;
    padding: 12px;
    border-bottom: 2px solid #eee;
}

.mpgp-table td {
    padding: 12px;
    border-bottom: 1px solid #eee;
}

.mpgp-table tr:hover {
    background-color: #f9f9f9;
}

/* Pagination */
.mpgp-pagination {
    margin-top: 20px;
    text-align: center;
}

.mpgp-pagination .page-numbers {
    display: inline-block;
    padding: 8px 12px;
    margin: 0 5px;
    border-radius: 4px;
    background-color: #f5f5f5;
    color: #333;
    text-decoration: none;
    transition: background-color 0.3s;
}

.mpgp-pagination .page-numbers.current {
    background-color: #3498db;
    color: #fff;
}

.mpgp-pagination .page-numbers:hover:not(.current) {
    background-color: #e0e0e0;
}

/* Agent profile */
.mpgp-agent-profile {
    background-color: #f9f9f9;
    border-radius: 6px;
    padding: 20px;
    margin-bottom: 25px;
    border: 1px solid #eee;
}

.mpgp-agent-profile h3 {
    margin-top: 0;
    font-size: 20px;
    color: #333;
    margin-bottom: 15px;
}

/* Agent links */
.mpgp-agent-links {
    margin-top: 25px;
    display: flex;
    gap: 10px;
}

.mpgp-login-link {
    margin-top: 20px;
    text-align: center;
}

/* Password strength indicator */
.password-strength {
    margin-top: 5px;
    padding: 3px 10px;
    border-radius: 4px;
    display: inline-block;
    font-size: 14px;
}

.password-strength.weak {
    background-color: #fbecec;
    color: #c82333;
}

.password-strength.medium {
    background-color: #fff4e1;
    color: #f39c12;
}

.password-strength.strong {
    background-color: #e7f9ed;
    color: #27ae60;
}

.password-strength.very-strong {
    background-color: #d5f5e3;
    color: #16a085;
}

.password-match {
    margin-top: 5px;
    padding: 3px 10px;
    border-radius: 4px;
    display: inline-block;
    font-size: 14px;
}

.password-match.match {
    background-color: #e7f9ed;
    color: #27ae60;
}

.password-match.no-match {
    background-color: #fbecec;
    color: #c82333;
}

/* Responsive */
@media screen and (max-width: 768px) {
    .mpgp-result-container {
        flex-direction: column;
    }
    
    .mpgp-result-icon {
        margin-right: 0;
        margin-bottom: 15px;
    }
    
    .mpgp-agent-stats {
        flex-direction: column;
    }
    
    .mpgp-stat-item {
        min-width: 100%;
    }
    
    .mpgp-agent-actions {
        flex-direction: column;
    }
    
    .mpgp-result-row {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .mpgp-result-label {
        width: 100%;
        margin-bottom: 5px;
    }
}