/**
 * Portal de Clientes - Styles
 * Primary Color: #016B61
 */

:root {
    --portal-primary: #016B61;
    --portal-primary-dark: #015a52;
    --portal-primary-light: #018577;
    --portal-primary-rgb: 1, 107, 97;
    --portal-secondary: #6c757d;
    --portal-success: #28a745;
    --portal-danger: #dc3545;
    --portal-warning: #ffc107;
    --portal-info: #17a2b8;
    --portal-light: #f8f9fa;
    --portal-dark: #343a40;
    --portal-white: #ffffff;
    --portal-gray-100: #f8f9fa;
    --portal-gray-200: #e9ecef;
    --portal-gray-300: #dee2e6;
    --portal-gray-400: #ced4da;
    --portal-gray-500: #adb5bd;
    --portal-gray-600: #6c757d;
    --portal-gray-700: #495057;
    --portal-gray-800: #343a40;
    --portal-gray-900: #212529;
    --portal-sidebar-width: 280px;
    --portal-header-height: 70px;
    --portal-border-radius: 8px;
    --portal-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    --portal-shadow-lg: 0 4px 20px rgba(0, 0, 0, 0.12);
    --portal-transition: all 0.2s ease-in-out;
}

/* ========================================
   RESET & BASE
   ======================================== */

.portal-body {
    margin: 0;
    padding: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, sans-serif;
    background-color: #f0f2f5;
    color: var(--portal-gray-800);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.portal-body *,
.portal-login-page * {
    box-sizing: border-box;
}

/* ========================================
   LOGIN PAGE
   ======================================== */

.portal-login-page {
    margin: 0;
    padding: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f0f2f5 0%, #e8ecef 100%);
}

.portal-login-container {
    display: flex;
    max-width: 1000px;
    width: 95%;
    min-height: 600px;
    background: var(--portal-white);
    border-radius: 16px;
    box-shadow: var(--portal-shadow-lg);
    overflow: hidden;
}

.portal-login-box {
    flex: 1;
    padding: 50px;
    display: flex;
    flex-direction: column;
}

.portal-login-header {
    text-align: center;
    margin-bottom: 40px;
}

.portal-login-logo {
    margin-bottom: 20px;
}

.portal-login-logo img {
    max-height: 60px;
    width: auto;
}

.portal-login-logo-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto;
    background: linear-gradient(135deg, var(--portal-primary) 0%, var(--portal-primary-dark) 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.portal-login-logo-icon svg {
    width: 40px;
    height: 40px;
    color: var(--portal-white);
}

.portal-login-header h1 {
    margin: 15px 0 5px;
    font-size: 24px;
    font-weight: 700;
    color: var(--portal-gray-800);
}

.portal-login-header p {
    margin: 0;
    font-size: 14px;
    color: var(--portal-gray-600);
}

.portal-login-content {
    flex: 1;
}

.portal-login-content h2 {
    font-size: 22px;
    font-weight: 600;
    margin: 0 0 8px;
    color: var(--portal-gray-800);
}

.portal-login-content > p {
    margin: 0 0 30px;
    color: var(--portal-gray-600);
    font-size: 14px;
}

/* WordPress Login Form Styling */
#portal-login-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

#portal-login-form p {
    margin: 0;
}

#portal-login-form label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--portal-gray-700);
    margin-bottom: 8px;
}

#portal-login-form input[type="text"],
#portal-login-form input[type="password"] {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--portal-gray-200);
    border-radius: 10px;
    font-size: 15px;
    transition: var(--portal-transition);
    background: var(--portal-white);
}

#portal-login-form input[type="text"]:focus,
#portal-login-form input[type="password"]:focus {
    outline: none;
    border-color: var(--portal-primary);
    box-shadow: 0 0 0 4px rgba(var(--portal-primary-rgb), 0.1);
}

#portal-login-form .login-remember {
    display: flex;
    align-items: center;
    gap: 8px;
}

#portal-login-form .login-remember input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--portal-primary);
}

#portal-login-form .login-remember label {
    margin: 0;
    font-weight: 400;
    color: var(--portal-gray-600);
}

#portal-login-form input[type="submit"] {
    width: 100%;
    padding: 14px 24px;
    background: linear-gradient(135deg, var(--portal-primary) 0%, var(--portal-primary-dark) 100%);
    color: var(--portal-white);
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--portal-transition);
}

#portal-login-form input[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(var(--portal-primary-rgb), 0.4);
}

/* Login Error Message */
.portal-login-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 10px;
    padding: 14px 16px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #dc2626;
    font-size: 14px;
}

.portal-login-error .dashicons {
    color: #dc2626;
    flex-shrink: 0;
}

/* Login Success Message */
.portal-login-success {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 10px;
    padding: 14px 16px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #16a34a;
    font-size: 14px;
}

.portal-login-success .dashicons {
    color: #16a34a;
    flex-shrink: 0;
}

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

.portal-login-links a {
    color: var(--portal-primary);
    text-decoration: none;
    font-size: 14px;
}

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

.portal-login-footer {
    margin-top: auto;
    padding-top: 30px;
    text-align: center;
}

.portal-login-footer p {
    margin: 0;
    font-size: 13px;
    color: var(--portal-gray-500);
}

/* Login Visual Side */
.portal-login-visual {
    width: 45%;
    background: linear-gradient(135deg, var(--portal-primary) 0%, var(--portal-primary-dark) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 50px;
    position: relative;
    overflow: hidden;
}

.portal-login-visual::before {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    top: -100px;
    right: -100px;
}

.portal-login-visual::after {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 50%;
    bottom: -50px;
    left: -50px;
}

.portal-login-visual-content {
    position: relative;
    z-index: 1;
    color: var(--portal-white);
    text-align: center;
}

.portal-login-visual-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 30px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.portal-login-visual-icon svg {
    width: 50px;
    height: 50px;
}

.portal-login-visual-content h2 {
    font-size: 26px;
    font-weight: 700;
    margin: 0 0 30px;
}

.portal-login-visual-content ul {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
}

.portal-login-visual-content li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    font-size: 15px;
    opacity: 0.95;
}

.portal-login-visual-content li svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

/* Forgot Password Page */
.portal-forgot-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.portal-forgot-form .portal-form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.portal-forgot-form .portal-form-group label {
    font-size: 14px;
    font-weight: 600;
    color: var(--portal-gray-700);
}

.portal-forgot-form .portal-form-group input[type="text"],
.portal-forgot-form .portal-form-group input[type="password"],
.portal-forgot-form .portal-form-group input[type="email"] {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--portal-gray-200);
    border-radius: 10px;
    font-size: 15px;
    transition: var(--portal-transition);
    background: var(--portal-white);
}

.portal-forgot-form .portal-form-group input:focus {
    outline: none;
    border-color: var(--portal-primary);
    box-shadow: 0 0 0 4px rgba(var(--portal-primary-rgb), 0.1);
}

.portal-btn-block {
    width: 100%;
    justify-content: center;
}

.portal-forgot-success {
    text-align: center;
    padding: 20px 0;
}

.portal-forgot-success-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.portal-forgot-success-icon svg {
    width: 40px;
    height: 40px;
    color: white;
}

.portal-forgot-success h2 {
    font-size: 24px;
    font-weight: 700;
    color: var(--portal-gray-800);
    margin: 0 0 12px;
}

.portal-forgot-success p {
    color: var(--portal-gray-600);
    font-size: 15px;
    margin: 0 0 24px;
}

/* Password Field with Toggle */
.portal-password-field {
    position: relative;
    display: flex;
    align-items: center;
}

.portal-password-field input {
    padding-right: 50px !important;
}

.portal-password-toggle {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    color: var(--portal-gray-500);
    transition: var(--portal-transition);
}

.portal-password-toggle:hover {
    color: var(--portal-gray-700);
}

