/**
 * Public-facing styles for JMS Plugin
 *
 * @package    JMS_Plugin
 * @subpackage JMS_Plugin/public/css
 * @since      1.0.0
 */

/* General Plugin Styles */
.jms-plugin-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Form Elements */
.jms-form-group {
    margin-bottom: 20px;
}

.jms-form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #333;
}

.jms-form-control {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    line-height: 1.4;
    background-color: #fff;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.jms-form-control:focus {
    border-color: #007cba;
    outline: 0;
    box-shadow: 0 0 0 2px rgba(0, 124, 186, 0.25);
}

/* Buttons */
.jms-btn {
    display: inline-block;
    padding: 8px 16px;
    margin-bottom: 0;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.42857143;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
    cursor: pointer;
    border: 1px solid transparent;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.15s ease-in-out;
}

.jms-btn-primary {
    color: #fff;
    background-color: #007cba;
    border-color: #005a87;
}

.jms-btn-primary:hover {
    color: #fff;
    background-color: #005a87;
    border-color: #004a73;
    text-decoration: none;
}

.jms-btn-secondary {
    color: #333;
    background-color: #fff;
    border-color: #ccc;
}

.jms-btn-secondary:hover {
    color: #333;
    background-color: #f5f5f5;
    border-color: #adadad;
    text-decoration: none;
}

/* Tables */
.jms-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.jms-table th,
.jms-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.jms-table th {
    background-color: #f8f9fa;
    font-weight: 600;
    color: #333;
}

.jms-table tbody tr:hover {
    background-color: #f5f5f5;
}

/* Status Badges */
.jms-status-badge {
    display: inline-block;
    padding: 4px 8px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
    color: #fff;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: 4px;
}

.jms-status-active {
    background-color: #28a745;
}

.jms-status-pending {
    background-color: #ffc107;
    color: #212529;
}

.jms-status-expired {
    background-color: #6c757d;
}

.jms-status-terminated {
    background-color: #dc3545;
}

/* Alerts */
.jms-alert {
    padding: 12px 16px;
    margin-bottom: 20px;
    border: 1px solid transparent;
    border-radius: 4px;
}

.jms-alert-success {
    color: #155724;
    background-color: #d4edda;
    border-color: #c3e6cb;
}

.jms-alert-error {
    color: #721c24;
    background-color: #f8d7da;
    border-color: #f5c6cb;
}

.jms-alert-warning {
    color: #856404;
    background-color: #fff3cd;
    border-color: #ffeaa7;
}

.jms-alert-info {
    color: #0c5460;
    background-color: #d1ecf1;
    border-color: #bee5eb;
}

/* Loading States */
.jms-loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(0, 124, 186, 0.3);
    border-radius: 50%;
    border-top-color: #007cba;
    animation: jms-spin 1s ease-in-out infinite;
}

@keyframes jms-spin {
    to { transform: rotate(360deg); }
}

/* Responsive */
@media (max-width: 768px) {
    .jms-plugin-container {
        padding: 10px;
    }
    
    .jms-table {
        font-size: 14px;
    }
    
    .jms-table th,
    .jms-table td {
        padding: 8px;
    }
}

/* Property Details Specific Styles */
.property-details {
    background: #f9f9f9;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    padding: 15px;
    margin-top: 15px;
}

.property-details h4 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #333;
    font-size: 16px;
    font-weight: 600;
}

.property-info .info-row {
    display: flex;
    margin-bottom: 8px;
    align-items: center;
}

.property-info .info-row .label {
    font-weight: 600;
    color: #555;
    min-width: 120px;
    margin-right: 10px;
}

.property-info .info-row .value {
    color: #333;
}

/* Hide elements by default for better UX */
.property-details[style*="display: none"] {
    display: none !important;
}