/* ========================================
   LaloQuote PRO - Frontend Dashboard Styles
   ======================================== */

/* Login Form Styles */
.lqp-frontend-login-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 20px;
}

.lqp-login-card {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 420px;
    width: 100%;
    padding: 40px;
    animation: slideUp 0.5s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.lqp-login-header {
    text-align: center;
    margin-bottom: 32px;
}

.lqp-login-icon {
    font-size: 64px;
    width: 64px;
    height: 64px;
    color: #00BFFF;
    margin-bottom: 16px;
}

.lqp-login-header h2 {
    margin: 0 0 8px 0;
    font-size: 28px;
    font-weight: 700;
    color: #1d2327;
}

.lqp-login-header p {
    margin: 0;
    color: #646970;
    font-size: 15px;
}

.lqp-login-form {
    margin-bottom: 24px;
}

.lqp-form-group {
    margin-bottom: 20px;
}

.lqp-form-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    font-weight: 600;
    color: #1d2327;
    font-size: 14px;
}

.lqp-form-group label .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
    color: #00BFFF;
}

.lqp-form-group input[type="text"],
.lqp-form-group input[type="password"] {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e2e4e7;
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.lqp-form-group input:focus {
    outline: none;
    border-color: #00BFFF;
    box-shadow: 0 0 0 3px rgba(0, 191, 255, 0.1);
}

.lqp-remember-me label {
    font-weight: 500;
    cursor: pointer;
    user-select: none;
}

.lqp-remember-me input[type="checkbox"] {
    margin-right: 8px;
}

.lqp-login-messages {
    margin-bottom: 16px;
    padding: 12px;
    border-radius: 8px;
    font-size: 14px;
    display: none;
}

.lqp-login-messages.error {
    background-color: #fee;
    color: #c00;
    border: 1px solid #fcc;
    display: block;
}

.lqp-login-messages.success {
    background-color: #efe;
    color: #0a0;
    border: 1px solid #cfc;
    display: block;
}

.lqp-login-button {
    width: 100%;
    padding: 14px 24px;
    background: linear-gradient(135deg, #00BFFF 0%, #009acd 100%);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.lqp-login-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 191, 255, 0.3);
}

.lqp-login-button:active {
    transform: translateY(0);
}

.lqp-login-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.lqp-button-spinner .dashicons {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.lqp-login-footer {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #e2e4e7;
}

.lqp-login-footer a {
    color: #00BFFF;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.lqp-login-footer a:hover {
    color: #009acd;
    text-decoration: underline;
}

/* Frontend Dashboard Layout */
.lqp-frontend-wrapper {
    display: flex;
    min-height: 100vh;
    background-color: #f8f9fa;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    margin: 0;
    /* Reset margins if any */
}

/* Sidebar */
.lqp-frontend-sidebar {
    width: 260px;
    background-color: #1e293b;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    position: fixed;
    /* Fixed sidebar */
    left: 0;
    top: 0;
    /* Adjust if header is present, but usually full height */
    bottom: 0;
    z-index: 1000;
    transition: transform 0.3s ease;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
}

.lqp-sidebar-header {
    padding: 20px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    height: 64px;
    box-sizing: border-box;
}

.lqp-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 18px;
    font-weight: 700;
    color: #00BFFF;
}

.lqp-logo .dashicons {
    font-size: 28px;
    width: 28px;
    height: 28px;
}

.lqp-sidebar-nav {
    flex: 1;
    overflow-y: auto;
    padding: 20px 0;
}

.lqp-nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.lqp-nav-item {
    margin: 0;
    padding: 0;
}

.lqp-nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

.lqp-nav-link:hover,
.lqp-nav-link:focus {
    background-color: #334155;
    color: #ffffff;
    box-shadow: none;
}

.lqp-nav-item.active .lqp-nav-link {
    background-color: #334155;
    color: #ffffff;
    border-left: 3px solid #00BFFF;
}

.lqp-nav-link .dashicons {
    font-size: 20px;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.lqp-badge {
    background-color: #dc3545;
    color: #ffffff;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    margin-left: auto;
}

.lqp-nav-separator {
    padding: 20px 20px 8px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: rgba(255, 255, 255, 0.4);
}

.lqp-sidebar-footer {
    padding: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.lqp-user-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.lqp-user-avatar img {
    border-radius: 50%;
    width: 32px;
    height: 32px;
}

.lqp-user-details {
    display: flex;
    flex-direction: column;
    gap: 2px;
    overflow: hidden;
}

.lqp-user-name {
    font-size: 13px;
    font-weight: 600;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 120px;
}

.lqp-user-role {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.6);
}

.lqp-logout-button-sidebar {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.lqp-logout-button-sidebar:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: #dc3545;
}

/* Main Content */
.lqp-frontend-main {
    flex: 1;
    margin-left: 260px;
    /* Sidebar width */
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    width: calc(100% - 260px);
}

.lqp-frontend-header {
    background-color: #ffffff;
    border-bottom: 1px solid #e2e4e7;
    padding: 0 32px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

.lqp-frontend-header-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.lqp-mobile-menu-toggle {
    display: none;
    background: transparent;
    border: none;
    color: #1d2327;
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
}

.lqp-frontend-header h1 {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
    color: #1d2327;
}

.lqp-back-button {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: #f8f9fa;
    border: 1px solid #e2e4e7;
    border-radius: 6px;
    color: #1d2327;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.lqp-back-button:hover {
    background: #ffffff;
    border-color: #00BFFF;
    color: #00BFFF;
}

.lqp-frontend-content {
    flex: 1;
    padding: 32px;
}

/* Statistics */
.lqp-frontend-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
    margin-bottom: 32px;
}

.lqp-frontend-stat-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: 1px solid #e2e4e7;
}

.lqp-frontend-stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}

.lqp-frontend-stat-card .lqp-stat-icon-wrapper {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.lqp-frontend-stat-card .lqp-stat-icon-wrapper .dashicons {
    font-size: 28px;
    width: 28px;
    height: 28px;
}

.lqp-stat-primary .lqp-stat-icon-wrapper {
    background-color: rgba(0, 191, 255, 0.1);
    color: #00BFFF;
}

.lqp-stat-warning .lqp-stat-icon-wrapper {
    background-color: rgba(240, 184, 73, 0.1);
    color: #f0b849;
}

.lqp-stat-success .lqp-stat-icon-wrapper {
    background-color: rgba(70, 180, 80, 0.1);
    color: #46b450;
}

.lqp-stat-info .lqp-stat-icon-wrapper {
    background-color: rgba(23, 162, 184, 0.1);
    color: #17a2b8;
}

.lqp-stat-value {
    font-size: 32px;
    font-weight: 700;
    color: #1d2327;
    margin: 0 0 4px 0;
    line-height: 1;
}

.lqp-stat-label {
    font-size: 14px;
    color: #646970;
    margin: 0;
    font-weight: 500;
}

/* Sections */
.lqp-frontend-section {
    margin-bottom: 32px;
}

.lqp-frontend-section-title {
    font-size: 20px;
    font-weight: 700;
    color: #1d2327;
    margin: 0 0 20px 0;
    padding-bottom: 12px;
    border-bottom: 2px solid #e2e4e7;
}

/* Quick Actions */
.lqp-frontend-quick-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.lqp-frontend-action-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 24px;
    display: flex;
    gap: 16px;
    text-decoration: none;
    border: 1px solid #e2e4e7;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.lqp-frontend-action-card:hover {
    border-color: #00BFFF;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
    transform: translateY(-2px);
}

.lqp-frontend-action-card .lqp-action-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background-color: rgba(0, 191, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.lqp-frontend-action-card .lqp-action-icon .dashicons {
    font-size: 24px;
    width: 24px;
    height: 24px;
    color: #00BFFF;
}

.lqp-action-content h3 {
    font-size: 16px;
    font-weight: 600;
    color: #1d2327;
    margin: 0 0 6px 0;
}

.lqp-action-content p {
    font-size: 13px;
    color: #646970;
    margin: 0;
    line-height: 1.5;
}

/* Table */
.lqp-frontend-table-wrapper {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e4e7;
}

.lqp-frontend-table {
    width: 100%;
    border-collapse: collapse;
}

.lqp-frontend-table thead {
    background-color: #f8f9fa;
}

.lqp-frontend-table th {
    padding: 16px 20px;
    text-align: left;
    font-size: 13px;
    font-weight: 600;
    color: #646970;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid #e2e4e7;
}

.lqp-frontend-table td {
    padding: 16px 20px;
    font-size: 14px;
    color: #1d2327;
    border-bottom: 1px solid #e2e4e7;
}

.lqp-frontend-table tbody tr:last-child td {
    border-bottom: none;
}

.lqp-frontend-table tbody tr:hover {
    background-color: #f8f9fa;
}

.lqp-frontend-status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.lqp-frontend-status-badge.lqp-status-pendiente {
    background-color: rgba(240, 184, 73, 0.15);
    color: #b8860b;
}

.lqp-frontend-status-badge.lqp-status-resuelto {
    background-color: rgba(70, 180, 80, 0.15);
    color: #2d7a3d;
}

.lqp-frontend-btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    background-color: transparent;
    color: #646970;
    text-decoration: none;
    transition: all 0.3s ease;
}

.lqp-frontend-btn-icon:hover {
    background-color: #f8f9fa;
    color: #00BFFF;
}

.lqp-frontend-btn-icon .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
}