/* Password Requirements */
.portal-password-requirements {
    background: var(--portal-gray-100);
    border-radius: 10px;
    padding: 16px;
    margin-top: -10px;
}

.portal-password-requirements p {
    margin: 0 0 10px;
    font-size: 13px;
    font-weight: 600;
    color: var(--portal-gray-700);
}

.portal-password-requirements ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.portal-password-requirements li {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--portal-gray-500);
}

.portal-password-requirements li .dashicons {
    font-size: 14px;
    width: 14px;
    height: 14px;
}

.portal-password-requirements li.valid {
    color: #10b981;
}

.portal-password-requirements li.valid .dashicons {
    color: #10b981;
}

.portal-login-links .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
    vertical-align: middle;
    margin-right: 4px;
}

/* ========================================
   MAIN APP LAYOUT
   ======================================== */

.portal-app {
    display: flex;
    min-height: 100vh;
}

/* ========================================
   SIDEBAR
   ======================================== */

.portal-sidebar {
    width: var(--portal-sidebar-width);
    background: var(--portal-white);
    border-right: 1px solid var(--portal-gray-200);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    z-index: 1000;
    transition: transform 0.3s ease;
}

.portal-sidebar-header {
    padding: 24px 20px;
    border-bottom: 1px solid var(--portal-gray-200);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.portal-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: inherit;
    transition: var(--portal-transition);
}

.portal-logo:hover {
    opacity: 0.9;
}

.portal-logo img {
    max-height: 40px;
    width: auto;
}

.portal-logo-text {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 18px;
    font-weight: 700;
    color: var(--portal-gray-800);
}

.portal-logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--portal-primary) 0%, var(--portal-primary-dark) 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.portal-logo-icon svg {
    width: 22px;
    height: 22px;
    color: var(--portal-white);
}

.portal-sidebar-close {
    display: none;
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    color: var(--portal-gray-600);
}

.portal-sidebar-close svg {
    width: 24px;
    height: 24px;
}

/* Navigation */
.portal-nav {
    flex: 1;
    padding: 20px 0;
    overflow-y: auto;
}

.portal-nav-section {
    padding: 0 16px;
    margin-bottom: 24px;
}

.portal-nav-label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--portal-gray-500);
    padding: 0 12px;
    margin-bottom: 8px;
}

.portal-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.portal-nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    color: var(--portal-gray-700);
    text-decoration: none;
    border-radius: 8px;
    transition: var(--portal-transition);
    font-size: 14px;
    font-weight: 500;
}

.portal-nav-link:hover {
    background: var(--portal-gray-100);
    color: var(--portal-gray-800);
}

.portal-nav-link.active {
    background: rgba(var(--portal-primary-rgb), 0.1);
    color: var(--portal-primary);
}

.portal-nav-link.active .portal-nav-icon svg {
    color: var(--portal-primary);
}

.portal-nav-icon {
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.portal-nav-icon svg {
    width: 20px;
    height: 20px;
    color: var(--portal-gray-500);
}

.portal-nav-badge {
    margin-left: auto;
    background: var(--portal-primary);
    color: var(--portal-white);
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 10px;
}

.portal-nav-link-sm {
    padding: 10px 12px;
    font-size: 13px;
}

.portal-nav-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.portal-nav-dot-success { background: var(--portal-success); }
.portal-nav-dot-info { background: var(--portal-info); }
.portal-nav-dot-warning { background: var(--portal-warning); }
.portal-nav-dot-muted { background: var(--portal-gray-400); }

.portal-nav-count {
    margin-left: auto;
    font-size: 12px;
    color: var(--portal-gray-500);
    font-weight: 500;
}

.portal-nav-count-alert {
    background: var(--portal-warning);
    color: var(--portal-gray-800);
    padding: 2px 8px;
    border-radius: 10px;
}

/* Empresa Info */
.portal-empresa-info {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: rgba(var(--portal-primary-rgb), 0.05);
    border-bottom: 1px solid var(--portal-gray-200);
}

.portal-empresa-icon {
    width: 40px;
    height: 40px;
    background: var(--portal-primary);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.portal-empresa-icon svg {
    width: 22px;
    height: 22px;
    color: var(--portal-white);
}

.portal-empresa-details {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.portal-empresa-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--portal-gray-800);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.portal-empresa-local {
    font-size: 12px;
    color: var(--portal-gray-500);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Sidebar Footer */
.portal-sidebar-footer {
    padding: 16px;
    border-top: 1px solid var(--portal-gray-200);
}

/* ========================================
   MAIN CONTENT AREA
   ======================================== */

.portal-main {
    flex: 1;
    margin-left: var(--portal-sidebar-width);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Header Bar */
.portal-header-bar {
    height: var(--portal-header-height);
    background: var(--portal-white);
    border-bottom: 1px solid var(--portal-gray-200);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 30px;
    position: sticky;
    top: 0;
    z-index: 100;
}

.portal-header-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.portal-menu-toggle {
    display: none;
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    color: var(--portal-gray-600);
}

.portal-menu-toggle svg {
    width: 24px;
    height: 24px;
}

.portal-page-title h1 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: var(--portal-gray-800);
}

.portal-header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Notification Bell */
.portal-header-notification {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: var(--portal-gray-100);
    border-radius: 10px;
    color: var(--portal-gray-600);
    transition: var(--portal-transition);
}

.portal-header-notification:hover {
    background: var(--portal-gray-200);
    color: var(--portal-gray-800);
}

.portal-header-notification svg {
    width: 22px;
    height: 22px;
}

.portal-notification-badge {
    position: absolute;
    top: 6px;
    right: 6px;
    min-width: 18px;
    height: 18px;
    background: var(--portal-danger);
    color: var(--portal-white);
    font-size: 10px;
    font-weight: 600;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
}

/* User Menu */
.portal-user-menu {
    position: relative;
}

.portal-user-toggle {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 6px 12px 6px 6px;
    background: var(--portal-gray-100);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: var(--portal-transition);
}

.portal-user-toggle:hover {
    background: var(--portal-gray-200);
}

.portal-user-avatar img {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    object-fit: cover;
}

.portal-user-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

.portal-user-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--portal-gray-800);
}

.portal-user-email {
    font-size: 12px;
    color: var(--portal-gray-500);
}

.portal-user-arrow {
    width: 16px;
    height: 16px;
    color: var(--portal-gray-500);
    transition: var(--portal-transition);
}

.portal-user-menu.open .portal-user-arrow {
    transform: rotate(180deg);
}

/* User Dropdown */
.portal-user-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    width: 280px;
    background: var(--portal-white);
    border-radius: 12px;
    box-shadow: var(--portal-shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--portal-transition);
    z-index: 1000;
}

.portal-user-menu.open .portal-user-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.portal-dropdown-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
}

.portal-dropdown-avatar img {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    object-fit: cover;
}

.portal-dropdown-info {
    display: flex;
    flex-direction: column;
}

.portal-dropdown-info strong {
    font-size: 15px;
    color: var(--portal-gray-800);
}

.portal-dropdown-info span {
    font-size: 13px;
    color: var(--portal-gray-500);
}

.portal-dropdown-divider {
    height: 1px;
    background: var(--portal-gray-200);
    margin: 0 16px;
}

.portal-dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: var(--portal-gray-700);
    text-decoration: none;
    font-size: 14px;
    transition: var(--portal-transition);
}

.portal-dropdown-item:hover {
    background: var(--portal-gray-100);
}

.portal-dropdown-item svg {
    width: 18px;
    height: 18px;
    color: var(--portal-gray-500);
}

.portal-dropdown-item-danger {
    color: var(--portal-danger);
}

.portal-dropdown-item-danger svg {
    color: var(--portal-danger);
}

/* ========================================
   CONTENT AREA
   ======================================== */

.portal-content {
    flex: 1;
    padding: 30px;
}

