/* LCDJ User Management Styles */

.lcdj-user-form {
    max-width: 500px;
    margin: 40px auto;
    padding: 30px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.lcdj-user-form h2 {
    font-size: 24px;
    margin-bottom: 30px;
    color: #2c3e50;
    text-align: center;
}

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

.lcdj-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
    font-size: 14px;
}

.lcdj-form-group input[type="text"],
.lcdj-form-group input[type="email"],
.lcdj-form-group input[type="password"],
.lcdj-form-group input[type="tel"],
.lcdj-form-group select,
.lcdj-form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.3s, box-shadow 0.3s;
    font-family: inherit;
}

.lcdj-form-group input[type="text"]:focus,
.lcdj-form-group input[type="email"]:focus,
.lcdj-form-group input[type="password"]:focus,
.lcdj-form-group input[type="tel"]:focus,
.lcdj-form-group select:focus,
.lcdj-form-group textarea:focus {
    outline: none;
    border-color: #2c3e50;
    box-shadow: 0 0 0 3px rgba(44, 62, 80, 0.1);
}

.lcdj-form-group.error input,
.lcdj-form-group.error select,
.lcdj-form-group.error textarea {
    border-color: #e74c3c;
    background: #fadbd8;
}

.lcdj-form-group .error-message {
    color: #e74c3c;
    font-size: 12px;
    margin-top: 5px;
    display: none;
}

.lcdj-form-group.error .error-message {
    display: block;
}

/* Password strength meter */
.password-strength {
    margin-top: 8px;
    padding: 8px;
    background: #ecf0f1;
    border-radius: 3px;
    font-size: 12px;
}

.password-strength-bar {
    width: 100%;
    height: 6px;
    background: #ecf0f1;
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 5px;
}

.password-strength-bar .bar {
    height: 100%;
    width: 0%;
    transition: width 0.3s, background-color 0.3s;
    background: #e74c3c;
}

.password-strength-bar .bar.fair {
    background: #f39c12;
}

.password-strength-bar .bar.good {
    background: #27ae60;
}

.password-strength-bar .bar.strong {
    background: #16a085;
}

/* Checkboxes group */
.lcdj-checkboxes {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.lcdj-checkbox {
    display: flex;
    align-items: center;
}

.lcdj-checkbox input[type="checkbox"] {
    margin-right: 8px;
    cursor: pointer;
}

.lcdj-checkbox label {
    margin: 0;
    cursor: pointer;
    font-weight: 400;
}

/* Buttons */
.lcdj-btn {
    display: inline-block;
    padding: 12px 24px;
    background: #959387;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
    width: 100%;
    text-align: center;
}

.lcdj-btn:hover {
    background: #605D53;
    transform: translateY(-2px);
}

.lcdj-btn:active {
    transform: translateY(0);
}

.lcdj-btn.loading {
    opacity: 0.7;
    pointer-events: none;
}

.lcdj-btn.loading::after {
    content: '';
    display: inline-block;
    width: 12px;
    height: 12px;
    margin-left: 8px;
    border: 2px solid #fff;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

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

/* Messages */
.lcdj-message {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 4px;
    font-size: 14px;
    display: none;
}

.lcdj-message.show {
    display: block;
}

.lcdj-message.success {
    background: #d5f4e6;
    color: #27ae60;
    border-left: 4px solid #27ae60;
}

.lcdj-message.error {
    background: #fadbd8;
    color: #e74c3c;
    border-left: 4px solid #e74c3c;
}

.lcdj-message.info {
    background: #d6eaf8;
    color: #2980b9;
    border-left: 4px solid #2980b9;
}

/* Links */
.lcdj-form-footer {
    margin-top: 20px;
    text-align: center;
    font-size: 13px;
}

.lcdj-form-footer a {
    color: #2c3e50;
    text-decoration: none;
    font-weight: 600;
}

.lcdj-form-footer a:hover {
    text-decoration: underline;
}

/* Dashboard */
.lcdj-user-dashboard {
    max-width: 850px;
    margin: 0 auto;
    padding: 20px 30px;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 12px;
    border-bottom: 2px solid #ecf0f1;
}

.dashboard-header h2 {
    margin: 0;
    font-size: 28px;
    color: #2c3e50;
}

.lcdj-btn-logout {
    padding: 10px 20px;
    background: #e74c3c;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.3s;
}

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

.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 15px;
}

.dashboard-section {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.dashboard-section h3 {
    margin: 0 0 15px 0;
    color: #2c3e50;
    font-size: 18px;
    border-bottom: 2px solid #ecf0f1;
    padding-bottom: 10px;
}

.dashboard-section p {
    margin: 10px 0;
    font-size: 14px;
    color: #555;
}

.dashboard-section .lcdj-btn {
    margin-top: 15px;
    width: 100%;
}

.favorites-section-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 15px;
}

.favorites-left {
    display: flex;
    flex-direction: column;
}

.favorites-left .lcdj-btn {
    width: 50%;
    margin-top: auto;
}

.favorites-right {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.favorites-item {
    display: flex;
    gap: 10px;
    padding: 6px;
    border-radius: 6px;
    text-decoration: none;
    color: inherit;
    transition: background 0.3s ease;
    cursor: pointer;
    align-items: flex-start;
}

.favorites-item:hover {
    background: #f5f5f5;
}

.favorites-item-img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
    margin-top: 2px;
}

.favorites-item-img-placeholder {
    width: 60px;
    height: 60px;
    background: #e9ecef;
    border-radius: 4px;
    flex-shrink: 0;
    margin-top: 2px;
}

.favorites-item-info {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    flex: 1;
}

.favorites-item-title {
    margin: 0;
    font-size: 12px;
    font-weight: 600;
    color: #2c3e50;
    line-height: 1;
}

.favorites-item-location {
    margin: -4px 0 0 0;
    font-size: 11px;
    color: #999;
    line-height: 1;
}

.alerts-section-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 15px;
}

