/* Global Layout Improvements */
/* Reduce excessive margins and make better use of available space */

/* Override Tailwind's max-w-7xl to use more screen space */
.max-w-7xl {
    max-width: 100% !important;
    padding-left: 2rem !important;
    padding-right: 2rem !important;
}

/* Content wrapper with better space utilization */
.content {
    max-width: 100% !important;
    width: 100%;
}

/* Make container elements use more space */
.container {
    max-width: 100% !important;
    padding-left: 2rem !important;
    padding-right: 2rem !important;
}

/* Responsive adjustments for smaller screens */
@media (max-width: 768px) {
    .max-w-7xl,
    .content,
    .container {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }
}

/* Ensure tables and wide content are fully visible */
.table-container {
    overflow-x: auto;
    width: 100%;
}

/* Make sure action buttons in tables are always visible */
table button,
table a {
    display: inline-block !important;
    visibility: visible !important;
    cursor: pointer !important;
    opacity: 1 !important;
}

/* Fix for action columns in tables */
table td:last-child a,
table td:last-child button {
    white-space: nowrap !important;
    opacity: 1 !important;
    pointer-events: auto !important;
}

/* Tutorial Styles */
.tutorial-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 9998;
    display: none;
}

.tutorial-highlight {
    position: fixed;
    border: 3px solid #fbbf24;
    border-radius: 8px;
    box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.7);
    z-index: 9999;
    pointer-events: none;
    transition: all 0.3s ease;
}

.tutorial-tooltip {
    position: fixed;
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    max-width: 350px;
    z-index: 10000;
}

.tutorial-tooltip h3 {
    margin: 0 0 12px 0;
    font-size: 18px;
    font-weight: 600;
    color: #1f2937;
}

.tutorial-tooltip p {
    margin: 0 0 16px 0;
    font-size: 14px;
    line-height: 1.6;
    color: #4b5563;
}

.tutorial-controls {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.tutorial-controls button {
    padding: 8px 16px;
    border-radius: 6px;
    border: none;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.tutorial-controls button:last-child {
    background-color: #0ea5e9;
    color: white;
}

.tutorial-controls button:last-child:hover {
    background-color: #0284c7;
}

.tutorial-controls .skip-btn {
    background-color: #e5e7eb;
    color: #4b5563;
}

.tutorial-controls .skip-btn:hover {
    background-color: #d1d5db;
}