/* Empty State */
.lqp-frontend-empty-state {
    padding: 60px 20px;
    text-align: center;
    color: #646970;
}

.lqp-frontend-empty-state .dashicons {
    font-size: 64px;
    width: 64px;
    height: 64px;
    opacity: 0.3;
    margin-bottom: 16px;
}

.lqp-frontend-empty-state p {
    font-size: 16px;
    margin: 0;
}

/* Error Message */
.lqp-frontend-error {
    background: #fee;
    color: #c00;
    border: 1px solid #fcc;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    font-size: 16px;
    margin: 40px auto;
    max-width: 600px;
}

/* Responsive */
@media (max-width: 1024px) {
    .lqp-frontend-stats {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
}

@media (max-width: 768px) {
    .lqp-frontend-sidebar {
        transform: translateX(-100%);
    }

    .lqp-frontend-sidebar.mobile-open {
        transform: translateX(0);
    }

    .lqp-frontend-main {
        margin-left: 0;
        width: 100%;
    }

    .lqp-mobile-menu-toggle {
        display: block;
    }

    .lqp-frontend-content {
        padding: 20px;
    }

    .lqp-frontend-header {
        padding: 0 20px;
    }

    .lqp-frontend-header h1 {
        font-size: 20px;
    }

    .lqp-frontend-stats {
        grid-template-columns: 1fr;
    }

    .lqp-frontend-quick-actions {
        grid-template-columns: 1fr;
    }

    .lqp-frontend-table-wrapper {
        overflow-x: auto;
    }
}

/* Mobile Overlay */
.lqp-mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 24px;
    height: 24px;
    color: #00BFFF;
}

