/* Marina Dashboard Custom Styles - Versão Melhorada para Hello Elementor */

/* Reset específico para o dashboard dentro do escopo */
.marina-dashboard-scope {
    /* Reset básico para evitar conflitos com o tema */
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
    line-height: 1.6;
    color: #374151 !important;
    background: transparent;
}

.marina-dashboard-scope *,
.marina-dashboard-scope *::before,
.marina-dashboard-scope *::after {
    box-sizing: border-box;
}

/* Força o reset de margens e paddings para elementos específicos */
.marina-dashboard-scope h1,
.marina-dashboard-scope h2,
.marina-dashboard-scope h3,
.marina-dashboard-scope h4,
.marina-dashboard-scope h5,
.marina-dashboard-scope h6,
.marina-dashboard-scope p,
.marina-dashboard-scope div,
.marina-dashboard-scope span,
.marina-dashboard-scope button,
.marina-dashboard-scope input,
.marina-dashboard-scope textarea,
.marina-dashboard-scope select,
.marina-dashboard-scope table,
.marina-dashboard-scope tr,
.marina-dashboard-scope td,
.marina-dashboard-scope th {
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    background: transparent !important;
    font-size: inherit !important;
    font-weight: inherit !important;
    line-height: inherit !important;
    color: inherit !important;
    text-decoration: none !important;
    list-style: none !important;
}

/* Container principal com isolamento completo */
.marina-dashboard-scope #marina-dashboard {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    background-color: #f9fafb !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
    font-size: 14px !important;
    line-height: 1.6 !important;
    color: #374151 !important;
    min-height: 100vh !important;
    position: relative !important;
    z-index: 1 !important;
}

/* Header */
.marina-dashboard-scope header {
    background-color: #2563eb !important;
    color: white !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1) !important;
    position: relative !important;
    z-index: 10 !important;
}

.marina-dashboard-scope header .container {
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 1rem !important;
}

.marina-dashboard-scope header .flex {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
}

.marina-dashboard-scope header h1 {
    font-size: 1.5rem !important;
    font-weight: 700 !important;
    color: white !important;
    margin: 0 !important;
}

.marina-dashboard-scope header i {
    font-size: 1.5rem !important;
    color: white !important;
    margin-right: 0.75rem !important;
}

.marina-dashboard-scope header span {
    font-size: 0.875rem !important;
    color: rgba(255, 255, 255, 0.9) !important;
}

/* Navigation */
.marina-dashboard-scope nav {
    background-color: white !important;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1) !important;
    border-bottom: 1px solid #e5e7eb !important;
    position: relative !important;
    z-index: 9 !important;
}

.marina-dashboard-scope nav .container {
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 0 1rem !important;
}

.marina-dashboard-scope nav .flex {
    display: flex !important;
    gap: 2rem !important;
}

.marina-dashboard-scope .nav-btn {
    padding: 1rem 0.5rem !important;
    border-bottom: 2px solid transparent !important;
    color: #6b7280 !important;
    font-weight: 500 !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    background: none !important;
    border-left: none !important;
    border-right: none !important;
    border-top: none !important;
    text-decoration: none !important;
    display: flex !important;
    align-items: center !important;
}

.marina-dashboard-scope .nav-btn:hover {
    color: #374151 !important;
    border-bottom-color: #d1d5db !important;
}

.marina-dashboard-scope .nav-btn.active,
.marina-dashboard-scope .nav-btn[style*="border-bottom-color: rgb(59, 130, 246)"] {
    border-bottom-color: #3b82f6 !important;
    color: #3b82f6 !important;
}

.marina-dashboard-scope .nav-btn i {
    margin-right: 0.5rem !important;
    font-size: 1rem !important;
}

/* Main Content */
.marina-dashboard-scope main {
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 2rem 1rem !important;
    position: relative !important;
    z-index: 1 !important;
}

/* Sections */
.marina-dashboard-scope .section {
    transition: opacity 0.3s ease-in-out !important;
    opacity: 1 !important;
}

.marina-dashboard-scope .section.hidden {
    display: none !important;
}