/* Container - Full width for inner templates */
.portal-container {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
}

/* Footer */
.portal-footer {
    padding: 20px 30px;
    border-top: 1px solid var(--portal-gray-200);
    background: var(--portal-white);
    text-align: center;
}

.portal-footer p {
    margin: 0;
    font-size: 13px;
    color: var(--portal-gray-500);
}

.portal-footer-credit {
    margin-top: 5px !important;
}

.portal-footer-credit a {
    color: var(--portal-primary);
    text-decoration: none;
}

.portal-footer-credit a:hover {
    text-decoration: underline;
}

/* Overlay for mobile */
.portal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.portal-overlay.active {
    opacity: 1;
}

/* ========================================
   DASHBOARD & CONTENT COMPONENTS
   ======================================== */

/* Header Banner */
.portal-header {
    background: linear-gradient(135deg, var(--portal-primary) 0%, var(--portal-primary-dark) 100%);
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 30px;
    color: var(--portal-white);
    position: relative;
    overflow: hidden;
}

.portal-header::before {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    top: -100px;
    right: -50px;
}

.portal-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    position: relative;
    z-index: 1;
}

.portal-welcome h1 {
    margin: 0 0 5px;
    font-size: 28px;
    font-weight: 700;
}

.portal-welcome p {
    margin: 0;
    opacity: 0.9;
    font-size: 15px;
}

.portal-header-actions .portal-btn {
    background-color: var(--portal-white);
    color: var(--portal-primary);
}

.portal-header-actions .portal-btn:hover {
    background-color: var(--portal-gray-100);
    color: var(--portal-primary-dark);
}

/* Dashboard Header - New Design */
.portal-dashboard-header {
    background: linear-gradient(135deg, var(--portal-primary) 0%, var(--portal-primary-dark) 100%);
    border-radius: 20px;
    padding: 32px;
    margin-bottom: 24px;
    color: var(--portal-white);
    position: relative;
    overflow: hidden;
}

.portal-dashboard-header::before {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    top: -150px;
    right: -100px;
}

.portal-dashboard-header::after {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 50%;
    bottom: -50px;
    left: -50px;
}

.portal-dashboard-welcome {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    position: relative;
    z-index: 1;
    flex-wrap: wrap;
}

.portal-welcome-text {
    flex: 1;
}

.portal-greeting {
    font-size: 16px;
    opacity: 0.9;
    display: block;
    margin-bottom: 4px;
}

.portal-welcome-text h1 {
    margin: 0 0 8px;
    font-size: 32px;
    font-weight: 700;
    line-height: 1.2;
}

.portal-empresa-name {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    font-size: 14px;
    opacity: 0.9;
}

.portal-empresa-name .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

.portal-welcome-actions .portal-btn-lg {
    padding: 14px 28px;
    font-size: 15px;
}

.portal-welcome-actions .portal-btn {
    background: var(--portal-white);
    color: var(--portal-primary);
}

.portal-welcome-actions .portal-btn:hover {
    background: var(--portal-gray-100);
    transform: translateY(-2px);
}

/* Progress Overview */
.portal-progress-overview {
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    position: relative;
    z-index: 1;
}

.portal-progress-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.portal-progress-label {
    font-size: 13px;
    opacity: 0.9;
}

.portal-progress-value {
    font-size: 14px;
    font-weight: 600;
}

.portal-progress-bar {
    height: 8px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    overflow: hidden;
}

.portal-progress-fill {
    height: 100%;
    background: var(--portal-white);
    border-radius: 10px;
    transition: width 0.5s ease;
}

.portal-progress-counts {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
    font-size: 12px;
    opacity: 0.8;
}

/* Alert Banner */
.portal-alert {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    border-radius: 12px;
    margin-bottom: 24px;
}

.portal-alert-warning {
    background: linear-gradient(135deg, #fff8e6 0%, #fff3d6 100%);
    border: 1px solid #ffe0a3;
}

.portal-alert-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.portal-alert-warning .portal-alert-icon {
    background: #ffb300;
    color: var(--portal-white);
}

.portal-alert-icon .dashicons {
    font-size: 22px;
    width: 22px;
    height: 22px;
}

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

.portal-alert-content h4 {
    margin: 0 0 4px;
    font-size: 15px;
    font-weight: 600;
    color: var(--portal-gray-800);
}

.portal-alert-content p {
    margin: 0;
    font-size: 13px;
    color: var(--portal-gray-600);
}

.portal-btn-warning {
    background: #ffb300;
    color: var(--portal-gray-800);
    white-space: nowrap;
}

.portal-btn-warning:hover {
    background: #ffa000;
    transform: translateY(-2px);
}

/* Dashboard Grid */
.portal-dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 24px;
}

.portal-section-main {
    min-width: 0;
}

.portal-dashboard-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Clickable Stat Cards */
.portal-stat-card-clickable {
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.portal-stat-card-clickable:hover {
    transform: translateY(-4px);
    box-shadow: var(--portal-shadow-lg);
}

/* Quick Actions */
.portal-quick-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 16px !important;
}

.portal-quick-action {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px;
    background: var(--portal-gray-100);
    border-radius: 12px;
    text-decoration: none;
    transition: var(--portal-transition);
}

.portal-quick-action:hover {
    background: var(--portal-gray-200);
    transform: translateX(4px);
}

.portal-quick-action-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.portal-quick-action-icon .dashicons {
    font-size: 22px;
    width: 22px;
    height: 22px;
    color: var(--portal-white);
}

.portal-quick-action-bug {
    background: linear-gradient(135deg, #ef5350 0%, #e53935 100%);
}

.portal-quick-action-feature {
    background: linear-gradient(135deg, #ab47bc 0%, #8e24aa 100%);
}

.portal-quick-action-question {
    background: linear-gradient(135deg, #29b6f6 0%, #0288d1 100%);
}

.portal-quick-action-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.portal-quick-action-text strong {
    font-size: 14px;
    font-weight: 600;
    color: var(--portal-gray-800);
}

.portal-quick-action-text small {
    font-size: 12px;
    color: var(--portal-gray-500);
}

/* Status List */
.portal-status-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 12px !important;
}

.portal-status-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 10px;
    text-decoration: none;
    transition: var(--portal-transition);
}

.portal-status-item:hover {
    background: var(--portal-gray-100);
}

.portal-status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.portal-status-aberto {
    background: #3498db;
}

.portal-status-em-analise {
    background: #9b59b6;
}

.portal-status-em-desenvolvimento {
    background: #f39c12;
}

.portal-status-aguardando {
    background: #e74c3c;
}

.portal-status-resolvido {
    background: #27ae60;
}

.portal-status-name {
    flex: 1;
    font-size: 14px;
    color: var(--portal-gray-700);
}

.portal-status-count {
    font-size: 14px;
    font-weight: 600;
    color: var(--portal-gray-800);
    background: var(--portal-gray-100);
    padding: 2px 10px;
    border-radius: 20px;
    min-width: 28px;
    text-align: center;
}

/* Empty State Compact */
.portal-empty-state-compact {
    padding: 40px 30px;
}

/* Buttons */
.portal-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 600;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    text-decoration: none;
    transition: var(--portal-transition);
    line-height: 1.4;
}

.portal-btn .dashicons,
.portal-btn svg {
    width: 18px;
    height: 18px;
    font-size: 18px;
}

.portal-btn-primary {
    background: linear-gradient(135deg, var(--portal-primary) 0%, var(--portal-primary-dark) 100%);
    color: var(--portal-white);
}

.portal-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(var(--portal-primary-rgb), 0.4);
    color: var(--portal-white);
}

.portal-btn-secondary {
    background-color: var(--portal-gray-200);
    color: var(--portal-gray-700);
}

.portal-btn-secondary:hover {
    background-color: var(--portal-gray-300);
    color: var(--portal-gray-800);
}

