/**
 * Blue Apulia Multi-User System - Styles
 * File: inc/users/assets/users.css
 */

/* Login Page Styles */
.ba-user-login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 20px;
}

.ba-login-form-wrapper {
    background: white;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    padding: 40px;
    width: 100%;
    max-width: 400px;
}

.ba-login-header {
    text-align: center;
    margin-bottom: 30px;
}

.ba-login-header h1 {
    color: #2c3e50;
    margin: 0 0 10px 0;
    font-size: 28px;
}

.ba-login-header p {
    color: #7f8c8d;
    margin: 0;
}

.ba-login-error {
    background: #ffebee;
    color: #c62828;
    padding: 12px;
    border-radius: 6px;
    margin-bottom: 20px;
    border-left: 4px solid #c62828;
}

.ba-login-success {
    background: #e8f5e8;
    color: #2e7d32;
    padding: 12px;
    border-radius: 6px;
    margin-bottom: 20px;
    border-left: 4px solid #2e7d32;
}

.ba-form-group {
    margin-bottom: 20px;
}

.ba-form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    color: #2c3e50;
}

.ba-form-group input {
    width: 100%;
    padding: 12px;
    border: 2px solid #e1e8ed;
    border-radius: 6px;
    font-size: 16px;
    transition: border-color 0.3s;
    box-sizing: border-box;
}

.ba-form-group input:focus {
    outline: none;
    border-color: #667eea;
}

.ba-remember-group {
    display: flex;
    align-items: center;
}

.ba-checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 14px;
}

.ba-checkbox-label input {
    width: auto;
    margin-right: 8px;
}

.ba-login-btn {
    width: 100%;
    background: #667eea;
    color: white;
    border: none;
    padding: 14px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s;
}

.ba-login-btn:hover {
    background: #5a6fd8;
}

.ba-login-links {
    text-align: center;
    margin-top: 20px;
}

.ba-login-links a {
    display: block;
    margin: 8px 0;
    color: #667eea;
    text-decoration: none;
    font-size: 14px;
}

.ba-login-links a:hover {
    text-decoration: underline;
}

.ba-login-info {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e1e8ed;
}

.ba-login-info h3 {
    color: #2c3e50;
    margin: 0 0 15px 0;
    font-size: 16px;
}

.ba-login-info ul {
    margin: 0;
    padding-left: 20px;
    color: #7f8c8d;
    font-size: 14px;
}

.ba-login-info li {
    margin-bottom: 8px;
}

/* Dashboard Styles */
.ba-dashboard-container {
    min-height: 100vh;
    background: #f8f9fa;
    padding: 20px;
}

.ba-dashboard-header {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 30px;
    margin-bottom: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ba-dashboard-title h1 {
    margin: 0 0 10px 0;
    color: #2c3e50;
    font-size: 32px;
}

.ba-dashboard-title p {
    margin: 0;
    color: #7f8c8d;
    font-size: 16px;
}

.ba-dashboard-user-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.ba-user-avatar img {
    border-radius: 50%;
}

.ba-user-details {
    display: flex;
    flex-direction: column;
}

.ba-user-details strong {
    color: #2c3e50;
    font-size: 16px;
}

.ba-user-role {
    color: #7f8c8d;
    font-size: 14px;
}

.ba-logout-btn {
    background: #e74c3c;
    color: white;
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 14px;
    transition: background 0.3s;
}

.ba-logout-btn:hover {
    background: #c0392b;
}

.ba-dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.ba-stat-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 25px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.ba-stat-icon {
    font-size: 32px;
}

.ba-stat-content h3 {
    margin: 0 0 5px 0;
    color: #2c3e50;
    font-size: 24px;
}

.ba-stat-content p {
    margin: 0;
    color: #7f8c8d;
    font-size: 14px;
}

.ba-dashboard-actions {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.ba-action-btn {
    background: #3498db;
    color: white;
    padding: 12px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    transition: background 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.ba-action-btn:hover {
    background: #2980b9;
}

.ba-action-btn.ba-primary {
    background: #e74c3c;
}

.ba-action-btn.ba-primary:hover {
    background: #c0392b;
}

.ba-dashboard-properties {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 30px;
    margin-bottom: 30px;
}

.ba-dashboard-properties h2 {
    margin: 0 0 25px 0;
    color: #2c3e50;
}

.ba-empty-state {
    text-align: center;
    padding: 40px 20px;
}

.ba-empty-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.ba-empty-state h3 {
    color: #2c3e50;
    margin: 0 0 10px 0;
}

.ba-empty-state p {
    color: #7f8c8d;
    margin: 0 0 25px 0;
}

.ba-properties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
}

.ba-property-card {
    border: 1px solid #e1e8ed;
    border-radius: 8px;
    overflow: hidden;
    transition: box-shadow 0.3s;
}

.ba-property-card:hover {
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.ba-property-image {
    height: 200px;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.ba-property-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ba-no-image {
    font-size: 48px;
    color: #bdc3c7;
}

.ba-property-content {
    padding: 20px;
}

.ba-property-content h3 {
    margin: 0 0 10px 0;
    color: #2c3e50;
    font-size: 18px;
}

.ba-property-status {
    margin: 0 0 15px 0;
}

.ba-status-badge {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.ba-status-publish {
    background: #d4edda;
    color: #155724;
}

.ba-status-draft {
    background: #fff3cd;
    color: #856404;
}

.ba-status-pending {
    background: #cce5ff;
    color: #004085;
}

.ba-property-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 14px;
    color: #7f8c8d;
}

.ba-property-actions {
    display: flex;
    gap: 10px;
}

.ba-edit-btn, .ba-view-btn {
    padding: 6px 12px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 12px;
    font-weight: 500;
    transition: background 0.3s;
}

.ba-edit-btn {
    background: #3498db;
    color: white;
}

.ba-edit-btn:hover {
    background: #2980b9;
}

.ba-view-btn {
    background: #95a5a6;
    color: white;
}

.ba-view-btn:hover {
    background: #7f8c8d;
}

.ba-admin-tools {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 30px;
}

.ba-admin-tools h2 {
    margin: 0 0 20px 0;
    color: #2c3e50;
}

.ba-admin-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

/* Property Owner Info */
.ba-property-owner {
    font-size: 0.9em;
    color: #666;
    margin: 5px 0;
}

.ba-owner-role {
    background: #e3f2fd;
    color: #1976d2;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.8em;
    margin-left: 5px;
}

/* Responsive */
@media (max-width: 768px) {
    .ba-dashboard-header {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .ba-dashboard-stats {
        grid-template-columns: 1fr;
    }
    
    .ba-dashboard-actions {
        flex-direction: column;
    }
    
    .ba-properties-grid {
        grid-template-columns: 1fr;
    }
    
    .ba-login-form-wrapper {
        padding: 20px;
    }
}