/* Typography */
.marina-dashboard-scope h2 {
    font-size: 1.875rem !important;
    font-weight: 700 !important;
    color: #1f2937 !important;
    margin-bottom: 0.5rem !important;
}

.marina-dashboard-scope h3 {
    font-size: 1.125rem !important;
    font-weight: 600 !important;
    color: #1f2937 !important;
    margin-bottom: 1rem !important;
}

.marina-dashboard-scope p {
    color: #6b7280 !important;
    margin-bottom: 1rem !important;
}

/* Grid System */
.marina-dashboard-scope .grid {
    display: grid !important;
    gap: 1.5rem !important;
}

.marina-dashboard-scope .grid-cols-1 {
    grid-template-columns: repeat(1, minmax(0, 1fr)) !important;
}

.marina-dashboard-scope .grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}

.marina-dashboard-scope .grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}

.marina-dashboard-scope .grid-cols-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
}

/* Cards */
.marina-dashboard-scope .bg-white {
    background-color: white !important;
}

.marina-dashboard-scope .rounded-lg {
    border-radius: 0.5rem !important;
}

.marina-dashboard-scope .shadow {
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06) !important;
}

.marina-dashboard-scope .p-6 {
    padding: 1.5rem !important;
}

.marina-dashboard-scope .p-4 {
    padding: 1rem !important;
}

.marina-dashboard-scope .p-3 {
    padding: 0.75rem !important;
}

.marina-dashboard-scope .px-6 {
    padding-left: 1.5rem !important;
    padding-right: 1.5rem !important;
}

.marina-dashboard-scope .py-4 {
    padding-top: 1rem !important;
    padding-bottom: 1rem !important;
}

.marina-dashboard-scope .px-4 {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
}

.marina-dashboard-scope .py-2 {
    padding-top: 0.5rem !important;
    padding-bottom: 0.5rem !important;
}

.marina-dashboard-scope .px-3 {
    padding-left: 0.75rem !important;
    padding-right: 0.75rem !important;
}

.marina-dashboard-scope .ml-4 {
    margin-left: 1rem !important;
}

.marina-dashboard-scope .mr-2 {
    margin-right: 0.5rem !important;
}

.marina-dashboard-scope .mb-8 {
    margin-bottom: 2rem !important;
}

.marina-dashboard-scope .mb-4 {
    margin-bottom: 1rem !important;
}

.marina-dashboard-scope .mb-2 {
    margin-bottom: 0.5rem !important;
}

/* Flexbox */
.marina-dashboard-scope .flex {
    display: flex !important;
}

.marina-dashboard-scope .items-center {
    align-items: center !important;
}

.marina-dashboard-scope .justify-between {
    justify-content: space-between !important;
}

.marina-dashboard-scope .space-x-4 > * + * {
    margin-left: 1rem !important;
}

.marina-dashboard-scope .space-x-3 > * + * {
    margin-left: 0.75rem !important;
}

.marina-dashboard-scope .space-x-2 > * + * {
    margin-left: 0.5rem !important;
}

/* Buttons */
.marina-dashboard-scope button,
.marina-dashboard-scope .btn {
    display: inline-flex !important;
    align-items: center !important;
    padding: 0.5rem 1rem !important;
    border-radius: 0.375rem !important;
    font-size: 0.875rem !important;
    font-weight: 500 !important;
    text-decoration: none !important;
    transition: all 0.15s ease-in-out !important;
    cursor: pointer !important;
    border: none !important;
    background: #3b82f6 !important;
    color: white !important;
}

.marina-dashboard-scope button:hover,
.marina-dashboard-scope .btn:hover {
    background-color: #2563eb !important;
    transform: translateY(-1px) !important;
}

.marina-dashboard-scope .bg-blue-600 {
    background-color: #2563eb !important;
}

.marina-dashboard-scope .bg-green-600 {
    background-color: #059669 !important;
}

.marina-dashboard-scope .bg-gray-300 {
    background-color: #d1d5db !important;
    color: #374151 !important;
}

.marina-dashboard-scope .hover\\:bg-blue-700:hover {
    background-color: #1d4ed8 !important;
}