.portal-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Page Header */
.portal-page-header {
    margin-bottom: 25px;
}

.portal-page-header h1 {
    margin: 0 0 5px;
    font-size: 28px;
    font-weight: 700;
    color: var(--portal-gray-800);
}

.portal-page-header p {
    margin: 0;
    color: var(--portal-gray-600);
}

.portal-page-header-with-action {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 15px;
}

/* Breadcrumb */
.portal-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    color: var(--portal-gray-600);
}

.portal-breadcrumb a {
    color: var(--portal-primary);
    text-decoration: none;
}

.portal-breadcrumb a:hover {
    text-decoration: underline;
}

.portal-breadcrumb .dashicons {
    font-size: 14px;
    width: 14px;
    height: 14px;
}

/* Stats Cards */
.portal-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.portal-stat-card {
    background: var(--portal-white);
    border-radius: 16px;
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: var(--portal-shadow);
    transition: var(--portal-transition);
}

.portal-stat-card:hover {
    box-shadow: var(--portal-shadow-lg);
    transform: translateY(-2px);
}

.portal-stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.portal-stat-icon .dashicons {
    font-size: 28px;
    width: 28px;
    height: 28px;
    color: var(--portal-white);
}

.portal-stat-total {
    background: linear-gradient(135deg, var(--portal-primary), var(--portal-primary-light));
}

.portal-stat-aberto {
    background: linear-gradient(135deg, #28a745, #34ce57);
}

.portal-stat-andamento {
    background: linear-gradient(135deg, #17a2b8, #20c9e0);
}

.portal-stat-resolvido {
    background: linear-gradient(135deg, #6c757d, #868e96);
}

.portal-stat-info {
    display: flex;
    flex-direction: column;
}

.portal-stat-number {
    font-size: 32px;
    font-weight: 700;
    color: var(--portal-gray-800);
    line-height: 1;
}

.portal-stat-label {
    font-size: 14px;
    color: var(--portal-gray-600);
    margin-top: 4px;
}

/* Section */
.portal-section {
    margin-bottom: 30px;
}

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

.portal-section-header h2 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: var(--portal-gray-800);
}

.portal-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--portal-primary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
}

.portal-link:hover {
    text-decoration: underline;
}

.portal-link .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

/* Card */
.portal-card {
    background: var(--portal-white);
    border-radius: 16px;
    box-shadow: var(--portal-shadow);
    margin-bottom: 20px;
    overflow: hidden;
}

.portal-card-header {
    padding: 18px 24px;
    border-bottom: 1px solid var(--portal-gray-200);
}

.portal-card-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: var(--portal-gray-800);
}

.portal-card-body {
    padding: 24px;
}

/* Table */
.portal-table-container {
    background: var(--portal-white);
    border-radius: 16px;
    box-shadow: var(--portal-shadow);
    overflow: hidden;
}

.portal-table {
    width: 100%;
    border-collapse: collapse;
}

.portal-table th,
.portal-table td {
    padding: 14px 20px;
    text-align: left;
    border-bottom: 1px solid var(--portal-gray-200);
}

.portal-table th {
    background: var(--portal-gray-100);
    font-weight: 600;
    font-size: 12px;
    color: var(--portal-gray-600);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

/* Table column widths */
.portal-th-id {
    width: 80px;
}

.portal-th-titulo {
    width: 25%;
    min-width: 180px;
}

.portal-th-tipo,
.portal-th-status,
.portal-th-prioridade {
    width: 130px;
}

.portal-th-autor {
    width: 140px;
}

.portal-th-data {
    width: 110px;
}

.portal-table-author {
    color: var(--portal-gray-600);
    font-size: 13px;
}

.portal-th-comentarios {
    width: 90px;
    text-align: center;
}

.portal-table td {
    font-size: 14px;
    vertical-align: middle;
}

.portal-table tbody tr:last-child td {
    border-bottom: none;
}

.portal-table-row-clickable {
    cursor: pointer;
    transition: var(--portal-transition);
}

.portal-table-row-clickable:hover {
    background-color: var(--portal-gray-100);
}

.portal-table a {
    color: var(--portal-primary);
    text-decoration: none;
    font-weight: 500;
}

.portal-table a:hover {
    text-decoration: underline;
}

.portal-table-title {
    display: block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.portal-table-date {
    white-space: nowrap;
    color: var(--portal-gray-600);
}

.portal-table-comments {
    text-align: center;
}

.portal-comment-count {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--portal-primary);
    font-weight: 500;
}

.portal-comment-count .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

.portal-comment-count-zero {
    color: var(--portal-gray-400);
}

/* Badge */
.portal-badge {
    display: inline-block;
    padding: 5px 12px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 20px;
    color: var(--portal-white);
    white-space: nowrap;
}

.portal-badge-admin {
    background-color: var(--portal-primary);
    font-size: 10px;
    padding: 3px 10px;
    margin-left: 8px;
    vertical-align: middle;
}

/* Empty State */
.portal-empty-state {
    text-align: center;
    padding: 60px 20px;
    background: var(--portal-white);
    border-radius: 16px;
    box-shadow: var(--portal-shadow);
}

.portal-empty-state .dashicons {
    font-size: 64px;
    width: 64px;
    height: 64px;
    color: var(--portal-gray-400);
    margin-bottom: 15px;
}

.portal-empty-state h3 {
    margin: 0 0 10px;
    font-size: 20px;
    color: var(--portal-gray-700);
}

.portal-empty-state p {
    margin: 0 0 20px;
    color: var(--portal-gray-600);
}

/* Quick Links */
.portal-quick-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 15px;
}

.portal-quick-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px 20px;
    background: var(--portal-white);
    border-radius: 12px;
    box-shadow: var(--portal-shadow);
    text-decoration: none;
    color: var(--portal-gray-700);
    transition: var(--portal-transition);
}

.portal-quick-link:hover {
    box-shadow: var(--portal-shadow-lg);
    color: var(--portal-primary);
    transform: translateY(-2px);
}

.portal-quick-link .dashicons {
    font-size: 24px;
    width: 24px;
    height: 24px;
    color: var(--portal-primary);
}

.portal-quick-link-count {
    margin-left: auto;
    background: var(--portal-gray-100);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}

/* Filters */
.portal-filters-card {
    margin-bottom: 20px;
    padding: 20px 24px;
}

.portal-filters-row {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: flex-end;
}

.portal-filter-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 150px;
}

.portal-filter-group label {
    font-size: 13px;
    font-weight: 600;
    color: var(--portal-gray-700);
}

.portal-filter-group select,
.portal-filter-group input {
    padding: 10px 14px;
    border: 2px solid var(--portal-gray-200);
    border-radius: 8px;
    font-size: 14px;
    transition: var(--portal-transition);
    background: var(--portal-white);
}

.portal-filter-group select:focus,
.portal-filter-group input:focus {
    outline: none;
    border-color: var(--portal-primary);
    box-shadow: 0 0 0 4px rgba(var(--portal-primary-rgb), 0.1);
}

.portal-filter-search {
    flex: 1;
    min-width: 200px;
}

.portal-filter-actions {
    display: flex;
    gap: 10px;
}

.portal-results-info {
    font-size: 14px;
    color: var(--portal-gray-600);
    margin-bottom: 15px;
}

/* Pagination */
.portal-pagination {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin-top: 25px;
}

.portal-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 14px;
    background: var(--portal-white);
    border: 2px solid var(--portal-gray-200);
    border-radius: 8px;
    color: var(--portal-gray-700);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: var(--portal-transition);
}

.portal-pagination .page-numbers:hover {
    background: var(--portal-gray-100);
    border-color: var(--portal-gray-300);
}

.portal-pagination .page-numbers.current {
    background: var(--portal-primary);
    border-color: var(--portal-primary);
    color: var(--portal-white);
}

.portal-pagination .page-numbers .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

