/* Base styles */
.app-container {
    min-height: 100vh;
    background-color: #f3f4f6;
}

.content-area {
    margin-left: 250px;
    padding: 20px;
    transition: margin-left 0.3s ease;
}

/* Responsive content area */
@media (max-width: 1024px) {
    .content-area {
        margin-left: 0;
        padding-top: 60px;
        max-width: 100%;
        overflow-x: hidden;
    }

    .module-title {
        padding-left: 50px;
    }
}

/* Table container styles */
.table-container {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 1rem;
    border-radius: 8px;
    background: white;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.data-table {
    min-width: 100%;
    width: max-content;
}

/* Module header */
.module-header {
    position: sticky;
    top: 0;
    background-color: #f3f4f6;
    padding: 1rem 0;
    margin-bottom: 1rem;
    z-index: 20;
}

/* Module title */
.module-title {
    color: #1f2937;
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    font-weight: 600;
}

/* Actions bar */
.actions-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    background-color: #f3f4f6;
    z-index: 20;
}

/* Search bar */
.search-bar {
    padding: 8px 16px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    width: 100%;
    max-width: 400px;
}

/* Mobile optimizations */
@media (max-width: 640px) {
    .content-area {
        padding: 60px 10px 10px 10px;
    }

    .search-bar {
        max-width: 100%;
    }

    .actions-bar {
        flex-direction: column;
        gap: 1rem;
    }

    .actions-bar .search-bar {
        order: 2;
    }

    .actions-bar .add-button {
        order: 1;
        width: 100%;
        justify-content: center;
    }
}