.marina-dashboard-scope .hover\\:bg-green-700:hover {
    background-color: #047857 !important;
}

.marina-dashboard-scope .hover\\:bg-gray-400:hover {
    background-color: #9ca3af !important;
}

/* Forms */
.marina-dashboard-scope input,
.marina-dashboard-scope textarea,
.marina-dashboard-scope select {
    width: 100% !important;
    padding: 0.75rem !important;
    border: 1px solid #d1d5db !important;
    border-radius: 0.375rem !important;
    font-size: 0.875rem !important;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out !important;
    background-color: white !important;
    color: #374151 !important;
}

.marina-dashboard-scope input:focus,
.marina-dashboard-scope textarea:focus,
.marina-dashboard-scope select:focus {
    outline: none !important;
    border-color: #3b82f6 !important;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1) !important;
}

.marina-dashboard-scope label {
    display: block !important;
    font-size: 0.875rem !important;
    font-weight: 500 !important;
    color: #374151 !important;
    margin-bottom: 0.5rem !important;
}

/* Tables */
.marina-dashboard-scope table {
    min-width: 100% !important;
    border-collapse: collapse !important;
}

.marina-dashboard-scope th,
.marina-dashboard-scope td {
    padding: 0.75rem 1.5rem !important;
    text-align: left !important;
    border-bottom: 1px solid #e5e7eb !important;
}

.marina-dashboard-scope th {
    background-color: #f9fafb !important;
    font-weight: 500 !important;
    font-size: 0.75rem !important;
    color: #6b7280 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
}

.marina-dashboard-scope .overflow-x-auto {
    overflow-x: auto !important;
}

/* Status badges */
.marina-dashboard-scope .status-badge {
    display: inline-flex !important;
    align-items: center !important;
    padding: 0.25rem 0.75rem !important;
    border-radius: 9999px !important;
    font-size: 0.75rem !important;
    font-weight: 500 !important;
}

.marina-dashboard-scope .status-badge.disponivel {
    background-color: #dcfce7 !important;
    color: #166534 !important;
}

.marina-dashboard-scope .status-badge.manutencao {
    background-color: #fef3c7 !important;
    color: #92400e !important;
}