/* Single Solicitacao */
.portal-single-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 25px;
}

.portal-single-title h1 {
    margin: 0 0 10px;
    font-size: 26px;
    font-weight: 700;
    color: var(--portal-gray-800);
}

.portal-single-id {
    color: var(--portal-gray-500);
    font-weight: 400;
    margin-right: 8px;
}

.portal-single-meta {
    display: flex;
    gap: 20px;
    font-size: 14px;
    color: var(--portal-gray-600);
}

.portal-single-meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.portal-single-meta .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

.portal-single-badges {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.portal-single-content {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 30px;
}

.portal-single-main {
    min-width: 0;
}

.portal-single-sidebar {
    min-width: 0;
}

.portal-description {
    font-size: 15px;
    line-height: 1.7;
}

.portal-description p {
    margin: 0 0 15px;
}

.portal-description p:last-child {
    margin-bottom: 0;
}

/* Attachments */
.portal-anexos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
}

.portal-anexo-item {
    position: relative;
}

.portal-anexo-image {
    display: block;
    border-radius: 10px;
    overflow: hidden;
}

.portal-anexo-image img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    display: block;
    transition: var(--portal-transition);
}

.portal-anexo-image:hover img {
    transform: scale(1.05);
}

.portal-anexo-file {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 20px 15px;
    background: var(--portal-gray-100);
    border-radius: 10px;
    text-decoration: none;
    color: var(--portal-gray-700);
    transition: var(--portal-transition);
}

.portal-anexo-file:hover {
    background: var(--portal-gray-200);
}

.portal-anexo-file .dashicons {
    font-size: 40px;
    width: 40px;
    height: 40px;
    color: var(--portal-primary);
}

.portal-anexo-name {
    font-size: 12px;
    text-align: center;
    word-break: break-all;
}

/* Comments */
.portal-comments-list {
    margin-bottom: 25px;
}

.portal-comment {
    display: flex;
    gap: 15px;
    padding: 18px 0;
    border-bottom: 1px solid var(--portal-gray-200);
}

.portal-comment:last-child {
    border-bottom: none;
}

.portal-comment-avatar img {
    width: 48px;
    height: 48px;
    border-radius: 12px;
}

.portal-comment-content {
    flex: 1;
    min-width: 0;
}

.portal-comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    flex-wrap: wrap;
    gap: 8px;
}

.portal-comment-author {
    font-weight: 600;
    color: var(--portal-gray-800);
}

.portal-comment-date {
    font-size: 13px;
    color: var(--portal-gray-500);
}

.portal-comment-body {
    font-size: 14px;
    line-height: 1.6;
}

.portal-comment-body p {
    margin: 0 0 10px;
}

.portal-comment-body p:last-child {
    margin-bottom: 0;
}

.portal-no-comments {
    text-align: center;
    padding: 30px 20px;
    color: var(--portal-gray-500);
}

.portal-comment-form {
    border-top: 1px solid var(--portal-gray-200);
    padding-top: 20px;
}

/* Timeline */
.portal-timeline {
    position: relative;
}

.portal-timeline-item {
    display: flex;
    gap: 15px;
    padding-bottom: 20px;
    position: relative;
}

.portal-timeline-item:last-child {
    padding-bottom: 0;
}

.portal-timeline-item::before {
    content: '';
    position: absolute;
    left: 7px;
    top: 20px;
    bottom: 0;
    width: 2px;
    background: var(--portal-gray-200);
}

.portal-timeline-item:last-child::before {
    display: none;
}

.portal-timeline-dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--portal-primary);
    flex-shrink: 0;
    margin-top: 3px;
}

.portal-timeline-content {
    flex: 1;
    min-width: 0;
}

.portal-timeline-action {
    font-size: 14px;
    color: var(--portal-gray-800);
    margin-bottom: 4px;
}

.portal-timeline-meta {
    font-size: 12px;
    color: var(--portal-gray-500);
}

.portal-timeline-user {
    margin-right: 10px;
}

.portal-no-history {
    color: var(--portal-gray-500);
    font-size: 14px;
    text-align: center;
    padding: 20px;
}

/* Back Link */
.portal-back-link {
    margin-top: 30px;
}

/* Forms */
.portal-form {
    width: 100%;
    max-width: 100%;
}

.portal-form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.portal-form-group {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.portal-form-group-full {
    flex: 100%;
}

.portal-form-group label {
    font-size: 14px;
    font-weight: 600;
    color: var(--portal-gray-700);
}

.portal-required {
    color: var(--portal-danger);
}

.portal-form-group input[type="text"],
.portal-form-group input[type="email"],
.portal-form-group input[type="password"],
.portal-form-group textarea,
.portal-form-group select {
    padding: 12px 16px;
    border: 2px solid var(--portal-gray-200);
    border-radius: 10px;
    font-size: 14px;
    font-family: inherit;
    transition: var(--portal-transition);
    background: var(--portal-white);
    width: 100%;
}

.portal-form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.portal-form-group input[type="text"]:focus,
.portal-form-group input[type="email"]:focus,
.portal-form-group input[type="password"]:focus,
.portal-form-group textarea:focus,
.portal-form-group select:focus {
    outline: none;
    border-color: var(--portal-primary);
    box-shadow: 0 0 0 4px rgba(var(--portal-primary-rgb), 0.1);
}

.portal-form-hint {
    font-size: 12px;
    color: var(--portal-gray-500);
}

/* WordPress Editor Wrapper */
.portal-editor-wrapper {
    border: 2px solid var(--portal-gray-200);
    border-radius: 10px;
    overflow: hidden;
    transition: var(--portal-transition);
}

.portal-editor-wrapper:focus-within {
    border-color: var(--portal-primary);
    box-shadow: 0 0 0 4px rgba(var(--portal-primary-rgb), 0.1);
}

.portal-editor-wrapper .wp-editor-container {
    border: none;
}

.portal-editor-wrapper .wp-editor-tabs {
    padding: 5px 10px 0;
    background: var(--portal-gray-100);
}

.portal-editor-wrapper .wp-switch-editor {
    border: none;
    background: transparent;
    color: var(--portal-gray-600);
    padding: 6px 12px;
    border-radius: 6px 6px 0 0;
}

.portal-editor-wrapper .wp-switch-editor.switch-tmce,
.portal-editor-wrapper .wp-switch-editor.switch-html {
    background: var(--portal-white);
    color: var(--portal-gray-800);
}

.portal-editor-wrapper .mce-tinymce {
    box-shadow: none !important;
}

.portal-editor-wrapper .mce-toolbar-grp {
    background: var(--portal-gray-100) !important;
    border-bottom: 1px solid var(--portal-gray-200) !important;
}

.portal-editor-wrapper .mce-btn {
    background: transparent !important;
    border: none !important;
}

.portal-editor-wrapper .mce-btn:hover {
    background: var(--portal-gray-200) !important;
}

.portal-editor-wrapper .mce-edit-area iframe {
    min-height: 200px;
}

.portal-editor-wrapper .quicktags-toolbar {
    background: var(--portal-gray-100);
    border-bottom: 1px solid var(--portal-gray-200);
    padding: 8px;
}

.portal-editor-wrapper .wp-editor-area {
    border: none;
    padding: 15px;
    min-height: 200px;
}

/* URL Repeater Field */
.portal-url-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.portal-url-item {
    display: flex;
    gap: 10px;
    align-items: center;
}

.portal-url-item input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid var(--portal-gray-200);
    border-radius: 10px;
    font-size: 14px;
    font-family: inherit;
    transition: var(--portal-transition);
    background: var(--portal-white);
}

.portal-url-item input:focus {
    outline: none;
    border-color: var(--portal-primary);
    box-shadow: 0 0 0 4px rgba(var(--portal-primary-rgb), 0.1);
}