.alerts-left {
    display: flex;
    flex-direction: column;
}

.alerts-left .lcdj-btn {
    width: 50%;
    margin-top: auto;
}

.alerts-right {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.alert-item {
    padding: 8px;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    background: #f8f9fa;
}

.alert-item-name {
    margin: 0;
    font-size: 12px;
    font-weight: 600;
    color: #2c3e50;
    line-height: 1;
}

.alert-item-details {
    margin: 3px 0 0 0;
    font-size: 11px;
    color: #666;
    line-height: 1.3;
    word-break: break-word;
}

.alert-item-price {
    margin: 3px 0 0 0;
    font-size: 11px;
    color: #2c3e50;
    font-weight: 600;
    line-height: 1;
}

/* Profile section */
.profile-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.profile-header h3 {
    margin: 0 !important;
    border: none !important;
    padding: 0 !important;
}

.lcdj-btn-small {
    padding: 8px 16px;
    background: #959387;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
    width: auto;
}

.lcdj-btn-small:hover {
    background: #605D53;
}

.lcdj-btn-secondary {
    display: inline-block;
    padding: 12px 24px;
    background: #95a5a6;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
    width: 100%;
    margin-top: 10px;
}

.lcdj-btn-secondary:hover {
    background: #7f8c8d;
    transform: translateY(-2px);
}

.profile-form-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.profile-form-actions .lcdj-btn,
.profile-form-actions .lcdj-btn-secondary {
    flex: 1;
    margin: 0;
    display: block;
    background: #959387 !important;
}

.profile-form-actions .lcdj-btn:hover,
.profile-form-actions .lcdj-btn-secondary:hover {
    background: #605D53 !important;
}

#profile-display p {
    margin: 8px 0;
}

/* Dashboard Profile Section */
.dashboard-profile h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
    color: #333;
}

.profile-description {
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
    line-height: 1.6;
}

.profile-status-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 6px;
}

.profile-status-icon {
    font-size: 32px;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e8eae6;
    border-radius: 50%;
}

.profile-status-content {
    flex: 1;
}

.profile-status-label {
    font-size: 11px;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0 0 4px 0;
    font-weight: 600;
}

.profile-status-value {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin: 0;
}

/* Dashboard Favorites Section */
.dashboard-favorites h3,
.dashboard-alerts h3 {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
    color: #333;
}

.dashboard-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.favorites-count,
.alerts-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 28px;
    padding: 0 8px;
    background: #959387;
    color: #fff;
    border-radius: 14px;
    font-size: 13px;
    font-weight: 600;
}

.favorites-list,
.alerts-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.favorite-item-new {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.favorite-item-new:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.favorite-item-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
}

.favorite-item-image-placeholder {
    width: 80px;
    height: 80px;
    background: #e9ecef;
    border-radius: 4px;
    flex-shrink: 0;
}

.favorite-item-details {
    flex: 1;
    min-width: 0;
}

.favorite-item-localidad {
    font-size: 12px;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0 0 4px 0;
    font-weight: 600;
}

.favorite-item-title {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin: 0 0 6px 0;
    line-height: 1.3;
}

.favorite-item-price {
    font-size: 13px;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.favorite-item-remove {
    background: none;
    border: none;
    font-size: 24px;
    color: #999;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s ease;
}

.favorite-item-remove:hover {
    color: #333;
}

/* Dashboard Alerts Section */
.alert-item-new {
    padding: 12px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.alert-item-new:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.alert-item-content {
    flex: 1;
}

.alert-item-name {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin: 0 0 4px 0;
}

.alert-item-details {
    font-size: 12px;
    color: #666;
    margin: 0;
    line-height: 1.4;
}

.empty-message {
    font-size: 14px;
    color: #999;
    text-align: center;
    padding: 20px;
    margin: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .lcdj-user-form {
        margin: 20px 15px;
        padding: 20px;
    }

    .lcdj-checkboxes {
        flex-direction: column;
    }

    .dashboard-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .dashboard-header h2 {
        font-size: 24px;
    }

    .lcdj-user-dashboard {
        margin: 20px 15px;
        padding: 15px;
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .profile-form-actions {
        flex-direction: column;
    }

    .favorites-section-content {
        grid-template-columns: 1fr;
    }

    .favorites-left .lcdj-btn {
        width: 100%;
    }

    .alerts-section-content {
        grid-template-columns: 1fr;
    }

    .alerts-left .lcdj-btn {
        width: 100%;
    }

    .favorites-left .lcdj-btn,
    .alerts-left .lcdj-btn {
        width: 100%;
    }
}