/* Color classes for boats */
.marina-dashboard-scope .lancha-1 { background-color: #3b82f6 !important; }
.marina-dashboard-scope .lancha-2 { background-color: #10b981 !important; }
.marina-dashboard-scope .lancha-3 { background-color: #f59e0b !important; }
.marina-dashboard-scope .lancha-4 { background-color: #ef4444 !important; }
.marina-dashboard-scope .lancha-5 { background-color: #8b5cf6 !important; }

/* Status colors */
.marina-dashboard-scope .status-manutencao { background-color: #6b7280 !important; }
.marina-dashboard-scope .status-reservado { background-color: #059669 !important; }
.marina-dashboard-scope .status-disponivel { background-color: #3b82f6 !important; }

/* Notifications */
.marina-dashboard-scope .notification {
    padding: 12px 16px !important;
    border-radius: 8px !important;
    margin-bottom: 8px !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1) !important;
    animation: slideInRight 0.3s ease-out !important;
}

.marina-dashboard-scope .notification.success {
    background-color: #10b981 !important;
    color: white !important;
}

.marina-dashboard-scope .notification.error {
    background-color: #ef4444 !important;
    color: white !important;
}

.marina-dashboard-scope .notification.info {
    background-color: #3b82f6 !important;
    color: white !important;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Loading states */
.marina-dashboard-scope .loading-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background-color: rgba(0, 0, 0, 0.5) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 9999 !important;
}

.marina-dashboard-scope .loading-spinner {
    animation: spin 1s linear infinite !important;
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .marina-dashboard-scope .container {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }
    
    .marina-dashboard-scope .grid-cols-2,
    .marina-dashboard-scope .grid-cols-3,
    .marina-dashboard-scope .grid-cols-4 {
        grid-template-columns: 1fr !important;
    }
    
    .marina-dashboard-scope .nav-btn {
        font-size: 0.875rem !important;
        padding: 0.75rem 0.5rem !important;
    }
    
    .marina-dashboard-scope nav .flex {
        gap: 1rem !important;
    }
    
    .marina-dashboard-scope header h1 {
        font-size: 1.25rem !important;
    }
    
    .marina-dashboard-scope h2 {
        font-size: 1.5rem !important;
    }
    
    .marina-dashboard-scope main {
        padding: 1rem !important;
    }
    
    .marina-dashboard-scope .overflow-x-auto {
        -webkit-overflow-scrolling: touch !important;
    }
    
    .marina-dashboard-scope table {
        min-width: 600px !important;
    }
}

@media (max-width: 480px) {
    .marina-dashboard-scope nav .flex {
        flex-direction: column !important;
        gap: 0 !important;
    }
    
    .marina-dashboard-scope .nav-btn {
        padding: 1rem !important;
        border-bottom: 1px solid #e5e7eb !important;
        border-left: none !important;
        border-right: none !important;
        border-top: none !important;
        width: 100% !important;
        justify-content: flex-start !important;
    }
    
    .marina-dashboard-scope .nav-btn.active {
        background-color: #eff6ff !important;
        border-left: 3px solid #3b82f6 !important;
    }
}

/* Utility classes */
.marina-dashboard-scope .w-full {
    width: 100% !important;
}

.marina-dashboard-scope .text-left {
    text-align: left !important;
}

.marina-dashboard-scope .text-center {
    text-align: center !important;
}

.marina-dashboard-scope .text-sm {
    font-size: 0.875rem !important;
}

.marina-dashboard-scope .text-xs {
    font-size: 0.75rem !important;
}

.marina-dashboard-scope .text-2xl {
    font-size: 1.5rem !important;
}

.marina-dashboard-scope .font-medium {
    font-weight: 500 !important;
}

.marina-dashboard-scope .font-semibold {
    font-weight: 600 !important;
}

.marina-dashboard-scope .font-bold {
    font-weight: 700 !important;
}

.marina-dashboard-scope .text-gray-500 {
    color: #6b7280 !important;
}

.marina-dashboard-scope .text-gray-600 {
    color: #4b5563 !important;
}

.marina-dashboard-scope .text-gray-700 {
    color: #374151 !important;
}

.marina-dashboard-scope .text-gray-800 {
    color: #1f2937 !important;
}

.marina-dashboard-scope .text-gray-900 {
    color: #111827 !important;
}

.marina-dashboard-scope .text-white {
    color: white !important;
}

.marina-dashboard-scope .border-b {
    border-bottom: 1px solid #e5e7eb !important;
}

.marina-dashboard-scope .border-gray-200 {
    border-color: #e5e7eb !important;
}

.marina-dashboard-scope .divide-y > * + * {
    border-top: 1px solid #e5e7eb !important;
}

.marina-dashboard-scope .divide-gray-200 > * + * {
    border-color: #e5e7eb !important;
}

/* Icon colors */
.marina-dashboard-scope .text-blue-600 {
    color: #2563eb !important;
}

.marina-dashboard-scope .text-green-600 {
    color: #059669 !important;
}

.marina-dashboard-scope .text-yellow-600 {
    color: #d97706 !important;
}

.marina-dashboard-scope .text-red-600 {
    color: #dc2626 !important;
}

.marina-dashboard-scope .bg-blue-100 {
    background-color: #dbeafe !important;
}

.marina-dashboard-scope .bg-green-100 {
    background-color: #dcfce7 !important;
}

.marina-dashboard-scope .bg-yellow-100 {
    background-color: #fef3c7 !important;
}

.marina-dashboard-scope .bg-red-100 {
    background-color: #fee2e2 !important;
}

.marina-dashboard-scope .rounded-full {
    border-radius: 9999px !important;
}

/* Hover effects for cards */
.marina-dashboard-scope .lancha-card {
    background: white !important;
    border-radius: 0.5rem !important;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1) !important;
    overflow: hidden !important;
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out !important;
}

.marina-dashboard-scope .lancha-card:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1) !important;
}