.portal-url-remove {
    width: 40px;
    height: 40px;
    padding: 0;
    background: var(--portal-gray-100);
    border: 2px solid var(--portal-gray-200);
    border-radius: 8px;
    color: var(--portal-danger);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--portal-transition);
}

.portal-url-remove:hover {
    background: var(--portal-danger);
    border-color: var(--portal-danger);
    color: var(--portal-white);
}

.portal-url-remove .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
}

.portal-add-url {
    align-self: flex-start;
    margin-top: 5px;
}

/* URLs List (single view) */
.portal-urls-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.portal-urls-list li a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--portal-primary);
    text-decoration: none;
    font-size: 14px;
    padding: 10px 14px;
    background: var(--portal-gray-100);
    border-radius: 8px;
    transition: var(--portal-transition);
    word-break: break-all;
}

.portal-urls-list li a:hover {
    background: rgba(var(--portal-primary-rgb), 0.1);
}

.portal-urls-list li a .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.portal-tipo-descriptions,
.portal-prioridade-descriptions {
    margin-top: 4px;
}

.portal-tipo-desc,
.portal-prioridade-desc {
    display: none;
    font-size: 12px;
    color: var(--portal-gray-600);
}

.portal-tipo-desc.active,
.portal-prioridade-desc.active {
    display: block;
}

.portal-form-actions {
    display: flex;
    gap: 15px;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid var(--portal-gray-200);
}

/* Upload Area */
.portal-upload-area {
    position: relative;
    border: 2px dashed var(--portal-gray-300);
    border-radius: 12px;
    padding: 40px 20px;
    text-align: center;
    cursor: pointer;
    transition: var(--portal-transition);
}

.portal-upload-area:hover,
.portal-upload-area.dragover {
    border-color: var(--portal-primary);
    background: rgba(var(--portal-primary-rgb), 0.02);
}

.portal-upload-area input[type="file"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.portal-upload-placeholder .dashicons {
    font-size: 48px;
    width: 48px;
    height: 48px;
    color: var(--portal-gray-400);
    margin-bottom: 10px;
}

.portal-upload-placeholder p {
    margin: 0 0 5px;
    font-size: 15px;
    color: var(--portal-gray-700);
}

.portal-upload-hint {
    font-size: 13px;
    color: var(--portal-gray-500);
}

.portal-anexos-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 15px;
}

.portal-anexo-preview-item {
    position: relative;
    width: 100px;
}

.portal-anexo-preview-item img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 8px;
}

.portal-anexo-preview-file {
    width: 100px;
    height: 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--portal-gray-100);
    border-radius: 8px;
}

.portal-anexo-preview-file .dashicons {
    font-size: 32px;
    width: 32px;
    height: 32px;
    color: var(--portal-primary);
}

.portal-anexo-preview-name {
    font-size: 10px;
    text-align: center;
    padding: 4px;
    word-break: break-all;
    color: var(--portal-gray-600);
}

.portal-anexo-preview-remove {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 24px;
    height: 24px;
    background: var(--portal-danger);
    color: var(--portal-white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    line-height: 1;
}

.portal-anexo-preview-remove:hover {
    background: #c82333;
}

/* ========================================
   PROFILE PAGE
   ======================================== */

.portal-profile-header {
    display: flex;
    align-items: center;
    gap: 24px;
    background: var(--portal-white);
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: var(--portal-shadow);
}

.portal-profile-avatar img {
    width: 100px;
    height: 100px;
    border-radius: 20px;
    object-fit: cover;
    border: 4px solid var(--portal-gray-200);
}

.portal-profile-info h2 {
    margin: 0 0 5px;
    font-size: 24px;
    font-weight: 700;
    color: var(--portal-gray-800);
}

.portal-profile-email {
    margin: 0 0 8px;
    color: var(--portal-gray-600);
    font-size: 15px;
}

.portal-profile-empresa {
    margin: 0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--portal-primary);
    font-size: 14px;
    font-weight: 500;
}

.portal-profile-empresa .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

/* Tabs */
.portal-tabs {
    background: var(--portal-white);
    border-radius: 16px;
    box-shadow: var(--portal-shadow);
    overflow: hidden;
}

.portal-tabs-nav {
    display: flex;
    background: var(--portal-gray-100);
    border-bottom: 1px solid var(--portal-gray-200);
    overflow-x: auto;
}

.portal-tab-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 18px 28px;
    background: transparent;
    border: none;
    font-size: 14px;
    font-weight: 600;
    color: var(--portal-gray-600);
    cursor: pointer;
    transition: var(--portal-transition);
    position: relative;
    white-space: nowrap;
}

.portal-tab-btn .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
}

.portal-tab-btn:hover {
    color: var(--portal-gray-800);
    background: rgba(255, 255, 255, 0.5);
}

.portal-tab-btn.active {
    color: var(--portal-primary);
    background: var(--portal-white);
}

.portal-tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--portal-primary);
}

.portal-tabs-content {
    padding: 0;
}

.portal-tab-panel {
    display: none;
}

.portal-tab-panel.active {
    display: block;
}

.portal-tab-panel .portal-card {
    margin: 0;
    border-radius: 0;
    box-shadow: none;
}

/* Readonly Field */
.portal-readonly-field {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: var(--portal-gray-100);
    border-radius: 10px;
    font-size: 14px;
    color: var(--portal-gray-700);
}

.portal-readonly-field .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
    color: var(--portal-primary);
}

/* Password Field */
.portal-password-field {
    position: relative;
    display: flex;
    align-items: center;
}

.portal-password-field input {
    flex: 1;
    padding-right: 50px !important;
}

.portal-password-toggle {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    padding: 4px;
    cursor: pointer;
    color: var(--portal-gray-500);
    transition: var(--portal-transition);
}

.portal-password-toggle:hover {
    color: var(--portal-gray-700);
}

.portal-password-toggle .dashicons {
    font-size: 20px;
    width: 20px;
    height: 20px;
}

/* Password Strength */
.portal-password-strength {
    height: 4px;
    border-radius: 2px;
    margin-top: 8px;
    background: var(--portal-gray-200);
    overflow: hidden;
}

.portal-password-strength-bar {
    height: 100%;
    border-radius: 2px;
    transition: width 0.3s, background 0.3s;
}

.portal-password-strength.weak .portal-password-strength-bar {
    width: 25%;
    background: var(--portal-danger);
}

.portal-password-strength.medium .portal-password-strength-bar {
    width: 50%;
    background: var(--portal-warning);
}

.portal-password-strength.good .portal-password-strength-bar {
    width: 75%;
    background: var(--portal-info);
}

.portal-password-strength.strong .portal-password-strength-bar {
    width: 100%;
    background: var(--portal-success);
}

/* Password Requirements */
.portal-password-requirements {
    background: var(--portal-gray-100);
    border-radius: 10px;
    padding: 16px 20px;
    margin-bottom: 20px;
}

.portal-password-requirements p {
    margin: 0 0 10px;
    font-size: 14px;
    color: var(--portal-gray-700);
}

.portal-password-requirements ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.portal-password-requirements li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--portal-gray-600);
}

.portal-password-requirements li .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

.portal-password-requirements li.valid {
    color: var(--portal-success);
}

.portal-password-requirements li.valid .dashicons::before {
    content: "\f147";
}

/* Notification Options */
.portal-notification-options {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.portal-notification-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 20px;
    background: var(--portal-gray-100);
    border-radius: 12px;
}

.portal-notification-info h4 {
    margin: 0 0 4px;
    font-size: 15px;
    font-weight: 600;
    color: var(--portal-gray-800);
}

.portal-notification-info p {
    margin: 0;
    font-size: 13px;
    color: var(--portal-gray-600);
}

/* Toggle Switch */
.portal-toggle {
    position: relative;
    display: inline-block;
    width: 52px;
    height: 28px;
    flex-shrink: 0;
}

.portal-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.portal-toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--portal-gray-300);
    transition: 0.3s;
    border-radius: 28px;
}