.lqp-action-content h3 {
    font-size: 16px;
    font-weight: 600;
    color: #1d2327;
    margin: 0 0 6px 0;
}

.lqp-action-content p {
    font-size: 13px;
    color: #646970;
    margin: 0;
    line-height: 1.5;
}

/* Table */
.lqp-frontend-table-wrapper {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e4e7;
}

.lqp-frontend-table {
    width: 100%;
    border-collapse: collapse;
}

.lqp-frontend-table thead {
    background-color: #f8f9fa;
}

.lqp-frontend-table th {
    padding: 16px 20px;
    text-align: left;
    font-size: 13px;
    font-weight: 600;
    color: #646970;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid #e2e4e7;
}

.lqp-frontend-table td {
    padding: 16px 20px;
    font-size: 14px;
    color: #1d2327;
    border-bottom: 1px solid #e2e4e7;
}

.lqp-frontend-table tbody tr:last-child td {
    border-bottom: none;
}

.lqp-frontend-table tbody tr:hover {
    background-color: #f8f9fa;
}

.lqp-frontend-status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.lqp-frontend-status-badge.lqp-status-pendiente {
    background-color: rgba(240, 184, 73, 0.15);
    color: #b8860b;
}

.lqp-frontend-status-badge.lqp-status-resuelto {
    background-color: rgba(70, 180, 80, 0.15);
    color: #2d7a3d;
}

.lqp-frontend-btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    background-color: transparent;
    color: #646970;
    text-decoration: none;
    transition: all 0.3s ease;
}

.lqp-frontend-btn-icon:hover {
    background-color: #f8f9fa;
    color: #00BFFF;
}

.lqp-frontend-btn-icon .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
}

/* Empty State */
.lqp-frontend-empty-state {
    padding: 60px 20px;
    text-align: center;
    color: #646970;
}

.lqp-frontend-empty-state .dashicons {
    font-size: 64px;
    width: 64px;
    height: 64px;
    opacity: 0.3;
    margin-bottom: 16px;
}

.lqp-frontend-empty-state p {
    font-size: 16px;
    margin: 0;
}

/* Error Message */
.lqp-frontend-error {
    background: #fee;
    color: #c00;
    border: 1px solid #fcc;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    font-size: 16px;
    margin: 40px auto;
    max-width: 600px;
}

/* Responsive */
@media (max-width: 1024px) {
    .lqp-frontend-stats {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
}

@media (max-width: 768px) {
    .lqp-frontend-sidebar {
        transform: translateX(-100%);
    }

    .lqp-frontend-sidebar.mobile-open {
        transform: translateX(0);
    }

    .lqp-frontend-main {
        margin-left: 0;
        width: 100%;
    }

    .lqp-mobile-menu-toggle {
        display: block;
    }

    .lqp-frontend-content {
        padding: 20px;
    }

    .lqp-frontend-header {
        padding: 0 20px;
    }

    .lqp-frontend-header h1 {
        font-size: 20px;
    }

    .lqp-frontend-stats {
        grid-template-columns: 1fr;
    }

    .lqp-frontend-quick-actions {
        grid-template-columns: 1fr;
    }

    .lqp-frontend-table-wrapper {
        overflow-x: auto;
    }
}

/* Mobile Overlay */
.lqp-mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
    display: none;
}

/* Ensure Dashicons load correctly */
.lqp-frontend-wrapper .dashicons {
    font-family: "dashicons" !important;
}

/* Pagination */
.lqp-frontend-pagination {
    padding: 20px;
    display: flex;
    justify-content: center;
    gap: 8px;
}

.lqp-frontend-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    padding: 0 8px;
    border-radius: 6px;
    background: #ffffff;
    border: 1px solid #e2e4e7;
    color: #646970;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.lqp-frontend-pagination .page-numbers.current {
    background: #00BFFF;
    border-color: #00BFFF;
    color: #ffffff;
}

.lqp-frontend-pagination .page-numbers:hover:not(.current) {
    background: #f8f9fa;
    border-color: #00BFFF;
    color: #00BFFF;
}