.portal-toggle-slider::before {
    position: absolute;
    content: '';
    height: 22px;
    width: 22px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.portal-toggle input:checked + .portal-toggle-slider {
    background-color: var(--portal-primary);
}

.portal-toggle input:checked + .portal-toggle-slider::before {
    transform: translateX(24px);
}

.portal-toggle input:focus + .portal-toggle-slider {
    box-shadow: 0 0 0 3px rgba(var(--portal-primary-rgb), 0.2);
}

/* Password Match */
#password-match.match {
    color: var(--portal-success);
}

#password-match.no-match {
    color: var(--portal-danger);
}

/* Spin Animation */
.portal-spin {
    animation: portal-spin 1s linear infinite;
}

@keyframes portal-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Error/Success Messages */
.portal-error {
    background: #fee2e2;
    color: #991b1b;
    padding: 16px 20px;
    border-radius: 10px;
    border: 1px solid #fecaca;
}

.portal-success {
    background: #dcfce7;
    color: #166534;
    padding: 16px 20px;
    border-radius: 10px;
    border: 1px solid #bbf7d0;
}

.portal-error-page {
    text-align: center;
    padding: 80px 20px;
}

.portal-error-page h2 {
    font-size: 20px;
    color: var(--portal-gray-700);
}

/* Toast Notifications */
.portal-toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    padding: 16px 28px;
    border-radius: 12px;
    color: var(--portal-white);
    font-weight: 500;
    z-index: 10000;
    animation: slideIn 0.3s ease-out;
    box-shadow: var(--portal-shadow-lg);
}

.portal-toast-success {
    background: var(--portal-success);
}

.portal-toast-error {
    background: var(--portal-danger);
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   RESPONSIVE
   ======================================== */

/* Tablet landscape */
@media (max-width: 1200px) {
    .portal-single-content {
        grid-template-columns: 1fr 320px;
    }
}

/* Tablet portrait */
@media (max-width: 992px) {
    .portal-sidebar {
        transform: translateX(-100%);
    }

    .portal-sidebar.open {
        transform: translateX(0);
    }

    .portal-sidebar-close {
        display: block;
    }

    .portal-main {
        margin-left: 0;
    }

    .portal-menu-toggle {
        display: block;
    }

    .portal-overlay.active {
        display: block;
    }

    .portal-single-content {
        grid-template-columns: 1fr;
    }

    .portal-single-sidebar {
        order: -1;
    }

    .portal-user-info {
        display: none;
    }

    .portal-user-toggle {
        padding: 6px;
    }

    .portal-header-right {
        gap: 10px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    /* Content area */
    .portal-content {
        padding: 16px;
    }

    /* Header bar */
    .portal-header-bar {
        height: 60px;
        padding: 0 16px;
    }

    .portal-page-title h1 {
        font-size: 16px;
    }

    /* Dashboard header */
    .portal-header {
        padding: 20px;
        border-radius: 12px;
        margin-bottom: 20px;
    }

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

    .portal-welcome h1 {
        font-size: 20px;
    }

    .portal-welcome p {
        font-size: 14px;
    }

    .portal-header-actions {
        width: 100%;
    }

    .portal-header-actions .portal-btn {
        width: 100%;
        justify-content: center;
    }

    /* New Dashboard Header */
    .portal-dashboard-header {
        padding: 24px;
        border-radius: 16px;
        margin-bottom: 20px;
    }

    .portal-dashboard-welcome {
        flex-direction: column;
        gap: 16px;
    }

    .portal-welcome-text h1 {
        font-size: 24px;
    }

    .portal-greeting {
        font-size: 14px;
    }

    .portal-welcome-actions {
        width: 100%;
    }

    .portal-welcome-actions .portal-btn {
        width: 100%;
        justify-content: center;
    }

    .portal-progress-overview {
        margin-top: 20px;
        padding-top: 20px;
    }

    /* Alert */
    .portal-alert {
        flex-direction: column;
        text-align: center;
        gap: 12px;
        padding: 20px;
    }

    .portal-alert-content {
        text-align: center;
    }

    .portal-btn-warning {
        width: 100%;
        justify-content: center;
    }

    /* Dashboard Grid */
    .portal-dashboard-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .portal-dashboard-sidebar {
        order: -1;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }

    /* Quick Actions horizontal on tablet */
    .portal-quick-actions {
        gap: 10px;
    }

    .portal-quick-action {
        padding: 12px;
    }

    .portal-quick-action-icon {
        width: 38px;
        height: 38px;
    }

    .portal-quick-action-icon .dashicons {
        font-size: 18px;
        width: 18px;
        height: 18px;
    }

    .portal-quick-action-text strong {
        font-size: 13px;
    }

    .portal-quick-action-text small {
        font-size: 11px;
    }

    /* Status list compact */
    .portal-status-list {
        gap: 4px;
        padding: 10px !important;
    }

    .portal-status-item {
        padding: 10px 12px;
    }

    .portal-status-name {
        font-size: 13px;
    }

    .portal-status-count {
        font-size: 12px;
        padding: 2px 8px;
    }

    /* Stats */
    .portal-stats {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
        margin-bottom: 20px;
    }

    .portal-stat-card {
        padding: 16px;
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .portal-stat-icon {
        width: 44px;
        height: 44px;
        border-radius: 10px;
    }

    .portal-stat-icon .dashicons {
        font-size: 22px;
        width: 22px;
        height: 22px;
    }

    .portal-stat-number {
        font-size: 24px;
    }

    .portal-stat-label {
        font-size: 12px;
    }

    /* Page headers */
    .portal-page-header {
        margin-bottom: 20px;
    }

    .portal-page-header h1 {
        font-size: 22px;
    }

    .portal-page-header-with-action {
        flex-direction: column;
        gap: 12px;
    }

    .portal-page-header-actions {
        width: 100%;
    }

    .portal-page-header-actions .portal-btn {
        width: 100%;
        justify-content: center;
    }

    /* Breadcrumb */
    .portal-breadcrumb {
        font-size: 13px;
        margin-bottom: 15px;
    }

    /* Cards */
    .portal-card {
        border-radius: 12px;
    }

    .portal-card-header {
        padding: 14px 16px;
    }

    .portal-card-body {
        padding: 16px;
    }

    /* Mobile table - convert to cards */
    .portal-table-container {
        background: transparent;
        box-shadow: none;
        overflow: visible;
    }

    .portal-table {
        display: block;
    }

    .portal-table thead {
        display: none;
    }

    .portal-table tbody {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

    .portal-table tbody tr {
        display: flex;
        flex-direction: column;
        background: var(--portal-white);
        border-radius: 12px;
        padding: 16px;
        box-shadow: var(--portal-shadow);
        border: none;
    }

    .portal-table tbody tr:hover {
        background: var(--portal-white);
    }

    .portal-table td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 8px 0;
        border-bottom: 1px solid var(--portal-gray-100);
        font-size: 14px;
    }

    .portal-table td:last-child {
        border-bottom: none;
    }

    .portal-table td::before {
        content: attr(data-label);
        font-weight: 600;
        color: var(--portal-gray-600);
        font-size: 12px;
        text-transform: uppercase;
        flex-shrink: 0;
        margin-right: 12px;
    }

    .portal-table td:first-child {
        padding-top: 0;
    }

    .portal-table-title {
        white-space: normal;
        text-align: right;
    }

    .portal-table-comments {
        text-align: right;
    }

    /* Filters */
    .portal-filters-card {
        padding: 16px;
    }

    .portal-filters-row {
        flex-direction: column;
        gap: 12px;
    }

    .portal-filter-group {
        width: 100%;
    }

    .portal-filter-group select,
    .portal-filter-group input {
        padding: 12px 14px;
    }

    .portal-filter-actions {
        width: 100%;
        flex-direction: column;
    }

    .portal-filter-actions .portal-btn {
        width: 100%;
        justify-content: center;
    }

    /* Forms */
    .portal-form-row {
        flex-direction: column;
        gap: 16px;
    }

    .portal-form-group input,
    .portal-form-group textarea,
    .portal-form-group select {
        padding: 14px 16px;
        font-size: 16px; /* Prevents zoom on iOS */
    }

    .portal-form-actions {
        flex-direction: column;
        gap: 12px;
    }

    .portal-form-actions .portal-btn {
        width: 100%;
        justify-content: center;
    }

    /* Single solicitacao */
    .portal-single-header {
        flex-direction: column;
        gap: 15px;
    }

    .portal-single-title h1 {
        font-size: 20px;
    }

    .portal-single-meta {
        flex-wrap: wrap;
        gap: 10px;
        font-size: 13px;
    }

    .portal-single-badges {
        width: 100%;
    }

    /* Attachments */
    .portal-anexos-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    /* Comments */
    .portal-comment {
        flex-direction: column;
        gap: 12px;
    }

    .portal-comment-avatar {
        align-self: flex-start;
    }

    .portal-comment-avatar img {
        width: 40px;
        height: 40px;
        border-radius: 10px;
    }

    .portal-comment-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    /* Quick links */
    .portal-quick-links {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .portal-quick-link {
        padding: 16px;
    }

    /* Pagination */
    .portal-pagination .page-numbers {
        min-width: 36px;
        height: 36px;
        padding: 0 10px;
        font-size: 13px;
    }

    /* Login page */
    .portal-login-page {
        padding: 0;
        align-items: flex-start;
    }

    .portal-login-container {
        flex-direction: column;
        min-height: 100vh;
        width: 100%;
        max-width: 100%;
        border-radius: 0;
        box-shadow: none;
        margin: 0;
    }

    .portal-login-box {
        padding: 30px 20px;
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }

    .portal-login-header {
        margin-bottom: 24px;
    }

    .portal-login-logo-icon {
        width: 60px;
        height: 60px;
    }

    .portal-login-header h1 {
        font-size: 20px;
    }

    .portal-login-header p {
        font-size: 13px;
    }

    .portal-login-content {
        width: 100%;
        max-width: 100%;
    }

    .portal-login-content h2 {
        font-size: 18px;
    }

    .portal-login-content > p {
        font-size: 13px;
        margin-bottom: 20px;
    }

    .portal-login-visual {
        display: none;
    }

    #portal-login-form {
        width: 100%;
        max-width: 100%;
    }

    #portal-login-form p {
        width: 100%;
        max-width: 100%;
    }

    #portal-login-form label {
        font-size: 13px;
    }

    #portal-login-form input[type="text"],
    #portal-login-form input[type="password"] {
        width: 100%;
        max-width: 100%;
        padding: 14px 16px;
        font-size: 16px; /* Prevents iOS zoom on focus */
    }

    #portal-login-form input[type="submit"] {
        width: 100%;
        padding: 14px 20px;
        font-size: 15px;
    }

    .portal-login-error,
    .portal-login-success {
        font-size: 13px;
        padding: 12px 14px;
    }

    .portal-login-links {
        margin-top: 16px;
    }

    .portal-login-footer {
        padding-top: 20px;
    }

    /* Forgot password page mobile */
    .portal-forgot-form {
        width: 100%;
        max-width: 100%;
    }

    .portal-forgot-form .portal-form-group input {
        width: 100%;
        max-width: 100%;
        font-size: 16px;
    }

    .portal-password-requirements ul {
        grid-template-columns: 1fr;
    }

    /* Profile page */
    .portal-profile-header {
        flex-direction: column;
        text-align: center;
        padding: 20px;
        gap: 16px;
    }

    .portal-profile-avatar img {
        width: 80px;
        height: 80px;
        border-radius: 16px;
    }

    .portal-profile-info h2 {
        font-size: 20px;
    }

    /* Tabs */
    .portal-tabs {
        border-radius: 12px;
    }

    .portal-tabs-nav {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .portal-tabs-nav::-webkit-scrollbar {
        display: none;
    }

    .portal-tab-btn {
        padding: 14px 18px;
        font-size: 13px;
        white-space: nowrap;
    }

    .portal-tab-btn .dashicons {
        display: none;
    }

    /* Notification options */
    .portal-notification-option {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        padding: 16px;
    }

    .portal-notification-info h4 {
        font-size: 14px;
    }

    .portal-notification-info p {
        font-size: 12px;
    }

    /* Password field */
    .portal-password-field input {
        font-size: 16px;
    }

    .portal-password-requirements {
        padding: 14px 16px;
    }

    .portal-password-requirements li {
        font-size: 12px;
    }

    /* Readonly field */
    .portal-readonly-field {
        padding: 14px 16px;
        font-size: 14px;
    }

    /* Buttons */
    .portal-btn {
        padding: 12px 20px;
        font-size: 14px;
    }

    .portal-btn-primary,
    .portal-btn-secondary {
        width: 100%;
        justify-content: center;
    }

    /* Upload area */
    .portal-upload-area {
        padding: 30px 16px;
    }

    .portal-upload-placeholder .dashicons {
        font-size: 40px;
        width: 40px;
        height: 40px;
    }

    /* Empty state */
    .portal-empty-state {
        padding: 40px 20px;
    }

    .portal-empty-state .dashicons {
        font-size: 48px;
        width: 48px;
        height: 48px;
    }

    .portal-empty-state h3 {
        font-size: 18px;
    }

    /* Section */
    .portal-section {
        margin-bottom: 20px;
    }

    .portal-section-header h2 {
        font-size: 18px;
    }

    /* Toast */
    .portal-toast {
        left: 16px;
        right: 16px;
        bottom: 16px;
        text-align: center;
    }

    /* Footer */
    .portal-footer {
        padding: 16px;
    }

    .portal-footer p {
        font-size: 12px;
    }

    /* User dropdown on mobile */
    .portal-user-dropdown {
        position: fixed;
        top: var(--portal-header-height);
        bottom: auto;
        left: 8px;
        right: 8px;
        width: auto;
        margin: 0;
        border-radius: 12px;
        max-height: calc(100vh - var(--portal-header-height) - 20px);
        overflow-y: auto;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    }

    .portal-user-menu.open .portal-user-dropdown {
        transform: translateY(0);
    }
}

/* Small mobile */
@media (max-width: 480px) {
    .portal-content {
        padding: 12px;
    }

    .portal-header-bar {
        padding: 0 12px;
    }

    /* Dashboard header small */
    .portal-dashboard-header {
        padding: 20px;
    }

    .portal-welcome-text h1 {
        font-size: 22px;
    }

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

    .portal-stats {
        grid-template-columns: 1fr;
    }

    .portal-stat-card {
        flex-direction: row;
        align-items: center;
    }

    .portal-anexos-grid {
        grid-template-columns: 1fr 1fr;
    }

    .portal-anexo-preview-item {
        width: 80px;
    }

    .portal-anexo-preview-item img,
    .portal-anexo-preview-file {
        width: 80px;
        height: 80px;
    }

    .portal-single-meta span {
        font-size: 12px;
    }

    .portal-badge {
        padding: 4px 10px;
        font-size: 11px;
    }

    .portal-timeline-item {
        gap: 12px;
    }

    .portal-timeline-action {
        font-size: 13px;
    }

    .portal-timeline-meta {
        font-size: 11px;
    }
}

/* Touch-friendly improvements */
@media (hover: none) and (pointer: coarse) {
    .portal-btn,
    .portal-nav-link,
    .portal-tab-btn,
    .portal-quick-link,
    .portal-dropdown-item {
        min-height: 44px;
    }

    .portal-table-row-clickable {
        min-height: 60px;
    }

    .portal-password-toggle {
        padding: 10px;
    }
}
